mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
zink: fix xfb analysis variable finding for arrays
this fixes clipdistance exports cc: mesa-stable Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15224>
This commit is contained in:
parent
4ed7329236
commit
3f7da0c584
1 changed files with 1 additions and 1 deletions
|
|
@ -477,7 +477,7 @@ find_var_with_location_frac(nir_shader *nir, unsigned location, unsigned locatio
|
|||
nir_foreach_shader_out_variable(var, nir) {
|
||||
if (var->data.location == location &&
|
||||
(var->data.location_frac == location_frac ||
|
||||
glsl_get_vector_elements(var->type) >= location_frac + 1)) {
|
||||
(glsl_type_is_array(var->type) ? glsl_array_size(var->type) : glsl_get_vector_elements(var->type)) >= location_frac + 1)) {
|
||||
if (location != VARYING_SLOT_PSIZ || !have_psiz || var->data.explicit_location)
|
||||
return var;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue