diff options
author | Brian Paul <[email protected]> | 2018-01-31 15:01:09 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-02-08 09:49:03 -0700 |
commit | 5cf342704d4a481845f2f7c921dda5df5cf5a256 (patch) | |
tree | 4b8e48138e57d0ac2b1a7ac8ea297d23750516a7 /src/mesa/state_tracker | |
parent | d9e6e0bbe35a1978bc5c36f44235146cd9c6be24 (diff) |
st/mesa: rename some vars related to indirect draw count
'indirect_params' was a bit vague. Use the names that we use in
gallium's pipe_draw_indirect_info.
Reviewed-by: Mathias Fröhlich <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_draw.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index 2fe7070bcae..b95a2522b2e 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -235,8 +235,8 @@ st_indirect_draw_vbo(struct gl_context *ctx, GLsizeiptr indirect_offset, unsigned draw_count, unsigned stride, - struct gl_buffer_object *indirect_params, - GLsizeiptr indirect_params_offset, + struct gl_buffer_object *indirect_draw_count, + GLsizeiptr indirect_draw_count_offset, const struct _mesa_index_buffer *ib) { struct st_context *st = st_context(ctx); @@ -283,7 +283,7 @@ st_indirect_draw_vbo(struct gl_context *ctx, if (!st->has_multi_draw_indirect) { int i; - assert(!indirect_params); + assert(!indirect_draw_count); indirect.draw_count = 1; for (i = 0; i < draw_count; i++) { info.drawid = i; @@ -293,9 +293,10 @@ st_indirect_draw_vbo(struct gl_context *ctx, } else { indirect.draw_count = draw_count; indirect.stride = stride; - if (indirect_params) { - indirect.indirect_draw_count = st_buffer_object(indirect_params)->buffer; - indirect.indirect_draw_count_offset = indirect_params_offset; + if (indirect_draw_count) { + indirect.indirect_draw_count = + st_buffer_object(indirect_draw_count)->buffer; + indirect.indirect_draw_count_offset = indirect_draw_count_offset; } cso_draw_vbo(st->cso_context, &info); } |