From: Brian Paul Date: Sat, 7 Jan 2012 21:16:27 +0000 (-0700) Subject: svga: add switch cases for PIPE_SHADER_CAP_OUTPUT_READ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78028dc2bdf3a10182467356a70f8fb1cbcc7e39;p=mesa.git svga: add switch cases for PIPE_SHADER_CAP_OUTPUT_READ Silences unhandled switch case warning. Return 0 since we don't want to read from output regs. --- diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index 0b4da15e226..82a3ff2bc2e 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -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; }