svga: add switch cases for PIPE_SHADER_CAP_OUTPUT_READ
authorBrian Paul <brianp@vmware.com>
Sat, 7 Jan 2012 21:16:27 +0000 (14:16 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 7 Jan 2012 21:16:27 +0000 (14:16 -0700)
Silences unhandled switch case warning.
Return 0 since we don't want to read from output regs.

src/gallium/drivers/svga/svga_screen.c

index 0b4da15e226954e78c5e62459c1101d1276bcbf6..82a3ff2bc2ed2482b011f7b49319da94aff60ae0 100644 (file)
@@ -259,6 +259,8 @@ static int svga_get_shader_param(struct pipe_screen *screen, unsigned shader, en
          return 0;
       case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS:
          return 16;
+      case PIPE_SHADER_CAP_OUTPUT_READ:
+         return 0;
       }
       break;
    case PIPE_SHADER_VERTEX:
@@ -302,6 +304,8 @@ static int svga_get_shader_param(struct pipe_screen *screen, unsigned shader, en
          return 0;
       case PIPE_SHADER_CAP_INTEGERS:
          return 0;
+      case PIPE_SHADER_CAP_OUTPUT_READ:
+         return 0;
       default:
          break;
       }