No need to check all color buffers.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
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)
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)