mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
vallium: fix input attachment lowering variable shadowing
This caused a bunch of tests to crash due to pos being shadowed
wrongly.
Fixes:
dEQP-VK.binding_model.descriptor_copy.graphics.input_attachment*
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Fixes: b38879f8c5 ("vallium: initial import of the vulkan frontend")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6339>
This commit is contained in:
parent
e0e9712a4d
commit
6c7383d315
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ load_frag_coord(nir_builder *b)
|
|||
nir_find_variable_with_location(b->shader, nir_var_shader_in,
|
||||
VARYING_SLOT_POS);
|
||||
if (pos == NULL) {
|
||||
nir_variable *pos = nir_variable_create(b->shader, nir_var_shader_in,
|
||||
pos = nir_variable_create(b->shader, nir_var_shader_in,
|
||||
glsl_vec4_type(), NULL);
|
||||
pos->data.location = VARYING_SLOT_POS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue