[Mesa-dev] [PATCH 1/4] meta: fix GetTexImage() for compressed luminance, l/a, intensity formats

Brian Paul brianp at vmware.com
Thu Sep 29 19:20:26 PDT 2011

On 09/29/2011 08:06 PM, Eric Anholt wrote:
> On Thu, 29 Sep 2011 14:24:45 -0600, Brian Paul<brian.e.paul at gmail.com>  wrote:
>> From: Brian Paul<brianp at vmware.com>
>> The GL spec says that luminance values are returned as (l, 0, 0, 1),
>> L/A values as (l, 0, 0, a) and intensity values as (i, 0, 0, 1).
>> Use the pixel transfer scale controls to implement that.
>> This fixes a few failures in the new piglit getteximage-formats
>> test when getting a compressed L or L/A image.
> This should be keyed off of the texture image's base internal format,
> not the base format of the texture format the driver happens to be
> storing the texture data in, right?

Yes, good catch.  I'll re-post with the change.


More information about the mesa-dev mailing list