mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +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:
parent
1b79ba9ab6
commit
0b2073d143
1 changed files with 0 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue