radv: Use correct signedness in misalign test.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 8 Aug 2021 15:12:58 +0000 (17:12 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 9 Aug 2021 14:03:37 +0000 (14:03 +0000)
commitb2b1e8e40a69bea59df3414d9f100b6bf809cd8e
treec409fc31d9973e56141a336cbd62a97cc8d4a5bd
parent06fc6e46f039712aa03e1b0c6d14a5159b9c50b0
radv: Use correct signedness in misalign test.

Lots of the MAX2 args end up subtracting two unsigned numbers, which
blows up when the result is negative.

Fixes: 4c99d6ff54b ("radv: flush L2 for images affected by the pipe misaligned issue on GFX10+")
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12272>
src/amd/vulkan/radv_image.c