This is better.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3766>
prim.begin = 1;
prim.end = 1;
- prim.pad = 0;
prim.mode = mode;
prim.start = 0;
prim.count = count;
for (i = 0; i < primcount; i++) {
prim[i].begin = (i == 0);
prim[i].end = (i == primcount - 1);
- prim[i].pad = 0;
prim[i].mode = mode;
prim[i].start =
((uintptr_t) indices[i] - min_index_ptr) / index_type_size;
prim[0].begin = 1;
prim[0].end = 1;
- prim[0].pad = 0;
prim[0].mode = mode;
prim[0].start = 0;
prim[0].count = count[i];
struct _mesa_prim
{
- GLuint mode:8; /**< GL_POINTS, GL_LINES, GL_QUAD_STRIP, etc */
- GLuint indexed:1;
- GLuint begin:1;
- GLuint end:1;
- GLuint pad:21;
+ GLubyte mode; /**< GL_POINTS, GL_LINES, GL_QUAD_STRIP, etc */
+ bool indexed;
+ bool begin;
+ bool end;
GLuint start;
GLuint count;
rs->prim.end = 1;
rs->prim.start = 0;
rs->prim.count = 1;
- rs->prim.pad = 0;
rs->prim.num_instances = 1;
rs->prim.base_instance = 0;
exec->vtx.prim[i].begin = 1;
exec->vtx.prim[i].end = 0;
exec->vtx.prim[i].indexed = 0;
- exec->vtx.prim[i].pad = 0;
exec->vtx.prim[i].start = exec->vtx.vert_count;
exec->vtx.prim[i].count = 0;
exec->vtx.prim[i].num_instances = 1;
save->prims[0].mode = mode;
save->prims[0].begin = 0;
save->prims[0].end = 0;
- save->prims[0].pad = 0;
save->prims[0].start = 0;
save->prims[0].count = 0;
save->prims[0].num_instances = 1;
save->prims[i].mode = mode & VBO_SAVE_PRIM_MODE_MASK;
save->prims[i].begin = 1;
save->prims[i].end = 0;
- save->prims[i].pad = 0;
save->prims[i].start = save->vert_count;
save->prims[i].count = 0;
save->prims[i].num_instances = 1;