zink: lower byte/word extract ops in nir
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 15 Jun 2020 17:52:02 +0000 (13:52 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 26 Jun 2020 14:07:35 +0000 (14:07 +0000)
we don't implement these, and pre-optimizing them breaks things in ntv->vtn

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5562>

src/gallium/drivers/zink/zink_compiler.c

index 8ffdcc4607cdea9352d8d446c882d7d84cf63db4..a4e79d1ed26c795001a337e882ab359d4fad1b8f 100644 (file)
@@ -90,6 +90,8 @@ static const struct nir_shader_compiler_options nir_options = {
    .lower_flrp32 = true,
    .lower_fpow = true,
    .lower_fsat = true,
+   .lower_extract_byte = true,
+   .lower_extract_word = true,
 };
 
 const void *