Mesa (main): virgl: Enable caching for sampler views and render targets
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jul 27 20:44:06 UTC 2021
Module: Mesa
Branch: main
Commit: f1cd56cdc11bcc348043d56dc74305b7aa71d44f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f1cd56cdc11bcc348043d56dc74305b7aa71d44f
Author: Rohan Garg <rohan.garg at collabora.com>
Date: Fri Jul 2 11:56:58 2021 +0200
virgl: Enable caching for sampler views and render targets
Signed-off-by: Rohan Garg <rohan.garg at collabora.com>
Reviewed-by: Gert Wollny <gert.wollny at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11241>
---
src/gallium/winsys/virgl/drm/virgl_drm_winsys.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c
index a330617a828..752632c030c 100644
--- a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c
+++ b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c
@@ -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;
}
More information about the mesa-commit
mailing list