mesa: remove per_vertex_edgeflags parameter from DrawGalliumVertexState
authorMarek Olšák <marek.olsak@amd.com>
Mon, 21 Nov 2022 12:15:03 +0000 (07:15 -0500)
committerMarge Bot <emma+marge@anholt.net>
Mon, 12 Dec 2022 19:15:34 +0000 (19:15 +0000)
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19953>

src/mesa/main/dd.h
src/mesa/state_tracker/st_draw.c
src/mesa/vbo/vbo_save_draw.c

index 5322a77..02f96c6 100644 (file)
@@ -182,8 +182,7 @@ struct dd_function_table {
                                   struct pipe_draw_vertex_state_info info,
                                   const struct pipe_draw_start_count_bias *draws,
                                   const uint8_t *mode,
-                                  unsigned num_draws,
-                                  bool per_vertex_edgeflags);
+                                  unsigned num_draws);
    /*@}*/
 
    struct pipe_vertex_state *
index 9286231..bd7adb9 100644 (file)
@@ -345,8 +345,7 @@ st_draw_gallium_vertex_state(struct gl_context *ctx,
                              struct pipe_draw_vertex_state_info info,
                              const struct pipe_draw_start_count_bias *draws,
                              const uint8_t *mode,
-                             unsigned num_draws,
-                             bool per_vertex_edgeflags)
+                             unsigned num_draws)
 {
    struct st_context *st = st_context(ctx);
 
index a57faa8..0148810 100644 (file)
@@ -281,13 +281,11 @@ vbo_save_playback_vertex_list_gallium(struct gl_context *ctx,
       ctx->Driver.DrawGalliumVertexState(ctx, state, info,
                                          node->start_counts,
                                          node->modes,
-                                         node->num_draws,
-                                         enabled & VERT_ATTRIB_EDGEFLAG);
+                                         node->num_draws);
    } else if (node->num_draws) {
       ctx->Driver.DrawGalliumVertexState(ctx, state, info,
                                          &node->start_count,
-                                         NULL, 1,
-                                         enabled & VERT_ATTRIB_EDGEFLAG);
+                                         NULL, 1);
    }
 
    /* Restore edge flag state. */