Mesa (main): lavapipe: EXT_4444_formats support
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Oct 6 04:57:03 UTC 2021
Module: Mesa
Branch: main
Commit: 96ea718b7edaa71b2301e5ca972de6139a570702
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=96ea718b7edaa71b2301e5ca972de6139a570702
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Wed Jul 21 11:02:17 2021 -0400
lavapipe: EXT_4444_formats support
Reviewed-by: Adam Jackson <ajax at redhat.com>
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12001>
---
src/gallium/frontends/lavapipe/lvp_device.c | 8 ++++++++
src/gallium/frontends/lavapipe/lvp_private.h | 2 --
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/gallium/frontends/lavapipe/lvp_device.c b/src/gallium/frontends/lavapipe/lvp_device.c
index 47ad0a5c9ff..37615326240 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 978dd784c8f..d5865eb5d05 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 ||
More information about the mesa-commit
mailing list