diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/winsys/virgl/drm/virgl_drm_winsys.c | 3 | ||||
-rw-r--r-- | src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c index f2c41bbc903..0f6403f691f 100644 --- a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c +++ b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c @@ -55,7 +55,8 @@ static inline boolean can_cache_resource_with_bind(uint32_t bind) return bind == VIRGL_BIND_CONSTANT_BUFFER || bind == VIRGL_BIND_INDEX_BUFFER || bind == VIRGL_BIND_VERTEX_BUFFER || - bind == VIRGL_BIND_CUSTOM; + bind == VIRGL_BIND_CUSTOM || + bind == VIRGL_BIND_STAGING; } static void virgl_hw_res_destroy(struct virgl_drm_winsys *qdws, diff --git a/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c b/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c index ccacb81d233..9ab068b27bf 100644 --- a/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c +++ b/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c @@ -42,7 +42,8 @@ static inline boolean can_cache_resource_with_bind(uint32_t bind) return bind == VIRGL_BIND_CONSTANT_BUFFER || bind == VIRGL_BIND_INDEX_BUFFER || bind == VIRGL_BIND_VERTEX_BUFFER || - bind == VIRGL_BIND_CUSTOM; + bind == VIRGL_BIND_CUSTOM || + bind == VIRGL_BIND_STAGING; } static uint32_t vtest_get_transfer_size(struct virgl_hw_res *res, |