Module: Mesa Branch: master Commit: f9c4953f99e75e45bc4f0f07315ee643b62b0c23 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f9c4953f99e75e45bc4f0f07315ee643b62b0c23
Author: Marek Olšák <[email protected]> Date: Tue Jul 28 11:39:35 2015 +0200 radeonsi: early exit in si_clear if there's nothing to do Reviewed-by: Michel Dänzer <[email protected]> --- src/gallium/drivers/radeonsi/si_blit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c index c3591a7..c892623 100644 --- a/src/gallium/drivers/radeonsi/si_blit.c +++ b/src/gallium/drivers/radeonsi/si_blit.c @@ -342,6 +342,8 @@ static void si_clear(struct pipe_context *ctx, unsigned buffers, if (buffers & PIPE_CLEAR_COLOR) { evergreen_do_fast_color_clear(&sctx->b, fb, &sctx->framebuffer.atom, &buffers, color); + if (!buffers) + return; /* all buffers have been fast cleared */ } if (buffers & PIPE_CLEAR_COLOR) { _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
