Mesa (main): st/mesa: use new point and line CAPs

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Nov 8 15:09:11 UTC 2021


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

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Nov  4 08:50:30 2021 -0400

st/mesa: use new point and line CAPs

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13676>

---

 src/mesa/state_tracker/st_extensions.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index e6aca7fc6f3..738e46c9fb8 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -130,13 +130,18 @@ void st_init_limits(struct pipe_screen *screen,
    c->MaxLineWidthAA =
       _maxf(1.0f, screen->get_paramf(screen, PIPE_CAPF_MAX_LINE_WIDTH_AA));
 
+   c->MinLineWidth = screen->get_paramf(screen, PIPE_CAPF_MIN_LINE_WIDTH);
+   c->MinLineWidthAA = screen->get_paramf(screen, PIPE_CAPF_MIN_LINE_WIDTH_AA);
+   c->LineWidthGranularity = screen->get_paramf(screen, PIPE_CAPF_LINE_WIDTH_GRANULARITY);
+
    c->MaxPointSize =
       _maxf(1.0f, screen->get_paramf(screen, PIPE_CAPF_MAX_POINT_SIZE));
    c->MaxPointSizeAA =
       _maxf(1.0f, screen->get_paramf(screen, PIPE_CAPF_MAX_POINT_SIZE_AA));
 
-   c->MinPointSize = 1.0f;
-   c->MinPointSizeAA = 1.0f;
+   c->MinPointSize = screen->get_paramf(screen, PIPE_CAPF_MIN_POINT_SIZE);
+   c->MinPointSizeAA = screen->get_paramf(screen, PIPE_CAPF_MIN_POINT_SIZE_AA);
+   c->PointSizeGranularity = screen->get_paramf(screen, PIPE_CAPF_POINT_SIZE_GRANULARITY);
 
    c->MaxTextureMaxAnisotropy =
       _maxf(2.0f,



More information about the mesa-commit mailing list