radv: Extend tiling flags to 64-bit.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 2 May 2020 11:59:59 +0000 (13:59 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 2 May 2020 14:19:01 +0000 (14:19 +0000)
SCANOUT is bit 63 ....

Fixes: bfd9e7ff243 "radv: Use new scanout gfx9 metadata flag."
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2879
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4859>

src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c

index f6f9080d8e44c315382d75a7fcc2ae44a1c87eef..740d7d23fa634d46f5c161ae72da2c3cab943845 100644 (file)
@@ -717,7 +717,7 @@ radv_amdgpu_winsys_bo_set_metadata(struct radeon_winsys_bo *_bo,
 {
        struct radv_amdgpu_winsys_bo *bo = radv_amdgpu_winsys_bo(_bo);
        struct amdgpu_bo_metadata metadata = {0};
-       uint32_t tiling_flags = 0;
+       uint64_t tiling_flags = 0;
 
        if (bo->ws->info.chip_class >= GFX9) {
                tiling_flags |= AMDGPU_TILING_SET(SWIZZLE_MODE, md->u.gfx9.swizzle_mode);