mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
virgl: disable texture uploads with copy transfers
This disables cdc480585c ("virgl/drm: New optimization for uploading
textures") effectively.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Lepton Wu <lepton@chromium.org>
Acked-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14497>
This commit is contained in:
parent
d3398a8e03
commit
20db89b7c7
1 changed files with 4 additions and 0 deletions
|
|
@ -60,9 +60,11 @@ enum virgl_transfer_map_type {
|
|||
static bool virgl_can_copy_transfer_from_host(struct virgl_screen *vs,
|
||||
struct virgl_resource *res)
|
||||
{
|
||||
#if 0 /* TODO re-enable this */
|
||||
if (vs->caps.caps.v2.capability_bits_v2 & VIRGL_CAP_V2_COPY_TRANSFER_BOTH_DIRECTIONS &&
|
||||
res->b.target != PIPE_BUFFER)
|
||||
return true;
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -202,10 +204,12 @@ virgl_resource_transfer_prepare(struct virgl_context *vctx,
|
|||
VIRGL_QUEUED_STAGING_RES_SIZE_LIMIT);
|
||||
}
|
||||
|
||||
#if 0 /* TODO re-enable this */
|
||||
/* We can use staging buffer for texture uploads from guest to host */
|
||||
if (can_staging && res->b.target != PIPE_BUFFER) {
|
||||
map_type = VIRGL_TRANSFER_MAP_WRITE_TO_STAGING;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue