Update xmesa_is_format_supported()
authorBrian <brian.paul@tungstengraphics.com>
Tue, 6 Nov 2007 22:19:36 +0000 (15:19 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 6 Nov 2007 22:22:56 +0000 (15:22 -0700)
src/mesa/pipe/xlib/xm_winsys.c

index 5763a4e53ff9a9e7cef680a6c0b80b8b2adcc3bf..35e485390a3b45445bf80b7b82be1a4bf68c64ac 100644 (file)
@@ -347,10 +347,17 @@ xmesa_get_pipe_winsys(void)
 static boolean
 xmesa_is_format_supported(struct softpipe_winsys *sws, uint format)
 {
+   /* Any format supported by softpipe can be listed here.
+    * This query is not used for allocating window-system color buffers
+    * (which would depend on the screen depth/bpp).
+    */
    switch (format) {
    case PIPE_FORMAT_U_A8_R8_G8_B8:
    case PIPE_FORMAT_S_R16_G16_B16_A16:
    case PIPE_FORMAT_S8_Z24:
+   case PIPE_FORMAT_U_S8:
+   case PIPE_FORMAT_U_Z16:
+   case PIPE_FORMAT_U_Z32:
       return TRUE;
    default:
       return FALSE;