diff options
author | Dave Airlie <airlied@redhat.com> | 2011-11-27 16:21:02 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-11-28 09:40:53 +0000 |
commit | f449be660e70aac2aefd2ce84581e137de25520b (patch) | |
tree | a538a4e7992180705f01250424eead00452bdc33 /src/mesa/main/image.c | |
parent | 47e2e367170edec022481f1487cd980e00ef3203 (diff) | |
download | external_mesa3d-f449be660e70aac2aefd2ce84581e137de25520b.zip external_mesa3d-f449be660e70aac2aefd2ce84581e137de25520b.tar.gz external_mesa3d-f449be660e70aac2aefd2ce84581e137de25520b.tar.bz2 |
mesa/format: add mesa MESA_FORMAT_ARGB2101010_UINT support.
This format is used in the ARB_texture_rgb10_a2ui spec.
It adds core mesa support, texformat + texstore support, format_unpack
and fbobject.c (all patches from list merged + fixed up).
also fixes some whitespace issues.
Parts were:
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/mesa/main/image.c')
-rw-r--r-- | src/mesa/main/image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c index 72e944e..f32ca92 100644 --- a/src/mesa/main/image.c +++ b/src/mesa/main/image.c @@ -816,6 +816,7 @@ _mesa_is_color_format(GLenum format) case GL_INTENSITY16_SNORM: case GL_RGB9_E5: case GL_R11F_G11F_B10F: + case GL_RGB10_A2UI: return GL_TRUE; case GL_YCBCR_MESA: /* not considered to be RGB */ /* fall-through */ @@ -1002,6 +1003,7 @@ _mesa_is_integer_format(GLenum format) case GL_INTENSITY8I_EXT: case GL_LUMINANCE8I_EXT: case GL_LUMINANCE_ALPHA8I_EXT: + case GL_RGB10_A2UI: return GL_TRUE; default: return GL_FALSE; |