radv: advertise VK_EXT_color_write_enable
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 3 May 2021 12:02:53 +0000 (14:02 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 2 Jul 2021 10:02:02 +0000 (10:02 +0000)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11530>

docs/relnotes/new_features.txt
src/amd/vulkan/radv_device.c

index 303fb23..02de8a0 100644 (file)
@@ -4,6 +4,7 @@ VK_EXT_extended_dynamic_state2 on RADV.
 VK_EXT_global_priority_query on RADV.
 VK_EXT_physical_device_drm on RADV.
 VK_KHR_shader_subgroup_uniform_control_flow on Intel and RADV.
+VK_EXT_color_write_enable on RADV.
 32-bit x86 builds now default disable x87 math and use sse2.
 GL ES 3.1 on GT21x hardware.
 VK_EXT_acquire_drm_display on RADV.
index eb97e3d..2b3119e 100644 (file)
@@ -451,7 +451,7 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device
       .EXT_4444_formats = true,
       .EXT_buffer_device_address = true,
       .EXT_calibrated_timestamps = RADV_SUPPORT_CALIBRATED_TIMESTAMPS,
-      .EXT_color_write_enable = false,
+      .EXT_color_write_enable = true,
       .EXT_conditional_rendering = true,
       .EXT_conservative_rasterization = device->rad_info.chip_class >= GFX9,
       .EXT_custom_border_color = true,
@@ -1654,6 +1654,12 @@ radv_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
          features->shaderSubgroupUniformControlFlow = true;
          break;
       }
+      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COLOR_WRITE_ENABLE_FEATURES_EXT: {
+         VkPhysicalDeviceColorWriteEnableFeaturesEXT *features =
+            (VkPhysicalDeviceColorWriteEnableFeaturesEXT *)ext;
+         features->colorWriteEnable = true;
+         break;
+      }
       default:
          break;
       }