mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
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:
parent
741f6b9e5a
commit
73f7020ade
1 changed files with 1 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue