v3d: Disable PIPE_CAP_PRIMITIVE_RESTART
authorNeil Roberts <nroberts@igalia.com>
Thu, 18 Jun 2020 13:53:03 +0000 (15:53 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Jun 2020 12:41:56 +0000 (12:41 +0000)
The hardware can only support the PIPE_CAP_PRIMITIVE_RESTART_FIXED_INDEX
subset. This will make it stop advertising the NV_primitive_restart
extension without breaking GLES 3.0 support.

v2: Update features.txt

Reviewed-by: Eric Anholt <eric@anholt.net> (v1)
Reviewed by: Erik Faye-Lund <erik.faye-lund@collabora.com>

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5559>

docs/features.txt
src/gallium/drivers/v3d/v3d_screen.c

index 791ebc496e129135f91deb678a08b8c7cd7df2ca..42b7463fb5893bc508aeb1c9ade04c7ca11a529f 100644 (file)
@@ -74,7 +74,7 @@ GL 3.1, GLSL 1.40 --- all DONE: freedreno, i965, nv50, nvc0, r600, radeonsi, llv
   Forward compatible context support/deprecations       DONE
   GL_ARB_draw_instanced (Instanced drawing)             DONE (v3d, zink)
   GL_ARB_copy_buffer (Buffer copying)                   DONE (v3d, zink)
-  GL_NV_primitive_restart (Primitive restart)           DONE (v3d)
+  GL_NV_primitive_restart (Primitive restart)           DONE ()
   16 vertex texture image units                         DONE (zink)
   GL_ARB_texture_buffer_object (Texture buffer objs)    DONE (zink)
   GL_ARB_texture_rectangle (Rectangular textures)       DONE (v3d, zink)
index b9a4fdc5fc8b3840e1a8f5633ad61ad52f541b68..503573e36bc16110e87d16d7402625fe3a25fdd7 100644 (file)
@@ -123,7 +123,6 @@ v3d_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
         case PIPE_CAP_FRAGMENT_SHADER_TEXTURE_LOD:
         case PIPE_CAP_FRAGMENT_SHADER_DERIVATIVES:
         case PIPE_CAP_VERTEX_SHADER_SATURATE:
-        case PIPE_CAP_PRIMITIVE_RESTART:
         case PIPE_CAP_PRIMITIVE_RESTART_FIXED_INDEX:
         case PIPE_CAP_OCCLUSION_QUERY:
         case PIPE_CAP_POINT_SPRITE: