Mesa (main): lavapipe: re-expose line-rasterization extension

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 12 22:31:23 UTC 2021


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

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Wed Jul  7 17:06:47 2021 +0200

lavapipe: re-expose line-rasterization extension

While we're at it, let's also enable rectangular line support, now that
we can properly control it.

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11782>

---

 src/gallium/drivers/zink/ci/piglit-zink-lvp-fails.txt | 1 -
 src/gallium/frontends/lavapipe/lvp_device.c           | 6 +++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/gallium/drivers/zink/ci/piglit-zink-lvp-fails.txt b/src/gallium/drivers/zink/ci/piglit-zink-lvp-fails.txt
index ae3d4276522..a949f695e88 100644
--- a/src/gallium/drivers/zink/ci/piglit-zink-lvp-fails.txt
+++ b/src/gallium/drivers/zink/ci/piglit-zink-lvp-fails.txt
@@ -40,7 +40,6 @@ spec@!opengl 1.1 at linestipple@Factor 2x,Fail
 spec@!opengl 1.1 at linestipple@Factor 3x,Fail
 spec@!opengl 1.1 at linestipple@Line loop,Fail
 spec@!opengl 1.1 at linestipple@Line strip,Fail
-spec@!opengl 1.1 at linestipple@Restarting lines within a single Begin-End block,Fail
 spec@!opengl 1.1 at polygon-mode,Fail
 spec@!opengl 1.1 at polygon-mode-facing,Fail
 spec@!opengl 1.1 at polygon-mode-offset,Fail
diff --git a/src/gallium/frontends/lavapipe/lvp_device.c b/src/gallium/frontends/lavapipe/lvp_device.c
index 3360d91e6f1..6d5dd04623f 100644
--- a/src/gallium/frontends/lavapipe/lvp_device.c
+++ b/src/gallium/frontends/lavapipe/lvp_device.c
@@ -143,7 +143,7 @@ static const struct vk_device_extension_table lvp_device_extensions_supported =
    .EXT_vertex_input_dynamic_state        = true,
    .EXT_custom_border_color               = true,
    .EXT_provoking_vertex                  = true,
-   .EXT_line_rasterization                = false,
+   .EXT_line_rasterization                = true,
    .GOOGLE_decorate_string                = true,
    .GOOGLE_hlsl_functionality1            = true,
 };
@@ -518,10 +518,10 @@ VKAPI_ATTR void VKAPI_CALL lvp_GetPhysicalDeviceFeatures2(
       case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXT: {
          VkPhysicalDeviceLineRasterizationFeaturesEXT *features =
             (VkPhysicalDeviceLineRasterizationFeaturesEXT *)ext;
-         features->rectangularLines = false;
+         features->rectangularLines = true;
          features->bresenhamLines = true;
          features->smoothLines = true;
-         features->stippledRectangularLines = false;
+         features->stippledRectangularLines = true;
          features->stippledBresenhamLines = true;
          features->stippledSmoothLines = true;
          break;



More information about the mesa-commit mailing list