mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-02 04:48:26 +02:00
radeon_bo: align size of bo to page size.
This is really required for the VRAM allocator upload function.
This commit is contained in:
parent
75762a8219
commit
dbf72bdd3d
1 changed files with 3 additions and 0 deletions
|
|
@ -260,6 +260,9 @@ static struct bo_legacy *bo_allocate(struct bo_manager_legacy *boml,
|
|||
uint32_t flags)
|
||||
{
|
||||
struct bo_legacy *bo_legacy;
|
||||
uint32_t pgsize = getpagesize() - 1;
|
||||
|
||||
size = (size + pgsize) & ~pgsize;
|
||||
|
||||
bo_legacy = (struct bo_legacy*)calloc(1, sizeof(struct bo_legacy));
|
||||
if (bo_legacy == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue