diff options
author | Nicolai Hähnle <[email protected]> | 2017-09-26 17:24:19 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-10-02 15:07:44 +0200 |
commit | 449ac258d1b1d14fbb003b0140d4e4692777b05e (patch) | |
tree | b449c26a8251bdef4ff85ce2bc62da6ce7960450 /src | |
parent | c955f4594654eab28e342f72b42d8746c83843d5 (diff) |
radeonsi: remove si_apply_scissor_bug_workaround
It only affects pre-SI chips.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeon/r600_pipe_common.h | 2 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_viewport.c | 17 |
2 files changed, 0 insertions, 19 deletions
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.h b/src/gallium/drivers/radeon/r600_pipe_common.h index f6ded92dc5b..4508a768768 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.h +++ b/src/gallium/drivers/radeon/r600_pipe_common.h @@ -880,8 +880,6 @@ void si_init_screen_texture_functions(struct r600_common_screen *rscreen); void si_init_context_texture_functions(struct r600_common_context *rctx); /* r600_viewport.c */ -void si_apply_scissor_bug_workaround(struct r600_common_context *rctx, - struct pipe_scissor_state *scissor); void si_viewport_set_rast_deps(struct r600_common_context *rctx, bool scissor_enable, bool clip_halfz); void si_update_vs_writes_viewport_index(struct r600_common_context *rctx, diff --git a/src/gallium/drivers/radeonsi/si_state_viewport.c b/src/gallium/drivers/radeonsi/si_state_viewport.c index 00fa4c0d026..54f31c4694d 100644 --- a/src/gallium/drivers/radeonsi/si_state_viewport.c +++ b/src/gallium/drivers/radeonsi/si_state_viewport.c @@ -115,21 +115,6 @@ static void r600_scissor_make_union(struct r600_signed_scissor *out, out->maxy = MAX2(out->maxy, in->maxy); } -void si_apply_scissor_bug_workaround(struct r600_common_context *rctx, - struct pipe_scissor_state *scissor) -{ - if (rctx->chip_class == EVERGREEN || rctx->chip_class == CAYMAN) { - if (scissor->maxx == 0) - scissor->minx = 1; - if (scissor->maxy == 0) - scissor->miny = 1; - - if (rctx->chip_class == CAYMAN && - scissor->maxx == 1 && scissor->maxy == 1) - scissor->maxx = 2; - } -} - static void r600_emit_one_scissor(struct r600_common_context *rctx, struct radeon_winsys_cs *cs, struct r600_signed_scissor *vp_scissor, @@ -147,8 +132,6 @@ static void r600_emit_one_scissor(struct r600_common_context *rctx, if (scissor) r600_clip_scissor(&final, scissor); - si_apply_scissor_bug_workaround(rctx, &final); - radeon_emit(cs, S_028250_TL_X(final.minx) | S_028250_TL_Y(final.miny) | S_028250_WINDOW_OFFSET_DISABLE(1)); |