anv/blorp: Drop some can_ycbcr checks
Vulkan allows us to, in theory, support ycbcr on single-plane formats if the client really wants it. Also, these functions should work on a multi-plane color image as long as the client specifies the right aspect. This gets rid of our usage of can_ycbcr outside of anv_image.c. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12141>
This commit is contained in:
committed by
Marge Bot
parent
bf87b9ad81
commit
9a267be039
@@ -1390,8 +1390,6 @@ anv_image_msaa_resolve(struct anv_cmd_buffer *cmd_buffer,
|
||||
assert(dst_image->type == VK_IMAGE_TYPE_2D);
|
||||
assert(dst_image->samples == 1);
|
||||
assert(src_image->n_planes == dst_image->n_planes);
|
||||
assert(!src_image->format->can_ycbcr);
|
||||
assert(!dst_image->format->can_ycbcr);
|
||||
|
||||
struct blorp_surf src_surf, dst_surf;
|
||||
get_blorp_surf_for_anv_image(cmd_buffer->device, src_image, aspect,
|
||||
@@ -1492,8 +1490,6 @@ void anv_CmdResolveImage2KHR(
|
||||
ANV_FROM_HANDLE(anv_image, src_image, pResolveImageInfo->srcImage);
|
||||
ANV_FROM_HANDLE(anv_image, dst_image, pResolveImageInfo->dstImage);
|
||||
|
||||
assert(!src_image->format->can_ycbcr);
|
||||
|
||||
for (uint32_t r = 0; r < pResolveImageInfo->regionCount; r++) {
|
||||
resolve_image(cmd_buffer,
|
||||
src_image, pResolveImageInfo->srcImageLayout,
|
||||
|
||||
Reference in New Issue
Block a user