mesa: fix incorrect comment in draw_gallium_multimode
authorMarek Olšák <marek.olsak@amd.com>
Mon, 14 Jun 2021 03:00:44 +0000 (23:00 -0400)
committerMarge Bot <eric+marge@anholt.net>
Sat, 17 Jul 2021 02:59:54 +0000 (02:59 +0000)
Fixes: 4566383ae4b ("gallium: move pipe_draw_info::index_bias to pipe_draw_start_count_bias")

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11939>

src/mesa/main/draw.c
src/mesa/state_tracker/st_draw.c

index bb506e7..95f60b0 100644 (file)
@@ -1073,7 +1073,7 @@ _mesa_draw_gallium_multimode_fallback(struct gl_context *ctx,
 {
    unsigned i, first;
  
-   /* Find consecutive draws where mode and base_vertex don't vary. */
+   /* Find consecutive draws where mode doesn't vary. */
    for (i = 0, first = 0; i <= num_draws; i++) {
       if (i == num_draws || mode[i] != mode[first]) {
          info->mode = mode[first];
index 108e46e..2b6cb8c 100644 (file)
@@ -204,7 +204,7 @@ st_draw_gallium_multimode(struct gl_context *ctx,
    unsigned i, first;
    struct cso_context *cso = st->cso_context;
 
-   /* Find consecutive draws where mode and base_vertex don't vary. */
+   /* Find consecutive draws where mode doesn't vary. */
    for (i = 0, first = 0; i <= num_draws; i++) {
       if (i == num_draws || mode[i] != mode[first]) {
          info->mode = mode[first];