From 4f08cdefda8f1c99a7e197f6887fbfa275fa35c0 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 16 Oct 2013 08:26:42 -0600 Subject: svga: minor fix-ups in svga_get_shader_param() Fix debug error message. Add switch case for PIPE_SHADER_COMPUTE. Trivial. --- src/gallium/drivers/svga/svga_screen.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index a1108c62837..93d16124c62 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -334,7 +334,7 @@ static int svga_get_shader_param(struct pipe_screen *screen, unsigned shader, en case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS: return 16; default: - debug_printf("Unexpected vertex shader query %u\n", param); + debug_printf("Unexpected fragment shader query %u\n", param); return 0; } break; @@ -389,7 +389,8 @@ static int svga_get_shader_param(struct pipe_screen *screen, unsigned shader, en } break; case PIPE_SHADER_GEOMETRY: - /* no support for geometry shaders at this time */ + case PIPE_SHADER_COMPUTE: + /* no support for geometry or compute shaders at this time */ return 0; default: debug_printf("Unexpected shader type (%u) query\n", shader); -- cgit v1.2.3