[Mesa-dev] [PATCH 2/2] clover: recognize sampler kernel arguments
Zoltan Gilian
zoltan.gilian at gmail.com
Mon Aug 10 11:29:30 PDT 2015
---
src/gallium/state_trackers/clover/llvm/invocation.cpp | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index 86859af..50c4557 100644
--- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
+++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
@@ -476,6 +476,15 @@ namespace {
continue;
}
+ // Sampler
+ if (type_name == "sampler_t") {
+ args.push_back(module::argument(module::argument::sampler,
+ arg_store_size, target_size,
+ target_align,
+ module::argument::zero_ext));
+ continue;
+ }
+
// Image size implicit argument
if (type_name == "__llvm_image_size") {
args.push_back(module::argument(module::argument::scalar,
--
2.4.6
More information about the mesa-dev
mailing list