diff options
author | José Fonseca <[email protected]> | 2009-10-29 20:03:51 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-10-29 20:03:51 +0000 |
commit | c6164ff155189007c02aabb31549f5f4dc767d1b (patch) | |
tree | 95aaca8c946d10829e099161f089cf060ef851ee /src/mesa/main/formats.c | |
parent | a7fa56a64b8963e74e93f3bac8ac80813f4a9778 (diff) |
mesa: Add MESA_FORMAT_Z24_X8.
Diffstat (limited to 'src/mesa/main/formats.c')
-rw-r--r-- | src/mesa/main/formats.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c index 72d043c4c39..aed313445f9 100644 --- a/src/mesa/main/formats.c +++ b/src/mesa/main/formats.c @@ -331,6 +331,15 @@ static struct gl_format_info format_info[MESA_FORMAT_COUNT] = 1, 1, 4 /* BlockWidth/Height,Bytes */ }, { + MESA_FORMAT_Z24_X8, /* Name */ + "MESA_FORMAT_Z24_X8", /* StrName */ + GL_DEPTH_COMPONENT, /* BaseFormat */ + GL_UNSIGNED_INT, /* DataType */ + 0, 0, 0, 0, /* Red/Green/Blue/AlphaBits */ + 0, 0, 0, 24, 0, /* Lum/Int/Index/Depth/StencilBits */ + 1, 1, 4 /* BlockWidth/Height,Bytes */ + }, + { MESA_FORMAT_Z32, /* Name */ "MESA_FORMAT_Z32", /* StrName */ GL_DEPTH_COMPONENT, /* BaseFormat */ @@ -1004,6 +1013,11 @@ _mesa_format_to_type_and_comps(gl_format format, *comps = 1; return; + case MESA_FORMAT_Z24_X8: + *datatype = GL_UNSIGNED_INT; + *comps = 1; + return; + case MESA_FORMAT_Z32: *datatype = GL_UNSIGNED_INT; *comps = 1; |