Revert "Revert "virgl: Cache depth and stencil buffers""
authorRohan Garg <rohan.garg@collabora.com>
Tue, 8 Jun 2021 09:46:57 +0000 (11:46 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 27 Jul 2021 20:34:38 +0000 (20:34 +0000)
This reverts commit a8e75bb73c6f8ce94c4f598a2f4763b12188991c.

Signed-off-by: Rohan Garg <rohan.garg@collabora.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11241>

src/gallium/winsys/virgl/drm/virgl_drm_winsys.c

index 694c061..a330617 100644 (file)
@@ -63,6 +63,7 @@ static inline boolean can_cache_resource(uint32_t bind)
           bind == VIRGL_BIND_VERTEX_BUFFER ||
           bind == VIRGL_BIND_CUSTOM ||
           bind == VIRGL_BIND_STAGING ||
+          bind == VIRGL_BIND_DEPTH_STENCIL ||
           bind == 0;
 }