Mesa (main): lavapipe: wideLines support

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 5 14:31:45 UTC 2021


Module: Mesa
Branch: main
Commit: 3292a9d6605cad28139309447f4c7c11cf27443c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3292a9d6605cad28139309447f4c7c11cf27443c

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Thu May 27 08:02:21 2021 -0400

lavapipe: wideLines support

easy enough

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

---

 src/gallium/frontends/lavapipe/lvp_device.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gallium/frontends/lavapipe/lvp_device.c b/src/gallium/frontends/lavapipe/lvp_device.c
index bd2dbe74344..7e60d116851 100644
--- a/src/gallium/frontends/lavapipe/lvp_device.c
+++ b/src/gallium/frontends/lavapipe/lvp_device.c
@@ -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,



More information about the mesa-commit mailing list