panfrost: Fix pan_blit_ctx_init() when start > end
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 1 Jun 2021 08:18:00 +0000 (10:18 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 26 Aug 2021 08:53:45 +0000 (08:53 +0000)
commite466e0ecd29014a1711b6d14ccf74198e4c99ace
treeda104e33570a626c4006b92437329d616032bf9d
parent1c953ba212109f10e9bf1d3b277b59b8291bca1f
panfrost: Fix pan_blit_ctx_init() when start > end

This can happen when one wants to obtain a mirrored view. We need
to make sure the min <= max before emitting the viewport.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12552>
src/panfrost/lib/pan_blitter.c