turnip: enable largePoints
authorJonathan Marek <jonathan@marek.ca>
Sun, 28 Jun 2020 23:58:08 +0000 (19:58 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 29 Jun 2020 13:08:51 +0000 (13:08 +0000)
Passes dEQP-VK.rasterization.primitive_size.points.point_size_*

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5678>

src/freedreno/vulkan/tu_device.c

index a328f1164cd9d513947079c3895ee626edba1394..b0f3feb39025cd84b46863e82f850d37b39b383d 100644 (file)
@@ -608,7 +608,7 @@ tu_GetPhysicalDeviceFeatures(VkPhysicalDevice physicalDevice,
       .fillModeNonSolid = true,
       .depthBounds = true,
       .wideLines = false,
-      .largePoints = false,
+      .largePoints = true,
       .alphaToOne = true,
       .multiViewport = false,
       .samplerAnisotropy = true,
@@ -877,9 +877,9 @@ tu_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice,
       .maxCullDistances = 8,
       .maxCombinedClipAndCullDistances = 8,
       .discreteQueuePriorities = 1,
-      .pointSizeRange = { 0.125, 255.875 },
+      .pointSizeRange = { 1, 4092 },
       .lineWidthRange = { 0.0, 7.9921875 },
-      .pointSizeGranularity = (1.0 / 8.0),
+      .pointSizeGranularity =  0.0625,
       .lineWidthGranularity = (1.0 / 128.0),
       .strictLines = false, /* FINISHME */
       .standardSampleLocations = true,