Commit 720ee494 authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen Committed by Marge Bot
Browse files

radv: Allow DCC images to be compressed with foreign queues.

Otherwise we would always decompress when transitioning to the
foreign queue.

Fixes: 8b9033ad

 ("radv: Support DCC modifiers fully.")
Reviewed-by: Samuel Pitoiset's avatarSamuel Pitoiset <>
Part-of: <mesa/mesa!10802>
parent f44a6c6a
......@@ -1974,6 +1974,9 @@ radv_layout_dcc_compressed(const struct radv_device *device, const struct radv_i
if (!radv_dcc_enabled(image, level))
return false;
if (image->tiling == VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT && queue_mask & (1u << RADV_QUEUE_FOREIGN))
return true;
/* If the image is read-only, we can always just keep it compressed */
if (!(image->usage & RADV_IMAGE_USAGE_WRITE_BITS))
return true;
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