radv: fix line width range and granularity
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 5 Dec 2019 16:28:47 +0000 (17:28 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 13 Feb 2020 07:14:01 +0000 (08:14 +0100)
The hardware supports wide lines and the granularity is way larger.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2982>

src/amd/vulkan/radv_device.c

index de98dd867194369b5f8b516d3f4f5b407fa29b41..a016ff3886d098ec90adf8b16c085c865b84c8f5 100644 (file)
@@ -1407,9 +1407,9 @@ void radv_GetPhysicalDeviceProperties(
                .maxCombinedClipAndCullDistances          = 8,
                .discreteQueuePriorities                  = 2,
                .pointSizeRange                           = { 0.0, 8192.0 },
-               .lineWidthRange                           = { 0.0, 7.9921875 },
+               .lineWidthRange                           = { 0.0, 8192.0 },
                .pointSizeGranularity                     = (1.0 / 8.0),
-               .lineWidthGranularity                     = (1.0 / 128.0),
+               .lineWidthGranularity                     = (1.0 / 8.0),
                .strictLines                              = false, /* FINISHME */
                .standardSampleLocations                  = true,
                .optimalBufferCopyOffsetAlignment         = 128,