[Mesa-dev] [PATCH] radeonsi: don't overwrite the scratch offset in shader prologs

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Wed Apr 13 16:18:47 UTC 2016


If I understand correctly, you want to pass the scratch register from
the prolog to the main shader?

If so, I don't think this will work correctly, as this will shift all
prolog outputs after  the copied input sgprs one sgpr up and puts the
scratch offset in the middle. In the main shader we don't compensate
and at least with D18941 the scratch is expected after all SGPR
arguments, including the arguments generated by the prolog.

- Bas


More information about the mesa-dev mailing list