virgl: Enable caching for sampler views and render targets
authorRohan Garg <rohan.garg@collabora.com>
Fri, 2 Jul 2021 09:56:58 +0000 (11:56 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 27 Jul 2021 20:34:38 +0000 (20:34 +0000)
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 a330617..752632c 100644 (file)
@@ -64,6 +64,8 @@ static inline boolean can_cache_resource(uint32_t bind)
           bind == VIRGL_BIND_CUSTOM ||
           bind == VIRGL_BIND_STAGING ||
           bind == VIRGL_BIND_DEPTH_STENCIL ||
+          bind == VIRGL_BIND_SAMPLER_VIEW ||
+          bind == VIRGL_BIND_RENDER_TARGET ||
           bind == 0;
 }