[Mesa-dev] [PATCH 2/2] mesa: Add fall-back formats for unsupported snorm formats

Ian Romanick idr at freedesktop.org
Mon Apr 4 09:25:22 PDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/02/2011 08:52 PM, Kenneth Graunke wrote:
> On 04/02/2011 07:18 PM, Ian Romanick wrote:
>> From: Ian Romanick<ian.d.romanick at intel.com>
>>
>> This is always the way the real hardware and desktop OpenGL.  Some
> 
> Err...what?

Desktop GL has many possible internal formats, and no piece of hardware
that I'm aware of every supported all of them.  As a result,
applications may ask for formats that the hardware can't do.  In these
cases the driver has to pick a format that it can do and that is "close"
to what the application requested.

OpenGL ES differs here.  In ES there are far fewer formats available,
and hardware is expected to natively support all of them.

>> hardware can't do some formats natively.  The alpha-only, luminance,
>> and intensity formats are usually the most problematic.  Some sized
>> formats can also be problematic.  This patch provides fall-back
>> formats for those that are not natively supported.
>>
>> At some point it would be interesting to try providing
>> device-independent conversions using EXT_texture_swizzle.  The drivers
>> that support EXT_texture_swizzle could, for example, see
>> GL_LUMINANCE16_SNORM as MESA_FORMAT_SIGNED_R16 with a { r, r, r, 1 }
>> swizzle.  Care would need to be taken to prevent issues with using
>> those textures for FBO rendering.
>>
>> This is the rest of the fix for glean's pixelFormats test on i965.
>>
>> Cc: Marek Ol ák<maraeo at gmail.com>
> 
> 's' please!  ^^^

Not sure what happened there.  I cut-and-paste from one of Marek's
commit messages.  Is this emacs failing or something else?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk2Z8PIACgkQX1gOwKyEAw8/KgCgiZmzY15xDvTiEr8Wa/wq5TtL
lfEAn2tZsatdKqC8+r5iWvly8W5J5L4h
=r2d9
-----END PGP SIGNATURE-----


More information about the mesa-dev mailing list