lavapipe: Block YCbCr formats from getting blit feature flags

Block all YCbCr formats from getting blit feature flags by using
vk_format_ycbcr_info.

Fixes dEQP-VK.api.info.format_properties.g10x6_b10x6r10x6_2plane_420_unorm_3pack16
and dEQP-VK.api.info.format_properties.g12x4_b12x4r12x4_2plane_420_unorm_3pack16.

Fixes: ab298b9c3a ("lavapipe: Remap 10 and 12 bit formats to 16 bit formats")
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Signed-off-by: Valentine Burley <valentine.burley@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31863>
This commit is contained in:
Valentine Burley
2024-10-27 11:55:33 +00:00
committed by Marge Bot
parent 3637570725
commit d205d7ed58
2 changed files with 1 additions and 5 deletions

View File

@@ -6,7 +6,6 @@ dEQP-VK.rasterization.provoking_vertex.transform_feedback.per_pipeline.triangle_
# The test has a loop that exceeds LP_MAX_TGSI_LOOP_ITERATIONS
dEQP-VK.sparse_resources.buffer.ssbo.sparse_residency.buffer_size_2_24,Fail
dEQP-VK.api.info.format_properties.g12x4_b12x4r12x4_2plane_420_unorm_3pack16,Fail
dEQP-VK.api.maintenance7.total_dynamic_buffers_properties,Fail
dEQP-VK.dynamic_rendering.complete_secondary_cmd_buff.suballocation.unused_attachment.loadopclear.storeopdontcare.stencilloadopdontcare.stencilstoreopdontcare,Fail

View File

@@ -194,10 +194,7 @@ lvp_physical_device_get_format_properties(struct lvp_physical_device *physical_d
}
if ((pformat != PIPE_FORMAT_R9G9B9E5_FLOAT) &&
util_format_get_nr_components(pformat) != 3 &&
!util_format_is_subsampled_422(pformat) &&
!util_format_is_yuv(pformat) &&
pformat != PIPE_FORMAT_G8_B8R8_420_UNORM &&
pformat != PIPE_FORMAT_G8_B8_R8_420_UNORM &&
!ycbcr_info &&
pformat != PIPE_FORMAT_R10G10B10A2_SNORM &&
pformat != PIPE_FORMAT_B10G10R10A2_SNORM &&
pformat != PIPE_FORMAT_B10G10R10A2_UNORM) {