From: Ben Skeggs Date: Sat, 6 Jun 2020 23:52:29 +0000 (+1000) Subject: nvir/nir/gm107: turn on nir_lower_extract64 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d58290270a2829e397b5a84f75845361961812af;p=mesa.git 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: --- 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