Skip to content

r300: Fix mapping of TGSI FS output regs to color buffers.

Emma Anholt requested to merge anholt/mesa:r300-fs-outputs into main

There was this mapping table to try to go from driver_location/TGSI reg index to color buffer, except instead of using the TGSI-declared color buffer number it used the order of the TGSI declarations. This used to be 1:1, effectively, before NIR-to-TGSI.

Fixes: #6179 (closed)

Fixes: 7d2ea9b0 ("r300: Request NIR shaders from mesa/st and use NIR-to-TGSI.")

@ondracka proposed, untested fix.

Edited by Emma Anholt

Merge request reports