format info for Z16/Z32
authorBrian <brian.paul@tungstengraphics.com>
Sat, 13 Oct 2007 18:28:34 +0000 (12:28 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Sat, 13 Oct 2007 18:28:34 +0000 (12:28 -0600)
src/mesa/state_tracker/st_format.c

index 8dd7df4495bc04cbdc73fa164cfb3ceda054db5b..2d20892cb00de50b46c1905a56a615554ee1ea4c 100644 (file)
@@ -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;