[Mesa-dev] [PATCH 05/10] glsl: Don't allow gl_FragData[i], with i>0 in GLES shaders

Eduardo Lima Mitev elima at igalia.com
Tue Dec 2 07:24:07 PST 2014


On 12/02/2014 01:31 PM, Tapani Pälli wrote:
>>
>> AFAICS this restriction is lifted in ES 3.0+ (e.g. see section 3.9.2
>> in the OpenGL ES 3.0 spec).
> 
> Yep, it seems this check should be against earlier versions and only
> when not having extensions that allow MRT enabled (NV_draw_buffers).
> 

Hi,

Yes, we will update the patch to consider the extensions too. Good catch.

> You can still use gl_FragData[] when using OpenGL ES 3 and GLSL ES 1.00,
> however when using GLSL ES 3.00 gl_FragData[] gets deprecated and you
> should use output layout qualifier to bind a output variable and target
> draw buffer together.
> 

I suppose this is already working like that. This patch does not modify
that behavior.

Thanks for the feedback,

Eduardo


More information about the mesa-dev mailing list