aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2020-06-07 09:52:29 +1000
committerMarge Bot <[email protected]>2020-06-10 22:52:42 +0000
commitd58290270a2829e397b5a84f75845361961812af (patch)
tree70064894a106f3c244d25a185a0df644985c77e4
parentf29e6a9e7e9827e7966d4b8e65c990a2a0842655 (diff)
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 <[email protected]> Reviewed-by: Karol Herbst <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5377>
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp1
1 files changed, 1 insertions, 0 deletions
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