Module: Mesa
Branch: main
Commit: f1cd56cdc11bcc348043d56dc74305b7aa71d44f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f1cd56cdc11bcc348043d56dc74305b7aa71d44f

Author: Rohan Garg <[email protected]>
Date:   Fri Jul  2 11:56:58 2021 +0200

virgl: Enable caching for sampler views and render targets

Signed-off-by: Rohan Garg <[email protected]>
Reviewed-by: Gert Wollny <[email protected]>
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;
 }
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to