aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarol Herbst <[email protected]>2019-12-05 11:30:11 +0100
committerKarol Herbst <[email protected]>2019-12-11 23:54:39 +0000
commitdba8bf116989402965a37b10bcb8ce83a1d4999c (patch)
tree9a359c9259a3d273d796b81a3c1c0306f386687c
parent6d08f034ce5695032c0d3f156907f6a0177b0556 (diff)
clover/nir: set spirv environment to OpenCL
Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
-rw-r--r--src/gallium/state_trackers/clover/nir/invocation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/clover/nir/invocation.cpp b/src/gallium/state_trackers/clover/nir/invocation.cpp
index 75a1d63ba0c..0522115a58d 100644
--- a/src/gallium/state_trackers/clover/nir/invocation.cpp
+++ b/src/gallium/state_trackers/clover/nir/invocation.cpp
@@ -62,6 +62,7 @@ module clover::nir::spirv_to_nir(const module &mod, const device &dev,
std::string &r_log)
{
struct spirv_to_nir_options spirv_options = {};
+ spirv_options.environment = NIR_SPIRV_OPENCL;
spirv_options.caps.address = true;
spirv_options.caps.float64 = true;
spirv_options.caps.int8 = true;