diff options
author | Brian Paul <[email protected]> | 2009-10-06 22:30:01 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-10-06 22:30:01 -0600 |
commit | 74d61d03b54d72217d463c248468cdcd09320efc (patch) | |
tree | 18bb58871ca7c7b3e5f672bf58c8e183bb23165d /src/mesa/main/formats.c | |
parent | c5b725489243e6a94ca5e31306cdfa93619bd200 (diff) |
mesa: added MESA_FORMAT_XRGB8888
Diffstat (limited to 'src/mesa/main/formats.c')
-rw-r--r-- | src/mesa/main/formats.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c index 483f993a752..2924ab69cc4 100644 --- a/src/mesa/main/formats.c +++ b/src/mesa/main/formats.c @@ -115,6 +115,14 @@ static struct gl_format_info format_info[MESA_FORMAT_COUNT] = 1, 1, 4 /* BlockWidth/Height,Bytes */ }, { + MESA_FORMAT_XRGB8888, /* Name */ + GL_RGB, /* BaseFormat */ + GL_UNSIGNED_NORMALIZED, /* DataType */ + 8, 8, 8, 0, /* Red/Green/Blue/AlphaBits */ + 0, 0, 0, 0, 0, /* Lum/Int/Index/Depth/StencilBits */ + 1, 1, 4 /* BlockWidth/Height,Bytes */ + }, + { MESA_FORMAT_RGB888, /* Name */ GL_RGB, /* BaseFormat */ GL_UNSIGNED_NORMALIZED, /* DataType */ @@ -799,6 +807,7 @@ _mesa_format_to_type_and_comps(gl_format format, case MESA_FORMAT_RGBA8888_REV: case MESA_FORMAT_ARGB8888: case MESA_FORMAT_ARGB8888_REV: + case MESA_FORMAT_XRGB8888: *datatype = GL_UNSIGNED_BYTE; *comps = 4; return; |