panfrost: Expose PIPE_CAP_PRIMITIVE_RESTART
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 20 Feb 2020 14:43:34 +0000 (09:43 -0500)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 27 Feb 2020 15:32:23 +0000 (16:32 +0100)
It works just fine, we just forgot to expose the CAP.

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

src/gallium/drivers/panfrost/pan_screen.c

index 0ad0c2bf63892b26c48e71596117e4c59285971e..6f40ca768bbe99f0a9eb45b19043d7429edef7fd 100644 (file)
@@ -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: