case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS:
case PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS:
return 16;
- default:
- debug_printf("Unexpected fragment shader query %u\n", param);
- return 0;
+ case PIPE_SHADER_CAP_PREFERRED_IR:
+ return PIPE_SHADER_IR_TGSI;
}
- break;
+ /* If we get here, we failed to handle a cap above */
+ debug_printf("Unexpected fragment shader query %u\n", param);
+ return 0;
case PIPE_SHADER_VERTEX:
switch (param)
{
case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS:
case PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS:
return 0;
- default:
- debug_printf("Unexpected vertex shader query %u\n", param);
- return 0;
+ case PIPE_SHADER_CAP_PREFERRED_IR:
+ return PIPE_SHADER_IR_TGSI;
}
- break;
+ /* If we get here, we failed to handle a cap above */
+ debug_printf("Unexpected vertex shader query %u\n", param);
+ return 0;
case PIPE_SHADER_GEOMETRY:
case PIPE_SHADER_COMPUTE:
/* no support for geometry or compute shaders at this time */