diff options
author | Marek Olšák <[email protected]> | 2020-03-25 21:30:55 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-27 21:00:10 +0000 |
commit | 013b65635f1db45650809d8d802436c1e9d009e3 (patch) | |
tree | 2c548f11d0c045717f33b9a73defa414dc6cf64d /src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c | |
parent | 76f79db3f5d8492370c92080b5bbea7e31827b75 (diff) |
radv: stop including files from mesa/main
Reviewed-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4324>
Diffstat (limited to 'src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c')
-rw-r--r-- | src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c | 4 |
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); |