summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-04-06 00:07:32 +0200
committerSamuel Pitoiset <[email protected]>2017-04-10 23:05:29 +0200
commit9cc91ba6d5fafa5435ff4b6081f731acc99af47f (patch)
tree9244c96882337c2dc191d57d7252b17c305e6b6e /src/gallium/drivers/radeonsi
parent51d6641700146fc22c66b96ad5841268b1c28468 (diff)
radeonsi: add a 'break' in si_check_render_feedback_*()
No need to check all color buffers. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r--src/gallium/drivers/radeonsi/si_blit.c8
1 files changed, 6 insertions, 2 deletions
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)