Mesa (master): zink: lower byte/word extract ops in nir

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 26 14:21:26 UTC 2020


Module: Mesa
Branch: master
Commit: 651d093298d07b52dbadd6759936aa2d426b6424
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=651d093298d07b52dbadd6759936aa2d426b6424

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Mon Jun 15 13:52:02 2020 -0400

zink: lower byte/word extract ops in nir

we don't implement these, and pre-optimizing them breaks things in ntv->vtn

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

---

 src/gallium/drivers/zink/zink_compiler.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/zink/zink_compiler.c b/src/gallium/drivers/zink/zink_compiler.c
index 8ffdcc4607c..a4e79d1ed26 100644
--- a/src/gallium/drivers/zink/zink_compiler.c
+++ b/src/gallium/drivers/zink/zink_compiler.c
@@ -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 *



More information about the mesa-commit mailing list