mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
anv/meta: Fix the pos_out location for the vertex shader
This commit is contained in:
parent
b005fd62f9
commit
3eb108ef87
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ build_nir_vertex_shader(bool attr_flat)
|
|||
pos_in->data.location = VERT_ATTRIB_GENERIC0;
|
||||
nir_variable *pos_out = nir_variable_create(b.shader, nir_var_shader_out,
|
||||
vertex_type, "gl_Position");
|
||||
pos_in->data.location = VARYING_SLOT_POS;
|
||||
pos_out->data.location = VARYING_SLOT_POS;
|
||||
nir_copy_var(&b, pos_out, pos_in);
|
||||
|
||||
/* Add one more pass-through attribute. For clear shaders, this is used
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue