From: Brian Paul Date: Wed, 16 Oct 2013 14:26:42 +0000 (-0600) Subject: svga: minor fix-ups in svga_get_shader_param() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f08cdefda8f1c99a7e197f6887fbfa275fa35c0;p=mesa.git svga: minor fix-ups in svga_get_shader_param() Fix debug error message. Add switch case for PIPE_SHADER_COMPUTE. Trivial. --- 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);