From 9cc91ba6d5fafa5435ff4b6081f731acc99af47f Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 6 Apr 2017 00:07:32 +0200 Subject: radeonsi: add a 'break' in si_check_render_feedback_*() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No need to check all color buffers. Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_blit.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c index 9b3096d734f..4256c51efbc 100644 --- a/src/gallium/drivers/radeonsi/si_blit.c +++ b/src/gallium/drivers/radeonsi/si_blit.c @@ -555,8 +555,10 @@ static void si_check_render_feedback_textures(struct si_context *sctx, surf->base.u.tex.level >= view->u.tex.first_level && surf->base.u.tex.level <= view->u.tex.last_level && surf->base.u.tex.first_layer <= view->u.tex.last_layer && - surf->base.u.tex.last_layer >= view->u.tex.first_layer) + surf->base.u.tex.last_layer >= view->u.tex.first_layer) { render_feedback = true; + break; + } } if (render_feedback) @@ -595,8 +597,10 @@ static void si_check_render_feedback_images(struct si_context *sctx, if (tex == (struct r600_texture*)surf->base.texture && surf->base.u.tex.level == view->u.tex.level && surf->base.u.tex.first_layer <= view->u.tex.last_layer && - surf->base.u.tex.last_layer >= view->u.tex.first_layer) + surf->base.u.tex.last_layer >= view->u.tex.first_layer) { render_feedback = true; + break; + } } if (render_feedback) -- cgit v1.2.3