From: Bas Nieuwenhuizen Date: Sat, 2 May 2020 11:59:59 +0000 (+0200) Subject: radv: Extend tiling flags to 64-bit. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df9629e593ee7faee617e90b644b52f049801e34;p=mesa.git radv: Extend tiling flags to 64-bit. 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 Part-of: --- diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c index f6f9080d8e4..740d7d23fa6 100644 --- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c +++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c @@ -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);