diff options
author | Brian Paul <[email protected]> | 2016-04-28 11:40:28 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-05-03 15:40:48 -0600 |
commit | b91975714d9f15ccd52dbbf4ed603b98f5b1f437 (patch) | |
tree | ef5827fd32c90a1d9d490318669e0945893e3251 /src/gallium | |
parent | e193c5dd59555cea56f5d72b4800a54cc77bc76d (diff) |
trace: s/Elements/ARRAY_SIZE/
Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/trace/tr_dump_state.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/trace/tr_dump_state.c b/src/gallium/drivers/trace/tr_dump_state.c index 591ca79a2fa..bc129e0de85 100644 --- a/src/gallium/drivers/trace/tr_dump_state.c +++ b/src/gallium/drivers/trace/tr_dump_state.c @@ -178,7 +178,7 @@ void trace_dump_poly_stipple(const struct pipe_poly_stipple *state) trace_dump_member_begin("stipple"); trace_dump_array(uint, state->stipple, - Elements(state->stipple)); + ARRAY_SIZE(state->stipple)); trace_dump_member_end(); trace_dump_struct_end(); @@ -361,7 +361,7 @@ void trace_dump_depth_stencil_alpha_state(const struct pipe_depth_stencil_alpha_ trace_dump_member_begin("stencil"); trace_dump_array_begin(); - for(i = 0; i < Elements(state->stencil); ++i) { + for(i = 0; i < ARRAY_SIZE(state->stencil); ++i) { trace_dump_elem_begin(); trace_dump_struct_begin("pipe_stencil_state"); trace_dump_member(bool, &state->stencil[i], enabled); @@ -955,11 +955,11 @@ void trace_dump_grid_info(const struct pipe_grid_info *state) trace_dump_member(ptr, state, input); trace_dump_member_begin("block"); - trace_dump_array(uint, state->block, Elements(state->block)); + trace_dump_array(uint, state->block, ARRAY_SIZE(state->block)); trace_dump_member_end(); trace_dump_member_begin("grid"); - trace_dump_array(uint, state->grid, Elements(state->grid)); + trace_dump_array(uint, state->grid, ARRAY_SIZE(state->grid)); trace_dump_member_end(); trace_dump_member(ptr, state, indirect); |