From dba8bf116989402965a37b10bcb8ce83a1d4999c Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Thu, 5 Dec 2019 11:30:11 +0100 Subject: [PATCH] clover/nir: set spirv environment to OpenCL Signed-off-by: Karol Herbst Reviewed-by: Alyssa Rosenzweig Reviewed-by: Dave Airlie --- src/gallium/state_trackers/clover/nir/invocation.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2