aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-10-16 08:26:42 -0600
committerBrian Paul <[email protected]>2013-10-16 08:26:45 -0600
commit4f08cdefda8f1c99a7e197f6887fbfa275fa35c0 (patch)
tree88473d29f26c449b7062f00f1958925804983825 /src
parente96c55ff495528fc70fb5363d60bf4c645bc2082 (diff)
svga: minor fix-ups in svga_get_shader_param()
Fix debug error message. Add switch case for PIPE_SHADER_COMPUTE. Trivial.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/svga/svga_screen.c5
1 files changed, 3 insertions, 2 deletions
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);