radv: align the TMA BO size to 256
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 25 Aug 2020 09:42:32 +0000 (11:42 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 25 Aug 2020 11:15:32 +0000 (13:15 +0200)
The hardware requires 256 byte-aligned address.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6453>

src/amd/vulkan/radv_debug.c

index ce68c2ddb02f68244e5d0b16a0af9f55e5585108..97b3ac614cec6542e13dc33eb62b70ff85e07ce9 100644 (file)
@@ -692,7 +692,7 @@ radv_trap_handler_init(struct radv_device *device)
                return false;
        }
 
-       device->tma_bo = ws->buffer_create(ws, TMA_BO_SIZE, 8,
+       device->tma_bo = ws->buffer_create(ws, TMA_BO_SIZE, 256,
                                           RADEON_DOMAIN_VRAM,
                                           RADEON_FLAG_CPU_ACCESS |
                                           RADEON_FLAG_NO_INTERPROCESS_SHARING |