Mesa (main): ntt: Split 64 bit vec3 and vec4 local variables and phis

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 21 17:39:55 UTC 2022


Module: Mesa
Branch: main
Commit: a501b3b614ae52121170ca60aec574251f889be1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a501b3b614ae52121170ca60aec574251f889be1

Author: Gert Wollny <gert.wollny at collabora.com>
Date:   Wed Apr 20 12:04:26 2022 +0200

ntt: Split 64 bit vec3 and vec4 local variables and phis

Fixes virgl with with ntt:
   spec at arb_enhanced_layouts@execution at component-layout@vs-fs-array-dvec3
   spec at arb_gpu_shader_fp64@uniform_buffers at fs-array-copy
   spec at arb_gpu_shader_fp64@uniform_buffers at gs-array-copy
   spec at arb_gpu_shader_fp64@uniform_buffers at vs-array-copy
   spec at arb_gpu_shader_fp64@execution at gs-fs-vs-double
   spec at arb_gpu_shader_fp64@execution at built-in-functions@fs-frexp-dvec4-variable-index
   spec at arb_gpu_shader_fp64@execution at explicit-location-gs-fs-vs
   spec at arb_gpu_shader_fp64@execution at built-in-functions@fs-frexp-dvec4-variable-index

Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
Reviewed-by: Emma Anholt <emma at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15945>

---

 src/gallium/auxiliary/nir/nir_to_tgsi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/auxiliary/nir/nir_to_tgsi.c b/src/gallium/auxiliary/nir/nir_to_tgsi.c
index f7c21e0c703..d0ca7f5fc86 100644
--- a/src/gallium/auxiliary/nir/nir_to_tgsi.c
+++ b/src/gallium/auxiliary/nir/nir_to_tgsi.c
@@ -3167,6 +3167,7 @@ ntt_optimize_nir(struct nir_shader *s, struct pipe_screen *screen)
       progress = false;
 
       NIR_PASS_V(s, nir_lower_vars_to_ssa);
+      NIR_PASS_V(s, nir_split_64bit_vec3_and_vec4);
 
       NIR_PASS(progress, s, nir_copy_prop);
       NIR_PASS(progress, s, nir_opt_algebraic);



More information about the mesa-commit mailing list