This could help performance when trying to recreate such resources for
copy transfers.
Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
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,
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,