Commit 41883c69 authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen

radv: Do the sample check for tiling earlier.

The LINEAR optimization is not allowed for MSAA images.
parent dad6b625
Pipeline #228240 waiting for manual action with stages
in 22 seconds
......@@ -47,6 +47,10 @@ radv_choose_tiling(struct radv_device *device,
return RADEON_SURF_MODE_LINEAR_ALIGNED;
}
/* MSAA resources must be 2D tiled. */
if (pCreateInfo->samples > 1)
return RADEON_SURF_MODE_2D;
if (!vk_format_is_compressed(format) &&
!vk_format_is_depth_or_stencil(format)
&& device->physical_device->rad_info.chip_class <= GFX8) {
......@@ -59,10 +63,6 @@ radv_choose_tiling(struct radv_device *device,
return RADEON_SURF_MODE_LINEAR_ALIGNED;
}
/* MSAA resources must be 2D tiled. */
if (pCreateInfo->samples > 1)
return RADEON_SURF_MODE_2D;
return RADEON_SURF_MODE_2D;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment