mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
virgl: make transfer code with PIPE_BUFFER targets
util_format_get_blocksize returns 1 for R8 formats (all PIPE_BUFFERs are R8). Reviewed-by: Elie Tournier <elie.tournier@collabora.com>
This commit is contained in:
parent
174f530008
commit
4e2c77cd51
1 changed files with 4 additions and 2 deletions
|
|
@ -171,8 +171,10 @@ virgl_resource_create_transfer(struct pipe_context *ctx,
|
|||
}
|
||||
else if (pres->target == PIPE_TEXTURE_1D_ARRAY) {
|
||||
offset += box->z * metadata->stride[level];
|
||||
}
|
||||
else {
|
||||
assert(box->y == 0);
|
||||
} else if (pres->target == PIPE_BUFFER) {
|
||||
assert(box->y == 0 && box->z == 0);
|
||||
} else {
|
||||
assert(box->z == 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue