diff options
author | Brian Paul <[email protected]> | 2002-09-21 16:51:25 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-09-21 16:51:25 +0000 |
commit | c5b995066020191982b2315fc45d05e068eee761 (patch) | |
tree | 9ca2e3a49b84631aa61ef97d072439228478b3cb /src/mesa/main/image.c | |
parent | c62aeed003cc20b189d71bc53256419e0d630aaf (diff) |
updates from 4.0.4 (MESA_ycbcr_texture, APPLE_client_storage, etc)
Diffstat (limited to 'src/mesa/main/image.c')
-rw-r--r-- | src/mesa/main/image.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c index 4eca41af86b..71ed77fceab 100644 --- a/src/mesa/main/image.c +++ b/src/mesa/main/image.c @@ -1,4 +1,4 @@ -/* $Id: image.c,v 1.66 2002/04/26 13:59:09 brianp Exp $ */ +/* $Id: image.c,v 1.67 2002/09/21 16:51:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -57,7 +57,8 @@ const struct gl_pixelstore_attrib _mesa_native_packing = { 0, /* ImageHeight */ 0, /* SkipImages */ GL_FALSE, /* SwapBytes */ - GL_FALSE /* LsbFirst */ + GL_FALSE, /* LsbFirst */ + GL_FALSE /* ClientStorage */ }; @@ -203,6 +204,9 @@ GLint _mesa_sizeof_packed_type( GLenum type ) return sizeof(GLuint); case GL_UNSIGNED_INT_2_10_10_10_REV: return sizeof(GLuint); + case GL_UNSIGNED_SHORT_8_8_MESA: + case GL_UNSIGNED_SHORT_8_8_REV_MESA: + return sizeof(GLushort); default: return -1; } @@ -245,6 +249,8 @@ GLint _mesa_components_in_format( GLenum format ) return 4; case GL_ABGR_EXT: return 4; + case GL_YCBCR_MESA: + return 2; default: return -1; } @@ -303,6 +309,12 @@ GLint _mesa_bytes_per_pixel( GLenum format, GLenum type ) return sizeof(GLuint); else return -1; + case GL_UNSIGNED_SHORT_8_8_MESA: + case GL_UNSIGNED_SHORT_8_8_REV_MESA: + if (format == GL_YCBCR_MESA) + return sizeof(GLushort); + else + return -1; default: return -1; } @@ -393,6 +405,12 @@ _mesa_is_legal_format_and_type( GLenum format, GLenum type ) default: return GL_FALSE; } + case GL_YCBCR_MESA: + if (type == GL_UNSIGNED_SHORT_8_8_MESA || + type == GL_UNSIGNED_SHORT_8_8_REV_MESA) + return GL_TRUE; + else + return GL_FALSE; default: ; /* fall-through */ } |