Skip to content

Commit

Permalink
[vulkan] fix device score bug
Browse files Browse the repository at this point in the history
  • Loading branch information
victoriacity committed Apr 15, 2022
1 parent 5f0289c commit c450f8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taichi/backends/vulkan/vulkan_device_creator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ size_t get_device_score(VkPhysicalDevice device, VkSurfaceKHR surface) {
score +=
size_t(properties.deviceType == VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU) *
1000;
score += VK_API_VERSION_MINOR(properties.driverVersion) * 100;
score += VK_API_VERSION_MINOR(properties.apiVersion) * 100;

return score;
}
Expand Down

0 comments on commit c450f8f

Please sign in to comment.