nvir/nir/gm107: turn on nir_lower_extract64
authorBen Skeggs <bskeggs@redhat.com>
Sat, 6 Jun 2020 23:52:29 +0000 (09:52 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Jun 2020 22:52:42 +0000 (22:52 +0000)
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 <bskeggs@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5377>

src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp

index 93044f7407276d48f25f44949444f7d72d6e5465..062f4a7a0f6de2173a457d18bdce2850c2d97ef4 100644 (file)
@@ -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