nvir/nir/gm107: switch off lower_extract_byte
authorBen Skeggs <bskeggs@redhat.com>
Sat, 6 Jun 2020 23:52:31 +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 062f4a7a0f6de2173a457d18bdce2850c2d97ef4..7fcb1a0ff5d3fb2fe170aa166fd55274fcb63d6d 100644 (file)
@@ -3406,7 +3406,7 @@ nvir_nir_shader_compiler_options(int chipset)
       .lower_unpack_unorm_4x8 = true,
       .lower_unpack_snorm_4x8 = true,
       .lower_pack_split = false,
-      .lower_extract_byte = true,
+      .lower_extract_byte = (chipset < NVISA_GM107_CHIPSET),
       .lower_extract_word = true,
       .lower_all_io_to_temps = false,
       .lower_all_io_to_elements = false,