diff --git a/.pick_status.json b/.pick_status.json index f4eef6dd006..e421370cad2 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1093,7 +1093,7 @@ "description": "zink: fix sparse residency query and minLOD feature checks", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null }, diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index 3b8d4e255cd..5255b554669 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -881,8 +881,10 @@ 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; case PIPE_CAP_CLAMP_SPARSE_TEXTURE_LOD: - return screen->info.feats.features.sparseResidency2Samples ? 1 : 0; + return screen->info.feats.features.shaderResourceMinLod && + screen->info.feats.features.shaderResourceResidency ? 1 : 0; case PIPE_CAP_VIEWPORT_SUBPIXEL_BITS: return screen->info.props.limits.viewportSubPixelBits;