[Mesa-dev] [PATCH 4/4] gallium/ttn: mark location specially in nir for color0-writes-all

Rob Clark robdclark at gmail.com
Fri Jul 3 05:35:15 PDT 2015


On Wed, Jul 1, 2015 at 4:27 PM, Eric Anholt <eric at anholt.net> wrote:
> Rob Clark <robdclark at gmail.com> writes:
>
>> From: Ilia Mirkin <imirkin at alum.mit.edu>
>>
>> We need to distinguish a shader that has separate writes to each MRT
>> from one which is supposed to write the data from MRT 0 to all the MRTs.
>> In TGSI this is done with a property. NIR doesn't have that, so encode
>> it as a funny location and decode on the other end.
>>
>> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
>
> Yeah, seems like an OK patch for now, though we really need to start
> using common enums instead.

yeah.. I need to spend a bit of time on kernel side of things, but
after (if no one beats me to it) I was thinking to start trying to
clean up the whole nir with tgsi vs glsl thing..

BR,
-R

> Reviewed-by: Eric Anholt <eric at anholt.net>


More information about the mesa-dev mailing list