return radv_image_has_htile(image) &&
(layout == VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL ||
- layout == VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL) &&
- queue_mask == (1u << RADV_QUEUE_GENERAL);
+ (layout == VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL &&
+ queue_mask == (1u << RADV_QUEUE_GENERAL)));
}
bool radv_layout_is_htile_compressed(const struct radv_image *image,
return radv_image_has_htile(image) &&
(layout == VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL ||
- layout == VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL) &&
- queue_mask == (1u << RADV_QUEUE_GENERAL);
+ (layout == VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL &&
+ queue_mask == (1u << RADV_QUEUE_GENERAL)));
}
bool radv_layout_can_fast_clear(const struct radv_image *image,
VkImageLayout layout,
unsigned queue_mask)
{
- return layout == VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL &&
- queue_mask == (1u << RADV_QUEUE_GENERAL);
+ return layout == VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL;
}
bool radv_layout_dcc_compressed(const struct radv_image *image,