mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 18:10:11 +01:00
zink: check correct caps for PIPE_CAP_IMAGE_LOAD_FORMATTED
we actually need more features here than just the one which was checked to
enabled this
Fixes: 2f6f4b613c3 ("zink: export shader image caps using features")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8656>
This commit is contained in:
parent
d31f2200b3
commit
5282210c0b
1 changed files with 3 additions and 1 deletions
|
|
@ -250,7 +250,9 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
|||
return screen->info.props.limits.maxViewports;
|
||||
|
||||
case PIPE_CAP_IMAGE_LOAD_FORMATTED:
|
||||
return screen->info.feats.features.shaderStorageImageExtendedFormats;
|
||||
return screen->info.feats.features.shaderStorageImageExtendedFormats &&
|
||||
screen->info.feats.features.shaderStorageImageReadWithoutFormat &&
|
||||
screen->info.feats.features.shaderStorageImageWriteWithoutFormat;
|
||||
|
||||
case PIPE_CAP_MIXED_FRAMEBUFFER_SIZES:
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue