mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-26 08:09:11 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user