svga: fix use of SVGA3D_x vs. PIPE_FORMAT_x in svga_is_format_supported()
authorBrian Paul <brianp@vmware.com>
Fri, 24 Feb 2012 16:46:44 +0000 (17:46 +0100)
committerBrian Paul <brianp@vmware.com>
Fri, 24 Feb 2012 17:15:37 +0000 (10:15 -0700)
Two of the switch cases used PIPE_FORMAT_ tokens instead of SVGA3D_ tokens.
As it happens, the token values are equal for these formats so there's no
net change.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
src/gallium/drivers/svga/svga_screen.c

index 8d47e69006c583f03df9c984f283b0e282c8153d..a4de4932652279eae9b252d85ae58791928f7c70 100644 (file)
@@ -358,8 +358,8 @@ svga_is_format_supported( struct pipe_screen *screen,
       /* Often unsupported/problematic. This means we end up with the same
        * visuals for all virtual hardware implementations.
        */
-      case PIPE_FORMAT_B4G4R4A4_UNORM:
-      case PIPE_FORMAT_B5G5R5A1_UNORM:
+      case SVGA3D_A4R4G4B4:
+      case SVGA3D_A1R5G5B5:
          return FALSE;
          
       default: