mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 05:20:30 +01:00
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:
parent
8cb795b477
commit
f1cd56cdc1
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue