diff options
author | Brian <[email protected]> | 2007-10-13 12:28:34 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-10-13 12:28:34 -0600 |
commit | 12f41c8884616b8b0c0e445a8bd3f0587a970d1a (patch) | |
tree | 4062e8c113dfd72f5919cadb3262c3b3137e204d /src/mesa/state_tracker/st_format.c | |
parent | 1e2770e2e6244a0decbf077dfd34a3763428a2c0 (diff) |
format info for Z16/Z32
Diffstat (limited to 'src/mesa/state_tracker/st_format.c')
-rw-r--r-- | src/mesa/state_tracker/st_format.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c index 8dd7df4495b..2d20892cb00 100644 --- a/src/mesa/state_tracker/st_format.c +++ b/src/mesa/state_tracker/st_format.c @@ -79,7 +79,20 @@ st_get_format_info(GLuint format) 0, 0, /* depth, stencil */ 2 /* size in bytes */ }, - /* XXX lots more */ + { + PIPE_FORMAT_U_Z16, + GL_DEPTH_COMPONENT, /* base_format */ + 0, 0, 0, 0, 0, 0, /* color bits */ + 16, 0, /* depth, stencil */ + 2 /* size in bytes */ + }, + { + PIPE_FORMAT_U_Z32, + GL_DEPTH_COMPONENT, /* base_format */ + 0, 0, 0, 0, 0, 0, /* color bits */ + 32, 0, /* depth, stencil */ + 4 /* size in bytes */ + }, { PIPE_FORMAT_S8_Z24, GL_DEPTH_STENCIL_EXT, /* base_format */ @@ -87,6 +100,7 @@ st_get_format_info(GLuint format) 24, 8, /* depth, stencil */ 4 /* size in bytes */ } + /* XXX lots more cases to add */ }; GLuint i; |