فهرست منبع

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.
Ethan Lee 3 ماه پیش
والد
کامیت
0b2073d143
1فایلهای تغییر یافته به همراه0 افزوده شده و 11 حذف شده
  1. 0 11
      src/gpu/vulkan/SDL_gpu_vulkan.c

+ 0 - 11
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;
         }
     }