mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
i965: implement get_size for 2_10_10_10 formats
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
894fe54ec9
commit
f9a08f7f0f
1 changed files with 5 additions and 0 deletions
|
|
@ -290,6 +290,11 @@ static GLuint get_size( GLenum type )
|
|||
case GL_UNSIGNED_SHORT: return sizeof(GLushort);
|
||||
case GL_UNSIGNED_BYTE: return sizeof(GLubyte);
|
||||
case GL_FIXED: return sizeof(GLuint);
|
||||
/* packed formats: always have 4 components, and element size is
|
||||
* 4 bytes, so pretend each component is 1 byte.
|
||||
*/
|
||||
case GL_INT_2_10_10_10_REV: return sizeof(GLbyte);
|
||||
case GL_UNSIGNED_INT_2_10_10_10_REV: return sizeof(GLubyte);
|
||||
default: assert(0); return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue