radv: fix pointSizeRange limits
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 11 Mar 2019 09:25:53 +0000 (10:25 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 12 Mar 2019 08:00:32 +0000 (09:00 +0100)
The values should match the ones that are emitted.

This fixes new CTS dEQP-VK.rasterization.primitive_size.points.*.

Fixes: f4e499ec791 ("radv: add initial non-conformant radv vulkan driver")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c

index fc04de21025136326ff980d7e572195ecaf32e3a..83d218fb6bf01a9109337ffe7a290f0e77780033 100644 (file)
@@ -1016,7 +1016,7 @@ void radv_GetPhysicalDeviceProperties(
                .maxCullDistances                         = 8,
                .maxCombinedClipAndCullDistances          = 8,
                .discreteQueuePriorities                  = 2,
-               .pointSizeRange                           = { 0.125, 255.875 },
+               .pointSizeRange                           = { 0.0, 8192.0 },
                .lineWidthRange                           = { 0.0, 7.9921875 },
                .pointSizeGranularity                     = (1.0 / 8.0),
                .lineWidthGranularity                     = (1.0 / 128.0),