From 45869d6177900017313e91c414cf1c0f56e7231b Mon Sep 17 00:00:00 2001
From: Caleb Cornett <[EMAIL REDACTED]>
Date: Wed, 4 Dec 2024 15:05:35 -0500
Subject: [PATCH] GPU: Vulkan requires drawIndirectFirstInstance feature
(#11583)
---
src/gpu/vulkan/SDL_gpu_vulkan.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gpu/vulkan/SDL_gpu_vulkan.c b/src/gpu/vulkan/SDL_gpu_vulkan.c
index 92c2df9463165..a8202b54fda01 100644
--- a/src/gpu/vulkan/SDL_gpu_vulkan.c
+++ b/src/gpu/vulkan/SDL_gpu_vulkan.c
@@ -11014,7 +11014,8 @@ static Uint8 VULKAN_INTERNAL_IsDeviceSuitable(
if (!deviceFeatures.independentBlend ||
!deviceFeatures.imageCubeArray ||
!deviceFeatures.depthClamp ||
- !deviceFeatures.shaderClipDistance) {
+ !deviceFeatures.shaderClipDistance ||
+ !deviceFeatures.drawIndirectFirstInstance) {
return 0;
}
@@ -11260,6 +11261,7 @@ static Uint8 VULKAN_INTERNAL_CreateLogicalDevice(
desiredDeviceFeatures.imageCubeArray = VK_TRUE;
desiredDeviceFeatures.depthClamp = VK_TRUE;
desiredDeviceFeatures.shaderClipDistance = VK_TRUE;
+ desiredDeviceFeatures.drawIndirectFirstInstance = VK_TRUE;
if (haveDeviceFeatures.fillModeNonSolid) {
desiredDeviceFeatures.fillModeNonSolid = VK_TRUE;