diff options
author | Marek Olšák <[email protected]> | 2013-12-04 12:28:29 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-12-12 18:48:04 +0100 |
commit | e9fc5528379189b5775b78a3fabe78168505eead (patch) | |
tree | c13b334dd7976a5a3d0f9794e42ef20015f4394c /src/gallium/drivers/radeonsi/si_state_draw.c | |
parent | 8ee7370c9bed0be40c5d134f0b92eb3782c6b7e9 (diff) |
radeonsi: remove unused variable in si_pipe_shader_ps
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state_draw.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_draw.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index 0a08be15b00..952fab9d457 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.c +++ b/src/gallium/drivers/radeonsi/si_state_draw.c @@ -126,7 +126,7 @@ static void si_pipe_shader_ps(struct pipe_context *ctx, struct si_pipe_shader *s { struct r600_context *rctx = (struct r600_context *)ctx; struct si_pm4_state *pm4; - unsigned i, exports_ps, num_cout, spi_ps_in_control, db_shader_control; + unsigned i, exports_ps, spi_ps_in_control, db_shader_control; unsigned num_sgprs, num_user_sgprs; unsigned spi_baryc_cntl = 0, spi_ps_input_ena, spi_shader_z_format; uint64_t va; @@ -169,17 +169,10 @@ static void si_pipe_shader_ps(struct pipe_context *ctx, struct si_pipe_shader *s db_shader_control |= S_02880C_KILL_ENABLE(1); exports_ps = 0; - num_cout = 0; for (i = 0; i < shader->shader.noutput; i++) { if (shader->shader.output[i].name == TGSI_SEMANTIC_POSITION || shader->shader.output[i].name == TGSI_SEMANTIC_STENCIL) exports_ps |= 1; - else if (shader->shader.output[i].name == TGSI_SEMANTIC_COLOR) { - if (shader->shader.fs_write_all) - num_cout = shader->shader.nr_cbufs; - else - num_cout++; - } } if (!exports_ps) { /* always at least export 1 component per pixel */ |