From 0b4c5dbb8c5ee69a341c1f66f70c54e3fe2db970 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sat, 14 Jul 2012 18:14:16 +0200 Subject: r600g: fix grammar constant_buffer -> constant_buffers --- src/gallium/drivers/r600/evergreen_state.c | 26 +++++++++++++------------- src/gallium/drivers/r600/r600_state.c | 8 ++++---- 2 files changed, 17 insertions(+), 17 deletions(-) (limited to 'src/gallium/drivers/r600') diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c index 404df026f10..8630eafac2e 100644 --- a/src/gallium/drivers/r600/evergreen_state.c +++ b/src/gallium/drivers/r600/evergreen_state.c @@ -1807,11 +1807,11 @@ static void evergreen_emit_vertex_buffers(struct r600_context *rctx, struct r600 } } -static void evergreen_emit_constant_buffer(struct r600_context *rctx, - struct r600_constbuf_state *state, - unsigned buffer_id_base, - unsigned reg_alu_constbuf_size, - unsigned reg_alu_const_cache) +static void evergreen_emit_constant_buffers(struct r600_context *rctx, + struct r600_constbuf_state *state, + unsigned buffer_id_base, + unsigned reg_alu_constbuf_size, + unsigned reg_alu_const_cache) { struct radeon_winsys_cs *cs = rctx->cs; uint32_t dirty_mask = state->dirty_mask; @@ -1862,16 +1862,16 @@ static void evergreen_emit_constant_buffer(struct r600_context *rctx, state->dirty_mask = 0; } -static void evergreen_emit_vs_constant_buffer(struct r600_context *rctx, struct r600_atom *atom) +static void evergreen_emit_vs_constant_buffers(struct r600_context *rctx, struct r600_atom *atom) { - evergreen_emit_constant_buffer(rctx, &rctx->vs_constbuf_state, 176, - R_028180_ALU_CONST_BUFFER_SIZE_VS_0, - R_028980_ALU_CONST_CACHE_VS_0); + evergreen_emit_constant_buffers(rctx, &rctx->vs_constbuf_state, 176, + R_028180_ALU_CONST_BUFFER_SIZE_VS_0, + R_028980_ALU_CONST_CACHE_VS_0); } -static void evergreen_emit_ps_constant_buffer(struct r600_context *rctx, struct r600_atom *atom) +static void evergreen_emit_ps_constant_buffers(struct r600_context *rctx, struct r600_atom *atom) { - evergreen_emit_constant_buffer(rctx, &rctx->ps_constbuf_state, 0, + evergreen_emit_constant_buffers(rctx, &rctx->ps_constbuf_state, 0, R_028140_ALU_CONST_BUFFER_SIZE_PS_0, R_028940_ALU_CONST_CACHE_PS_0); } @@ -1883,8 +1883,8 @@ void evergreen_init_state_functions(struct r600_context *rctx) r600_init_atom(&rctx->db_misc_state.atom, evergreen_emit_db_misc_state, 6, 0); r600_atom_dirty(rctx, &rctx->db_misc_state.atom); r600_init_atom(&rctx->vertex_buffer_state, evergreen_emit_vertex_buffers, 0, 0); - r600_init_atom(&rctx->vs_constbuf_state.atom, evergreen_emit_vs_constant_buffer, 0, 0); - r600_init_atom(&rctx->ps_constbuf_state.atom, evergreen_emit_ps_constant_buffer, 0, 0); + r600_init_atom(&rctx->vs_constbuf_state.atom, evergreen_emit_vs_constant_buffers, 0, 0); + r600_init_atom(&rctx->ps_constbuf_state.atom, evergreen_emit_ps_constant_buffers, 0, 0); rctx->context.create_blend_state = evergreen_create_blend_state; rctx->context.create_depth_stencil_alpha_state = evergreen_create_dsa_state; diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c index 6c0c0fee81a..e7fd133ce2c 100644 --- a/src/gallium/drivers/r600/r600_state.c +++ b/src/gallium/drivers/r600/r600_state.c @@ -1827,14 +1827,14 @@ static void r600_emit_constant_buffers(struct r600_context *rctx, state->dirty_mask = 0; } -static void r600_emit_vs_constant_buffer(struct r600_context *rctx, struct r600_atom *atom) +static void r600_emit_vs_constant_buffers(struct r600_context *rctx, struct r600_atom *atom) { r600_emit_constant_buffers(rctx, &rctx->vs_constbuf_state, 160, R_028180_ALU_CONST_BUFFER_SIZE_VS_0, R_028980_ALU_CONST_CACHE_VS_0); } -static void r600_emit_ps_constant_buffer(struct r600_context *rctx, struct r600_atom *atom) +static void r600_emit_ps_constant_buffers(struct r600_context *rctx, struct r600_atom *atom) { r600_emit_constant_buffers(rctx, &rctx->ps_constbuf_state, 0, R_028140_ALU_CONST_BUFFER_SIZE_PS_0, @@ -1848,8 +1848,8 @@ void r600_init_state_functions(struct r600_context *rctx) r600_init_atom(&rctx->db_misc_state.atom, r600_emit_db_misc_state, 4, 0); r600_atom_dirty(rctx, &rctx->db_misc_state.atom); r600_init_atom(&rctx->vertex_buffer_state, r600_emit_vertex_buffers, 0, 0); - r600_init_atom(&rctx->vs_constbuf_state.atom, r600_emit_vs_constant_buffer, 0, 0); - r600_init_atom(&rctx->ps_constbuf_state.atom, r600_emit_ps_constant_buffer, 0, 0); + r600_init_atom(&rctx->vs_constbuf_state.atom, r600_emit_vs_constant_buffers, 0, 0); + r600_init_atom(&rctx->ps_constbuf_state.atom, r600_emit_ps_constant_buffers, 0, 0); rctx->context.create_blend_state = r600_create_blend_state; rctx->context.create_depth_stencil_alpha_state = r600_create_dsa_state; -- cgit v1.2.3