From 7dc39838edb6927bfb093c367fad4340a72eab70 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Wed, 19 Aug 2020 21:14:46 +0200 Subject: [PATCH] clover/nir: use offset for temp memory Signed-off-by: Karol Herbst Reviewed-by: Jason Ekstrand Part-of: --- src/gallium/frontends/clover/nir/invocation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/frontends/clover/nir/invocation.cpp b/src/gallium/frontends/clover/nir/invocation.cpp index 6801b607feb..c916190f3a2 100644 --- a/src/gallium/frontends/clover/nir/invocation.cpp +++ b/src/gallium/frontends/clover/nir/invocation.cpp @@ -139,11 +139,11 @@ module clover::nir::spirv_to_nir(const module &mod, const device &dev, if (dev.address_bits() == 32u) { spirv_options.shared_addr_format = nir_address_format_32bit_offset; spirv_options.global_addr_format = nir_address_format_32bit_global; - spirv_options.temp_addr_format = nir_address_format_32bit_global; + spirv_options.temp_addr_format = nir_address_format_32bit_offset; } else { spirv_options.shared_addr_format = nir_address_format_32bit_offset_as_64bit; spirv_options.global_addr_format = nir_address_format_64bit_global; - spirv_options.temp_addr_format = nir_address_format_64bit_global; + spirv_options.temp_addr_format = nir_address_format_32bit_offset_as_64bit; } spirv_options.caps.address = true; spirv_options.caps.float64 = true; -- 2.30.2