Re: [Mesa-dev] [PATCH 2/6] Add the format enums for BPTC-compressed images

2014-07-24 Thread Alex Deucher
On Wed, Jul 23, 2014 at 5:57 PM, Ian Romanick wrote: > On 07/22/2014 12:09 PM, Neil Roberts wrote: >> diff --git a/src/mesa/main/texcompress.c b/src/mesa/main/texcompress.c >> index 9dbfe9f..b708b49 100644 >> --- a/src/mesa/main/texcompress.c >> +++ b/src/mesa/main/texcompress.c >> @@ -235,6 +235,

Re: [Mesa-dev] [PATCH 2/6] Add the format enums for BPTC-compressed images

2014-07-24 Thread Neil Roberts
> On 07/22/2014 12:09 PM, Neil Roberts wrote: >> + * The spec for GL_ARB_texture_compression_bptc doesn't mention whether it >> + * should be included in GL_COMPRESSED_TEXTURE_FORMATS. Ian Romanick writes: > What do NVIDIA and AMD do? We should mimic that. I don't have an NVidia or AMD card ha

Re: [Mesa-dev] [PATCH 2/6] Add the format enums for BPTC-compressed images

2014-07-23 Thread Ian Romanick
On 07/22/2014 12:09 PM, Neil Roberts wrote: > diff --git a/src/mesa/main/texcompress.c b/src/mesa/main/texcompress.c > index 9dbfe9f..b708b49 100644 > --- a/src/mesa/main/texcompress.c > +++ b/src/mesa/main/texcompress.c > @@ -235,6 +235,12 @@ _mesa_gl_compressed_format_base_format(GLenum format) >

[Mesa-dev] [PATCH 2/6] Add the format enums for BPTC-compressed images

2014-07-22 Thread Neil Roberts
This adds the following four Mesa image format enums which correspond to the four BPTC compressed texture formats: MESA_FORMAT_BPTC_RGBA_UNORM MESA_FORMAT_BPTC_SRGB_ALPHA_UNORM MESA_FORMAT_BPTC_RGB_SIGNED_FLOAT MESA_FORMAT_BPTC_RGB_UNSIGNED_FLOAT It also updates the format information functio