Skip to content
Snippets Groups Projects
Commit d6accbe0 authored by Emma Anholt's avatar Emma Anholt Committed by Dylan Baker
Browse files

nouveau/nir: Move FS output stores to the end of the last block.


The nir_move/sink caused instructions to sink interleaved into the output
stores at the end of the shader.  nouveau's RA doesn't track liveness of
FS outputs in registers after the export instruction, so they could end up
overwritten.  To work around it, after normal NIR move/sink, move the
output stores back to the end of the shader.

Fixes: b1fa2068 ("nouveau/nir: Enable nir_opt_move/sink.")

Reviewed-by: default avatarM Henning <drawoc@darkrefraction.com>
Reviewed-by: Karol Herbst's avatarKarol Herbst <kherbst@redhat.com>
Part-of: <mesa/mesa!15949>
(cherry picked from commit 3ddc5054)
parent 9b6b1445
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment