st/mesa: add cases for MESA_FORMAT_Z24_X8, MESA_FORMAT_X8_Z24
authorBrian Paul <brianp@vmware.com>
Thu, 22 Apr 2010 16:26:20 +0000 (10:26 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 22 Apr 2010 17:06:19 +0000 (11:06 -0600)
src/mesa/state_tracker/st_format.c

index 9ae0c9f9babe8dbda5e224ff6d5ee9bcb890fc8e..91e386c848ad0da67576d8f65ce1f47cdbd2be22 100644 (file)
@@ -154,6 +154,10 @@ st_mesa_format_to_pipe_format(gl_format mesaFormat)
       return PIPE_FORMAT_S8Z24_UNORM;
    case MESA_FORMAT_S8_Z24:
       return PIPE_FORMAT_Z24S8_UNORM;
+   case MESA_FORMAT_Z24_X8:
+      return PIPE_FORMAT_X8Z24_UNORM;
+   case MESA_FORMAT_X8_Z24:
+      return PIPE_FORMAT_Z24X8_UNORM;
    case MESA_FORMAT_YCBCR:
       return PIPE_FORMAT_UYVY;
 #if FEATURE_texture_s3tc