From d58290270a2829e397b5a84f75845361961812af Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Sun, 7 Jun 2020 09:52:29 +1000 Subject: [PATCH] nvir/nir/gm107: turn on nir_lower_extract64 About to disable lowering for extract_byte/word in favour of a better local implementation, but still need lowering for 64-bit versions. Signed-off-by: Ben Skeggs Reviewed-by: Karol Herbst Part-of: --- src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp index 93044f74072..062f4a7a0f6 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp @@ -3431,6 +3431,7 @@ nvir_nir_shader_compiler_options(int chipset) .max_unroll_iterations = 32, .lower_int64_options = (nir_lower_int64_options) ( // TODO nir_lower_divmod64 | + ((chipset >= NVISA_GM107_CHIPSET) ? nir_lower_extract64 : 0) | nir_lower_ufind_msb64 ), .lower_doubles_options = (nir_lower_doubles_options) ( // TODO -- 2.30.2