clover/nir: set spirv environment to OpenCL
authorKarol Herbst <kherbst@redhat.com>
Thu, 5 Dec 2019 10:30:11 +0000 (11:30 +0100)
committerKarol Herbst <karolherbst@gmail.com>
Wed, 11 Dec 2019 23:54:39 +0000 (23:54 +0000)
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/state_trackers/clover/nir/invocation.cpp

index 75a1d63ba0cca4c8500745aab9ae4629d5095f08..0522115a58d27ba20625edac8d6e0fe5fe3061db 100644 (file)
@@ -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;