pco/opt: disable back-propagation of indexed registers

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
Simon Perretta 2025-08-21 11:34:09 +01:00 committed by Marge Bot
parent 719ece42c0
commit 34993085f4

View file

@ -258,6 +258,9 @@ static inline bool try_back_prop_instr(struct pco_use *uses, pco_instr *instr)
pco_ref *pdest_from = &use->instr->dest[0];
if (pco_ref_is_idx_reg(*pdest_from))
return false;
if (pco_ref_is_reg(*pdest_from) &&
pco_ref_get_reg_class(*pdest_from) == PCO_REG_CLASS_PIXOUT) {
return false;