mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
zink: fix cap check for arb sparse texture2
arb_sparse_texture2 also enables multisampled sparse textures. bring back the check for msaa support. fixes #8229 Fixes:4f8ba2b9aa("zink: fix sparse residency query and minLOD feature checks") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21121> (cherry picked from commit8f928a95e1)
This commit is contained in:
parent
cacdccbb15
commit
a31787312d
2 changed files with 4 additions and 2 deletions
|
|
@ -580,7 +580,7 @@
|
|||
"description": "zink: fix cap check for arb sparse texture2",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "4f8ba2b9aae265dfc56a62e85cd5eab3c4c718f3"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -881,9 +881,11 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
|||
case PIPE_CAP_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS:
|
||||
return screen->info.feats.features.sparseResidencyImage2D ? 1 : 0;
|
||||
case PIPE_CAP_QUERY_SPARSE_TEXTURE_RESIDENCY:
|
||||
return screen->info.feats.features.shaderResourceResidency ? 1 : 0;
|
||||
return screen->info.feats.features.sparseResidency2Samples &&
|
||||
screen->info.feats.features.shaderResourceResidency ? 1 : 0;
|
||||
case PIPE_CAP_CLAMP_SPARSE_TEXTURE_LOD:
|
||||
return screen->info.feats.features.shaderResourceMinLod &&
|
||||
screen->info.feats.features.sparseResidency2Samples &&
|
||||
screen->info.feats.features.shaderResourceResidency ? 1 : 0;
|
||||
|
||||
case PIPE_CAP_VIEWPORT_SUBPIXEL_BITS:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue