Commit 4fab4ed0 authored by Jan Zielinski's avatar Jan Zielinski
Browse files

swr: fix crashes caused by incorrectly reporting SSBO support


Reviewed-by: Krzysztof Raszkowski's avatarKrzysztof Raszkowski <krzysztof.raszkowski@intel.com>
Part-of: <mesa/mesa!8597>
parent 79b792e4
Pipeline #259714 waiting for manual action with stage
......@@ -342,16 +342,17 @@ swr_get_shader_param(struct pipe_screen *screen,
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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment