anti-lag: Don't force enable every supported feature on device creation.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
Fixes: 722ffe9a73 ("vulkan: implement VK_AMD_anti_lag as implicit vulkan layer")
Cc: mesa-stable
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37137>
This commit is contained in:
Hans-Kristian Arntzen
2025-09-02 15:11:35 +02:00
committed by Marge Bot
parent 2a4b1ea69b
commit 83bf75e307

View File

@@ -271,6 +271,10 @@ should_enable_layer(instance_data *ctx, VkPhysicalDevice physicalDevice,
/* Ensure that the underlying implementation does not expose VK_AMD_anti_lag itself. */
ext_feature.antiLag = false;
/* Don't clobber unrelated pNext chains passed in at device creation time. */
ext_feature.pNext = NULL;
VkPhysicalDeviceFeatures2 features = {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2,
.pNext = &ext_feature,