Mesa (master): panfrost: Expose PIPE_CAP_PRIMITIVE_RESTART

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Feb 27 15:48:15 UTC 2020


Module: Mesa
Branch: master
Commit: f5b6dfcb18f821cc5425cd6eea013e28148097c4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f5b6dfcb18f821cc5425cd6eea013e28148097c4

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Thu Feb 20 09:43:34 2020 -0500

panfrost: Expose PIPE_CAP_PRIMITIVE_RESTART

It works just fine, we just forgot to expose the CAP.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3950>

---

 src/gallium/drivers/panfrost/pan_screen.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c
index 0ad0c2bf638..6f40ca768bb 100644
--- a/src/gallium/drivers/panfrost/pan_screen.c
+++ b/src/gallium/drivers/panfrost/pan_screen.c
@@ -125,6 +125,7 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
 
         case PIPE_CAP_TGSI_INSTANCEID:
         case PIPE_CAP_VERTEX_ELEMENT_INSTANCE_DIVISOR:
+        case PIPE_CAP_PRIMITIVE_RESTART:
                 return 1;
 
         case PIPE_CAP_MAX_STREAM_OUTPUT_BUFFERS:



More information about the mesa-commit mailing list