aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c')
-rw-r--r--src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c
index c07641d6ab8..bfade961d94 100644
--- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c
+++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c
@@ -37,6 +37,8 @@
#include <unistd.h>
#include "util/u_atomic.h"
+#include "util/u_memory.h"
+#include "util/u_math.h"
#define AMDGPU_TILING_SCANOUT_SHIFT 63
#define AMDGPU_TILING_SCANOUT_MASK 1
@@ -61,7 +63,7 @@ radv_amdgpu_bo_va_op(struct radv_amdgpu_winsys *ws,
if (!(bo_flags & RADEON_FLAG_READ_ONLY))
flags |= AMDGPU_VM_PAGE_WRITEABLE;
- size = ALIGN(size, getpagesize());
+ size = align64(size, getpagesize());
return amdgpu_bo_va_op_raw(ws->dev, bo, offset, size, addr,
flags, ops);