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

Author: Alyssa Rosenzweig <[email protected]>
Date:   Tue May  3 12:29:35 2022 -0400

panfrost: Don't use VARYING_SLOT_TEX0 internally

This is a legacy varying for desktop GL use. Don't use it in our internal
shaders, as it adds pointless complexity.

Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16310>

---

 src/panfrost/lib/pan_blitter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/panfrost/lib/pan_blitter.c b/src/panfrost/lib/pan_blitter.c
index 2dfde38a891..b5428c5898d 100644
--- a/src/panfrost/lib/pan_blitter.c
+++ b/src/panfrost/lib/pan_blitter.c
@@ -465,7 +465,7 @@ pan_blitter_get_blit_shader(struct panfrost_device *dev,
                 nir_variable_create(b.shader, nir_var_shader_in,
                                     glsl_vector_type(GLSL_TYPE_FLOAT, 
coord_comps),
                                     "coord");
-        coord_var->data.location = VARYING_SLOT_TEX0;
+        coord_var->data.location = VARYING_SLOT_VAR0;
 
         nir_ssa_def *coord = nir_load_var(&b, coord_var);
 

Reply via email to