mesa: Add a function for comparing gl_format to format/type.
authorEric Anholt <eric@anholt.net>
Wed, 12 Oct 2011 23:18:14 +0000 (16:18 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 4 Nov 2011 06:29:52 +0000 (23:29 -0700)
commit5f140bceda4c11b68c16ce175533f496434ff9a3
tree57fe4db1bfce04bd9ae7873a98be37407c5934ce
parente887df9bf56195dafdd945755cc52ac4cd4aab62
mesa: Add a function for comparing gl_format to format/type.

This should be useful in making more generic fast paths in the pixel
paths.

v2: Add note about PACK_SWAP_BYTES, and fix up for endianness by
    synchronizing with memcpy_texture paths in texstore.c.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/formats.c
src/mesa/main/formats.h