panvk/csf: Replace a cs_while() by a cs_if()

The cs_while() in cs_render_desc_ringbuf_move_ptr() was never meant to
be a while() loop, but we didn't have a cs_if() helper back then.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31205>
This commit is contained in:
Boris Brezillon 2024-09-15 15:54:25 +02:00 committed by Marge Bot
parent 741f6b9e5a
commit 73f7020ade

View file

@ -640,10 +640,9 @@ cs_render_desc_ringbuf_move_ptr(struct cs_builder *b, uint32_t size)
cs_add32(b, scratch_reg, pos, -RENDER_DESC_RINGBUF_SIZE);
/* Wrap-around. */
cs_while(b, MALI_CS_CONDITION_GEQUAL, scratch_reg) {
cs_if(b, MALI_CS_CONDITION_GEQUAL, scratch_reg) {
cs_add32(b, ptr_lo, ptr_lo, -RENDER_DESC_RINGBUF_SIZE);
cs_add32(b, pos, pos, -RENDER_DESC_RINGBUF_SIZE);
cs_break(b);
}
cs_store(