Re: [Mesa-dev] [PATCH] glsl: only match gl_FragData and not gl_SecondaryFragDataEXT

2016-06-21 Thread Kenneth Graunke
On Tuesday, June 21, 2016 3:01:16 PM PDT Ilia Mirkin wrote: > There's special logic around finding gl_FragData. It latches onto any > array with FRAG_RESULT_DATA0. However gl_SecondaryFragDataEXT[], added > by GL_EXT_blend_func_extended, fits those parameters as well. The real > frag data array sho

[Mesa-dev] [PATCH] glsl: only match gl_FragData and not gl_SecondaryFragDataEXT

2016-06-21 Thread Ilia Mirkin
There's special logic around finding gl_FragData. It latches onto any array with FRAG_RESULT_DATA0. However gl_SecondaryFragDataEXT[], added by GL_EXT_blend_func_extended, fits those parameters as well. The real frag data array should have index 0 though, so we can use that to distinguish them. Bu