mesa: remove unused _mesa_prim::is_indirect
authorMarek Olšák <marek.olsak@amd.com>
Tue, 4 Feb 2020 01:40:09 +0000 (20:40 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 11 Feb 2020 00:34:57 +0000 (00:34 +0000)
Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3766>

src/mesa/main/draw.c
src/mesa/main/draw.h
src/mesa/state_tracker/st_cb_rasterpos.c
src/mesa/vbo/vbo_exec_api.c
src/mesa/vbo/vbo_primitive_restart.c
src/mesa/vbo/vbo_save_api.c

index bfa318553f680788075d5bd7d3e81e46f33bc1df..09170525ab7d3dcbb2d4dd510572467e633c46e6 100644 (file)
@@ -367,7 +367,6 @@ _mesa_draw_arrays(struct gl_context *ctx, GLenum mode, GLint start,
    prim.num_instances = numInstances;
    prim.base_instance = baseInstance;
    prim.draw_id = drawID;
-   prim.is_indirect = 0;
    prim.start = start;
    prim.count = count;
 
@@ -776,7 +775,6 @@ _mesa_validated_drawrangeelements(struct gl_context *ctx, GLenum mode,
    prim.start = 0;
    prim.count = count;
    prim.indexed = 1;
-   prim.is_indirect = 0;
    prim.basevertex = basevertex;
    prim.num_instances = numInstances;
    prim.base_instance = baseInstance;
@@ -1239,7 +1237,6 @@ _mesa_validated_multidrawelements(struct gl_context *ctx, GLenum mode,
          prim[i].num_instances = 1;
          prim[i].base_instance = 0;
          prim[i].draw_id = i;
-         prim[i].is_indirect = 0;
          if (basevertex != NULL)
             prim[i].basevertex = basevertex[i];
          else
@@ -1269,7 +1266,6 @@ _mesa_validated_multidrawelements(struct gl_context *ctx, GLenum mode,
          prim[0].num_instances = 1;
          prim[0].base_instance = 0;
          prim[0].draw_id = i;
-         prim[0].is_indirect = 0;
          if (basevertex != NULL)
             prim[0].basevertex = basevertex[i];
          else
@@ -1387,7 +1383,6 @@ _mesa_draw_transform_feedback(struct gl_context *ctx, GLenum mode,
    prim.mode = mode;
    prim.num_instances = numInstances;
    prim.base_instance = 0;
-   prim.is_indirect = 0;
 
    /* Maybe we should do some primitive splitting for primitive restart
     * (like in DrawArrays), but we have no way to know how many vertices
@@ -2093,7 +2088,6 @@ draw_indirect(struct gl_context *ctx, GLuint mode,
       prim[i].mode = mode;
       prim[i].indexed = !!ib;
       prim[i].indirect_offset = indirect_offset;
-      prim[i].is_indirect = 1;
       prim[i].draw_id = i;
    }
 
index b8e61132137be541669be92684f5262b3a3d3daa..86b0527ffc4f52720bd090ecb9fae36792345b01 100644 (file)
@@ -46,8 +46,7 @@ struct _mesa_prim
    GLuint indexed:1;
    GLuint begin:1;
    GLuint end:1;
-   GLuint is_indirect:1;
-   GLuint pad:20;
+   GLuint pad:21;
 
    GLuint start;
    GLuint count;
index 108b11ede4111796a759ef6168dfe9472d007042..a69b0a651c38874672c377017e0d42dbf9ff8f79 100644 (file)
@@ -213,7 +213,6 @@ new_draw_rastpos_stage(struct gl_context *ctx, struct draw_context *draw)
    rs->prim.pad = 0;
    rs->prim.num_instances = 1;
    rs->prim.base_instance = 0;
-   rs->prim.is_indirect = 0;
 
    return rs;
 }
index 758953162931cabc11278ff17eab4f97c778fd06..f106fc2d970fa093c50792fb8a5c3f7ec2aacb45 100644 (file)
@@ -823,7 +823,6 @@ vbo_exec_Begin(GLenum mode)
    exec->vtx.prim[i].count = 0;
    exec->vtx.prim[i].num_instances = 1;
    exec->vtx.prim[i].base_instance = 0;
-   exec->vtx.prim[i].is_indirect = 0;
 
    ctx->Driver.CurrentExecPrimitive = mode;
 
index 8d279fd637a638d9e437bbc7033cf209301e555c..1faf3a68229defd09c37c5e8349021598052f932 100644 (file)
@@ -198,7 +198,6 @@ vbo_sw_primitive_restart(struct gl_context *ctx,
                         ADD_POINTERS(indirect->Mappings[MAP_INTERNAL].Pointer,
                                      new_prim.indirect_offset);
 
-      new_prim.is_indirect = 0;
       new_prim.count = indirect_params[0];
       new_prim.num_instances = indirect_params[1];
       new_prim.start = indirect_params[2];
index aff90bf8023628cc9cc629e19fe6e30f0c563899..57984684899a7f3ec1c98feef88e411b0f7aac76 100644 (file)
@@ -742,7 +742,6 @@ wrap_buffers(struct gl_context *ctx)
    save->prims[0].count = 0;
    save->prims[0].num_instances = 1;
    save->prims[0].base_instance = 0;
-   save->prims[0].is_indirect = 0;
    save->prim_count = 1;
 }
 
@@ -1223,7 +1222,6 @@ vbo_save_NotifyBegin(struct gl_context *ctx, GLenum mode,
    save->prims[i].count = 0;
    save->prims[i].num_instances = 1;
    save->prims[i].base_instance = 0;
-   save->prims[i].is_indirect = 0;
 
    save->no_current_update = no_current_update;