lavapipe: wideLines support
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 27 May 2021 12:02:21 +0000 (08:02 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 5 Jul 2021 14:14:40 +0000 (14:14 +0000)
easy enough

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11041>

src/gallium/frontends/lavapipe/lvp_device.c

index bd2dbe7..7e60d11 100644 (file)
@@ -402,7 +402,7 @@ VKAPI_ATTR void VKAPI_CALL lvp_GetPhysicalDeviceFeatures(
       .depthBiasClamp                           = true,
       .fillModeNonSolid                         = true,
       .depthBounds                              = (pdevice->pscreen->get_param(pdevice->pscreen, PIPE_CAP_DEPTH_BOUNDS_TEST) != 0),
-      .wideLines                                = false,
+      .wideLines                                = true,
       .largePoints                              = true,
       .alphaToOne                               = true,
       .multiViewport                            = true,
@@ -776,9 +776,9 @@ VKAPI_ATTR void VKAPI_CALL lvp_GetPhysicalDeviceProperties(VkPhysicalDevice phys
       .maxCombinedClipAndCullDistances          = 8,
       .discreteQueuePriorities                  = 2,
       .pointSizeRange                           = { 0.0, pdevice->pscreen->get_paramf(pdevice->pscreen, PIPE_CAPF_MAX_POINT_WIDTH) },
-      .lineWidthRange                           = { 1.0, 1.0 },
+      .lineWidthRange                           = { 1.0, pdevice->pscreen->get_paramf(pdevice->pscreen, PIPE_CAPF_MAX_LINE_WIDTH) },
       .pointSizeGranularity                     = (1.0 / 8.0),
-      .lineWidthGranularity                     = 0.0,
+      .lineWidthGranularity                     = 1.0 / 128.0,
       .strictLines                              = false, /* FINISHME */
       .standardSampleLocations                  = true,
       .optimalBufferCopyOffsetAlignment         = 128,