virgl: Set GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION to 1
authorCorentin Noël <corentin.noel@collabora.com>
Tue, 14 Sep 2021 12:38:42 +0000 (14:38 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Sep 2021 07:53:39 +0000 (07:53 +0000)
The resulting quads are actually already following the provoking vertex convention.

Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12851>

src/gallium/drivers/virgl/virgl_screen.c

index 767e0ce..80af635 100644 (file)
@@ -171,6 +171,7 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_GLSL_FEATURE_LEVEL_COMPATIBILITY:
       return MIN2(vscreen->caps.caps.v1.glsl_level, 140);
    case PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION:
+      return 1;
    case PIPE_CAP_DEPTH_CLIP_DISABLE_SEPARATE:
       return 0;
    case PIPE_CAP_COMPUTE: