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

2015-06-27 Thread Connor Abbott
On Sat, Jun 27, 2015 at 2:54 PM, Rob Clark robdcl...@gmail.com wrote: Connor, btw, how does glsl_to_nir handle this? The variable for gl_FragColor a special location (FRAG_RESULT_COLOR), whereas normal outputs (i.e. gl_FragData[] or out variables) start at FRAG_RESULT_DATA0. I guess at some

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

2015-06-27 Thread Rob Clark
On Sat, Jun 27, 2015 at 7:47 PM, Connor Abbott cwabbo...@gmail.com wrote: On Sat, Jun 27, 2015 at 2:54 PM, Rob Clark robdcl...@gmail.com wrote: Connor, btw, how does glsl_to_nir handle this? The variable for gl_FragColor a special location (FRAG_RESULT_COLOR), whereas normal outputs (i.e.

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

2015-06-27 Thread Ilia Mirkin
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