swr: Don't report support for shader images.
gallivm has images support, but this driver doesn't. Cc: mesa-stable (for the upcoming shader image leak fix) Acked-by: Jan Zielinski <jan.zielinski@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8530>
This commit is contained in:
@@ -349,8 +349,10 @@ swr_get_shader_param(struct pipe_screen *screen,
|
||||
shader != PIPE_SHADER_TESS_EVAL)
|
||||
return 0;
|
||||
|
||||
if (param == PIPE_SHADER_CAP_MAX_SHADER_BUFFERS)
|
||||
if (param == PIPE_SHADER_CAP_MAX_SHADER_BUFFERS ||
|
||||
param == PIPE_SHADER_CAP_MAX_SHADER_IMAGES) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return gallivm_get_shader_param(param);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user