enum pipe_shader_type shader,
enum pipe_shader_cap param)
{
- if (shader == PIPE_SHADER_VERTEX ||
- shader == PIPE_SHADER_FRAGMENT ||
- shader == PIPE_SHADER_GEOMETRY
- || shader == PIPE_SHADER_TESS_CTRL ||
- shader == PIPE_SHADER_TESS_EVAL
- )
- return gallivm_get_shader_param(param);
-
- // Todo: compute
- return 0;
+ if (shader != PIPE_SHADER_VERTEX &&
+ shader != PIPE_SHADER_FRAGMENT &&
+ shader != PIPE_SHADER_GEOMETRY &&
+ shader != PIPE_SHADER_TESS_CTRL &&
+ shader != PIPE_SHADER_TESS_EVAL)
+ return 0;
+
+ if (param == PIPE_SHADER_CAP_MAX_SHADER_BUFFERS)
+ return 0;
+
+ return gallivm_get_shader_param(param);
}