nvir/nir/gm107: switch off lower_extract_word
authorBen Skeggs <bskeggs@redhat.com>
Sat, 6 Jun 2020 23:52:33 +0000 (09:52 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Jun 2020 22:52:42 +0000 (22:52 +0000)
We can use PRMT here.

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 7fcb1a0ff5d3fb2fe170aa166fd55274fcb63d6d..a54facf8c6e7debcb0fbfd6f62c33c069924a677 100644 (file)
@@ -3407,7 +3407,7 @@ nvir_nir_shader_compiler_options(int chipset)
       .lower_unpack_snorm_4x8 = true,
       .lower_pack_split = false,
       .lower_extract_byte = (chipset < NVISA_GM107_CHIPSET),
-      .lower_extract_word = true,
+      .lower_extract_word = (chipset < NVISA_GM107_CHIPSET),
       .lower_all_io_to_temps = false,
       .lower_all_io_to_elements = false,
       .vertex_id_zero_based = false,