From: Samuel Pitoiset Date: Wed, 5 Apr 2017 22:07:32 +0000 (+0200) Subject: radeonsi: add a 'break' in si_check_render_feedback_*() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9cc91ba6d5fafa5435ff4b6081f731acc99af47f;p=mesa.git radeonsi: add a 'break' in si_check_render_feedback_*() No need to check all color buffers. Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- 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)