[Mesa-dev] [PATCH] mesa: Allow ETC2/EAC formats with ARB_ES3_compatibility.

Anuj Phogat anuj.phogat at gmail.com
Mon Mar 4 14:14:05 PST 2013


On Mon, Mar 4, 2013 at 11:41 AM, Ian Romanick <idr at freedesktop.org> wrote:
> On 03/04/2013 11:38 AM, Matt Turner wrote:
>>
>> Reported-by: Marek Olšák <maraeo at gmail.com>
>
>
> Do our ETC2 piglit tests run in this mode?  It would be good to see this
> change actually fix a bug by making a failing test pass. :)
>
ETC2 tests currently runs only on gles3.  Need to add
config.supports_gl_compat_version = 30; to enable them on GL contexts.

>> ---
>>   src/mesa/main/teximage.c |    2 +-
>>   1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
>> index 0dcf88a..e5260d1 100644
>> --- a/src/mesa/main/teximage.c
>> +++ b/src/mesa/main/teximage.c
>> @@ -520,7 +520,7 @@ _mesa_base_tex_format( struct gl_context *ctx, GLint
>> internalFormat )
>>         }
>>      }
>>
>> -   if (_mesa_is_gles3(ctx)) {
>> +   if (_mesa_is_gles3(ctx) || ctx->Extensions.ARB_ES3_compatibility) {
>>         switch (internalFormat) {
>>         case GL_COMPRESSED_RGB8_ETC2:
>>         case GL_COMPRESSED_SRGB8_ETC2:
>>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list