From: Mike Blumenkrantz Date: Wed, 21 Jul 2021 15:02:17 +0000 (-0400) Subject: lavapipe: EXT_4444_formats support X-Git-Tag: upstream/22.3.5~16954 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96ea718b7edaa71b2301e5ca972de6139a570702;p=platform%2Fupstream%2Fmesa.git lavapipe: EXT_4444_formats support Reviewed-by: Adam Jackson Reviewed-by: Dave Airlie Part-of: --- diff --git a/src/gallium/frontends/lavapipe/lvp_device.c b/src/gallium/frontends/lavapipe/lvp_device.c index 47ad0a5..3761532 100644 --- a/src/gallium/frontends/lavapipe/lvp_device.c +++ b/src/gallium/frontends/lavapipe/lvp_device.c @@ -130,6 +130,7 @@ static const struct vk_device_extension_table lvp_device_extensions_supported = .KHR_timeline_semaphore = true, .KHR_uniform_buffer_standard_layout = true, .KHR_variable_pointers = true, + .EXT_4444_formats = true, .EXT_calibrated_timestamps = true, .EXT_color_write_enable = true, .EXT_conditional_rendering = true, @@ -612,6 +613,13 @@ VKAPI_ATTR void VKAPI_CALL lvp_GetPhysicalDeviceFeatures2( features->extendedDynamicState = true; break; } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_4444_FORMATS_FEATURES_EXT: { + VkPhysicalDevice4444FormatsFeaturesEXT *features = + (VkPhysicalDevice4444FormatsFeaturesEXT*)ext; + features->formatA4R4G4B4 = true; + features->formatA4B4G4R4 = true; + break; + } case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_FEATURES_EXT: { VkPhysicalDeviceCustomBorderColorFeaturesEXT *features = (VkPhysicalDeviceCustomBorderColorFeaturesEXT *)ext; diff --git a/src/gallium/frontends/lavapipe/lvp_private.h b/src/gallium/frontends/lavapipe/lvp_private.h index 978dd78..d5865eb 100644 --- a/src/gallium/frontends/lavapipe/lvp_private.h +++ b/src/gallium/frontends/lavapipe/lvp_private.h @@ -675,8 +675,6 @@ lvp_vk_format_to_pipe_format(VkFormat format) { /* Some formats cause problems with CTS right now.*/ if (format == VK_FORMAT_R4G4B4A4_UNORM_PACK16 || - format == VK_FORMAT_A4R4G4B4_UNORM_PACK16_EXT || /* VK_EXT_4444_formats */ - format == VK_FORMAT_A4B4G4R4_UNORM_PACK16_EXT || /* VK_EXT_4444_formats */ format == VK_FORMAT_R5G5B5A1_UNORM_PACK16 || format == VK_FORMAT_R8_SRGB || format == VK_FORMAT_R8G8_SRGB ||