mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-28 13:00:42 +02:00
virgl: Correctly align size of blobs
Probably a copy-paste error.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Fixes: cd31f46f08 ("virgl/drm: add resource create blob function")
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7332>
This commit is contained in:
parent
7dc17ae5ab
commit
d8562b742e
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ virgl_drm_winsys_resource_create_blob(struct virgl_winsys *qws,
|
|||
if (flags & (VIRGL_RESOURCE_FLAG_MAP_PERSISTENT |
|
||||
VIRGL_RESOURCE_FLAG_MAP_COHERENT)) {
|
||||
width = ALIGN(width, getpagesize());
|
||||
size = ALIGN(width, getpagesize());
|
||||
size = ALIGN(size, getpagesize());
|
||||
}
|
||||
|
||||
blob_id = p_atomic_inc_return(&qdws->blob_id);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue