Skip to content

Commit 0b2073d

Browse files
committed
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.
1 parent 1b79ba9 commit 0b2073d

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/gpu/vulkan/SDL_gpu_vulkan.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11581,17 +11581,6 @@ static Uint8 VULKAN_INTERNAL_DeterminePhysicalDevice(VulkanRenderer *renderer)
1158111581
suitableIndex = i;
1158211582
suitableQueueFamilyIndex = queueFamilyIndex;
1158311583
highestRank = deviceRank;
11584-
} else if (deviceRank > highestRank) {
11585-
/* In this case, we found a... "realer?" GPU,
11586-
* but it doesn't actually support our Vulkan.
11587-
* We should disqualify all devices below as a
11588-
* result, because if we don't we end up
11589-
* ignoring real hardware and risk using
11590-
* something like LLVMpipe instead!
11591-
* -flibit
11592-
*/
11593-
suitableIndex = -1;
11594-
highestRank = deviceRank;
1159511584
}
1159611585
}
1159711586

0 commit comments

Comments
 (0)