zink: ARB_sparse_texture_clamp
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 14 Jan 2022 15:43:44 +0000 (10:43 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 1 Feb 2022 18:55:50 +0000 (18:55 +0000)
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14813>

src/gallium/drivers/zink/zink_screen.c

index fdf7179..bfa5b60 100644 (file)
@@ -676,6 +676,7 @@ 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:
+   case PIPE_CAP_CLAMP_SPARSE_TEXTURE_LOD:
       return screen->info.feats.features.sparseResidency2Samples ? 1 : 0;
 
    case PIPE_CAP_VIEWPORT_SUBPIXEL_BITS: