mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 10:10:09 +01:00
nir/lower_io_to_vector: check centroid & sample when merge variable
These qualifiers should be respected for different varying load code generation. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12537>
This commit is contained in:
parent
1fd3cf990e
commit
5a24aed1ac
1 changed files with 3 additions and 1 deletions
|
|
@ -127,7 +127,9 @@ variables_can_merge(const nir_shader *shader,
|
|||
assert(a->data.mode == b->data.mode);
|
||||
if (shader->info.stage == MESA_SHADER_FRAGMENT &&
|
||||
a->data.mode == nir_var_shader_in &&
|
||||
a->data.interpolation != b->data.interpolation)
|
||||
(a->data.interpolation != b->data.interpolation ||
|
||||
a->data.centroid != b->data.centroid ||
|
||||
a->data.sample != b->data.sample))
|
||||
return false;
|
||||
|
||||
if (shader->info.stage == MESA_SHADER_FRAGMENT &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue