From 78028dc2bdf3a10182467356a70f8fb1cbcc7e39 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 7 Jan 2012 14:16:27 -0700 Subject: [PATCH] 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. --- src/gallium/drivers/svga/svga_screen.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.30.2