mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
nir/lower_blend: Don't touch store->dest
Stores don't have destinations, and if they did, it would be invalid to change
their ssa_def's num_components without also changing the SSA def. Remove the
nonsensical (but harmless) assignment.
This fixes 25249e8be2 ("nir/lower_blend: Expand or shrink output variables as
needed"), but as the bug is harmless in practice, it does not need to be
backported.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Suggested-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Italo Nicola <italonicola@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20836>
This commit is contained in:
parent
63f30802eb
commit
b3f229c510
1 changed files with 0 additions and 1 deletions
|
|
@ -514,7 +514,6 @@ nir_lower_blend_store(nir_builder *b, nir_intrinsic_instr *store,
|
|||
|
||||
/* Grow or shrink the store destination as needed */
|
||||
store->num_components = num_components;
|
||||
store->dest.ssa.num_components = num_components;
|
||||
nir_intrinsic_set_write_mask(store, nir_intrinsic_write_mask(store) &
|
||||
nir_component_mask(num_components));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue