[Mesa-dev] [PATCH v3 1/2] clover: fix sampler argument type detection
Serge Martin
edb+mesa at sigluy.net
Sun Nov 27 16:58:20 UTC 2016
---
src/gallium/state_trackers/clover/llvm/codegen/common.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gallium/state_trackers/clover/llvm/codegen/common.cpp b/src/gallium/state_trackers/clover/llvm/codegen/common.cpp
index 13ccd59..aa6ca50 100644
--- a/src/gallium/state_trackers/clover/llvm/codegen/common.cpp
+++ b/src/gallium/state_trackers/clover/llvm/codegen/common.cpp
@@ -118,6 +118,11 @@ namespace {
module::argument::zero_ext,
module::argument::image_format);
+ } else if (type_name == "sampler_t") {
+ args.emplace_back(module::argument::sampler, arg_api_size,
+ target_size, target_align,
+ module::argument::zero_ext);
+
} else {
// Other types.
const auto actual_type =
--
2.5.5
More information about the mesa-dev
mailing list