mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
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>
(cherry picked from commit 9445c3d59f)
This commit is contained in:
parent
6e1c91eb68
commit
f7918844ee
2 changed files with 4 additions and 2 deletions
|
|
@ -445,7 +445,7 @@
|
|||
"description": "swr: Don't report support for shader images.",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue