Commit 8b9033ad authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen Committed by Marge Bot
Browse files

radv: Support DCC modifiers fully.


Reviewed-by: Samuel Pitoiset's avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <!9998>
parent 6ff88a82
Pipeline #297781 waiting for manual action with stages
...@@ -1156,10 +1156,7 @@ radv_get_modifier_flags(struct radv_physical_device *dev, ...@@ -1156,10 +1156,7 @@ radv_get_modifier_flags(struct radv_physical_device *dev,
return 0; return 0;
if (ac_modifier_has_dcc(modifier)) { if (ac_modifier_has_dcc(modifier)) {
features &= ~(VK_FORMAT_FEATURE_TRANSFER_DST_BIT | features &= ~VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT;
VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT |
VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT |
VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT);
if (dev->instance->debug_flags & (RADV_DEBUG_NO_DCC | RADV_DEBUG_NO_DISPLAY_DCC)) if (dev->instance->debug_flags & (RADV_DEBUG_NO_DCC | RADV_DEBUG_NO_DISPLAY_DCC))
return 0; return 0;
......
...@@ -1360,6 +1360,10 @@ radv_image_alloc_single_sample_cmask(const struct radv_device *device, ...@@ -1360,6 +1360,10 @@ radv_image_alloc_single_sample_cmask(const struct radv_device *device,
static void static void
radv_image_alloc_values(const struct radv_device *device, struct radv_image *image) 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)) { if (radv_image_has_cmask(image) || radv_image_has_dcc(image)) {
image->fce_pred_offset = image->size; image->fce_pred_offset = image->size;
image->size += 8 * image->info.levels; image->size += 8 * image->info.levels;
......
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