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:
committed by
Marge Bot
parent
2a4b1ea69b
commit
83bf75e307
@@ -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. */
|
/* Ensure that the underlying implementation does not expose VK_AMD_anti_lag itself. */
|
||||||
ext_feature.antiLag = false;
|
ext_feature.antiLag = false;
|
||||||
|
|
||||||
|
/* Don't clobber unrelated pNext chains passed in at device creation time. */
|
||||||
|
ext_feature.pNext = NULL;
|
||||||
|
|
||||||
VkPhysicalDeviceFeatures2 features = {
|
VkPhysicalDeviceFeatures2 features = {
|
||||||
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2,
|
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2,
|
||||||
.pNext = &ext_feature,
|
.pNext = &ext_feature,
|
||||||
|
|||||||
Reference in New Issue
Block a user