This will throw a compile warning if there's an unhandled CAP.
/* 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)
boolean is_r400 = r300screen->caps.is_r400;
boolean is_r500 = r300screen->caps.is_r500;
- switch (shader)
- {
+ switch (shader) {
case PIPE_SHADER_FRAGMENT:
switch (param)
{
case PIPE_SHADER_CAP_SUBROUTINES:
case PIPE_SHADER_CAP_INTEGERS:
return 0;
- default:;
}
break;
}