Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9998>
return 0;
if (ac_modifier_has_dcc(modifier)) {
- features &= ~(VK_FORMAT_FEATURE_TRANSFER_DST_BIT |
- VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT |
- VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT |
- VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT);
+ features &= ~VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT;
if (dev->instance->debug_flags & (RADV_DEBUG_NO_DCC | RADV_DEBUG_NO_DISPLAY_DCC))
return 0;
static void
radv_image_alloc_values(const struct radv_device *device, struct radv_image *image)
{
+ /* images with modifiers can be potentially imported */
+ if (image->tiling == VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT)
+ return;
+
if (radv_image_has_cmask(image) || radv_image_has_dcc(image)) {
image->fce_pred_offset = image->size;
image->size += 8 * image->info.levels;