diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-05-02 04:21:21 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-05-02 12:56:34 +0200 |
commit | 35232172db40fc756f3a0d1c17ed19e696a8878d (patch) | |
tree | 55db6b605c5fcc35c54175bd5786fbc958609762 /src | |
parent | 45d79af644349882b4990b775737405be7cd1aa2 (diff) |
r300g: inline update_derived_shader_state
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r300/r300_state_derived.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/gallium/drivers/r300/r300_state_derived.c b/src/gallium/drivers/r300/r300_state_derived.c index ccc4b583a6..43e3d1d701 100644 --- a/src/gallium/drivers/r300/r300_state_derived.c +++ b/src/gallium/drivers/r300/r300_state_derived.c @@ -272,10 +272,11 @@ static void r500_rs_tex_write(struct r300_rs_block* rs, int id, int fp_offset) * This is the part of the chipset that actually does the rasterization * of vertices into fragments. This is also the part of the chipset that * locks up if any part of it is even slightly wrong. */ -static void r300_update_rs_block(struct r300_context* r300, - struct r300_shader_semantics* vs_outputs, - struct r300_shader_semantics* fs_inputs) +static void r300_update_rs_block(struct r300_context *r300) { + struct r300_vertex_shader *vs = r300->vs_state.state; + struct r300_shader_semantics *vs_outputs = &vs->outputs; + struct r300_shader_semantics *fs_inputs = &r300_fs(r300)->shader->inputs; struct r300_rs_block rs = { { 0 } }; int i, col_count = 0, tex_count = 0, fp_offset = 0, count; void (*rX00_rs_col)(struct r300_rs_block*, int, int, enum r300_rs_swizzle); @@ -426,14 +427,6 @@ static void r300_update_rs_block(struct r300_context* r300, } } -/* Update the shader-dependant states. */ -static void r300_update_derived_shader_state(struct r300_context* r300) -{ - struct r300_vertex_shader* vs = r300->vs_state.state; - - r300_update_rs_block(r300, &vs->outputs, &r300_fs(r300)->shader->inputs); -} - static void r300_merge_textures_and_samplers(struct r300_context* r300) { struct r300_textures_state *state = @@ -529,7 +522,7 @@ void r300_update_derived_state(struct r300_context* r300) } if (r300->rs_block_state.dirty) { - r300_update_derived_shader_state(r300); + r300_update_rs_block(r300); } if (r300->draw) { |