This is probably rare but can happen if someone performs a depth-stencil
copy on the compute queue. This might work (untested by CTS) but it
looks more conservative to decompress before perfoming the operation.
Found by inspection.
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/8039>
return true;
}
+ if ((layout == VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL ||
+ layout == VK_IMAGE_LAYOUT_GENERAL) &&
+ (queue_mask & (1u << RADV_QUEUE_COMPUTE)))
+ return false;
+
return layout != VK_IMAGE_LAYOUT_GENERAL;
}