From 0b2073d1437ee33cd6490fa947e30fbd2c079166 Mon Sep 17 00:00:00 2001
From: Ethan Lee <[EMAIL REDACTED]>
Date: Fri, 7 Nov 2025 13:12:36 -0500
Subject: [PATCH] gpu: Remove dead code in the Vulkan device ranking system.
This block was a sloppy way of trying to avoid prioritizing lavapipe over another device, but truthfully the only way to guarantee avoiding CPU drivers is to add a property to allow apps to require hardware acceleration.
---
src/gpu/vulkan/SDL_gpu_vulkan.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/src/gpu/vulkan/SDL_gpu_vulkan.c b/src/gpu/vulkan/SDL_gpu_vulkan.c
index 72784b5559e4e..6dfb9c4624000 100644
--- a/src/gpu/vulkan/SDL_gpu_vulkan.c
+++ b/src/gpu/vulkan/SDL_gpu_vulkan.c
@@ -11581,17 +11581,6 @@ static Uint8 VULKAN_INTERNAL_DeterminePhysicalDevice(VulkanRenderer *renderer)
suitableIndex = i;
suitableQueueFamilyIndex = queueFamilyIndex;
highestRank = deviceRank;
- } else if (deviceRank > highestRank) {
- /* In this case, we found a... "realer?" GPU,
- * but it doesn't actually support our Vulkan.
- * We should disqualify all devices below as a
- * result, because if we don't we end up
- * ignoring real hardware and risk using
- * something like LLVMpipe instead!
- * -flibit
- */
- suitableIndex = -1;
- highestRank = deviceRank;
}
}