panvk: Don't use VARYING_SLOT_TEX0 internally
This is a legacy varying for desktop GL use. Don't use it in our meta shaders, as it adds pointless complexity. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16310>
This commit is contained in:

committed by
Marge Bot

parent
27a8e4f9d5
commit
635d8d6bd7
@@ -404,7 +404,7 @@ panvk_meta_copy_img2img_shader(struct panfrost_device *pdev,
|
||||
nir_variable_create(b.shader, nir_var_shader_in,
|
||||
glsl_vector_type(GLSL_TYPE_FLOAT, texdim + texisarray),
|
||||
"coord");
|
||||
coord_var->data.location = VARYING_SLOT_TEX0;
|
||||
coord_var->data.location = VARYING_SLOT_VAR0;
|
||||
nir_ssa_def *coord = nir_f2u32(&b, nir_load_var(&b, coord_var));
|
||||
|
||||
nir_tex_instr *tex = nir_tex_instr_create(b.shader, is_ms ? 2 : 1);
|
||||
@@ -971,7 +971,7 @@ panvk_meta_copy_buf2img_shader(struct panfrost_device *pdev,
|
||||
nir_variable_create(b.shader, nir_var_shader_in,
|
||||
glsl_vector_type(GLSL_TYPE_FLOAT, 3),
|
||||
"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);
|
||||
|
||||
coord = nir_f2u32(&b, coord);
|
||||
|
Reference in New Issue
Block a user