summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-11-22 20:44:14 +0100
committerMarek Olšák <[email protected]>2011-11-22 20:56:51 +0100
commit684d74e0009c01773e13f476676c0c575f73c615 (patch)
tree400804dad72579ee7071bdd4100553cd1cccd20f /src/gallium/drivers/r300
parentfba685a0995e76f86af5920163297e5c3b32fb4b (diff)
r300g: remove default case statements in get_param
This will throw a compile warning if there's an unhandled CAP.
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r--src/gallium/drivers/r300/r300_screen.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c
index 24d15c4f1c6..426e4d1ab17 100644
--- a/src/gallium/drivers/r300/r300_screen.c
+++ b/src/gallium/drivers/r300/r300_screen.c
@@ -148,12 +148,8 @@ static int r300_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
/* Render targets. */
case PIPE_CAP_MAX_RENDER_TARGETS:
return 4;
-
- default:
- debug_printf("r300: Warning: Unknown CAP %d in get_param.\n",
- param);
- return 0;
}
+ return 0;
}
static int r300_get_shader_param(struct pipe_screen *pscreen, unsigned shader, enum pipe_shader_cap param)
@@ -162,8 +158,7 @@ static int r300_get_shader_param(struct pipe_screen *pscreen, unsigned shader, e
boolean is_r400 = r300screen->caps.is_r400;
boolean is_r500 = r300screen->caps.is_r500;
- switch (shader)
- {
+ switch (shader) {
case PIPE_SHADER_FRAGMENT:
switch (param)
{
@@ -251,7 +246,6 @@ static int r300_get_shader_param(struct pipe_screen *pscreen, unsigned shader, e
case PIPE_SHADER_CAP_SUBROUTINES:
case PIPE_SHADER_CAP_INTEGERS:
return 0;
- default:;
}
break;
}