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:
committed by
Bas Nieuwenhuizen
parent
174f530008
commit
4e2c77cd51
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user