virgl: Enable caching for sampler views and render targets

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>
This commit is contained in:
Rohan Garg 2021-07-02 11:56:58 +02:00 committed by Marge Bot
parent 8cb795b477
commit f1cd56cdc1

View 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;
}