pvr: Fix signed comparison
authorVinson Lee <vlee@freedesktop.org>
Sat, 3 Jun 2023 23:16:41 +0000 (16:16 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 5 Jun 2023 09:21:34 +0000 (09:21 +0000)
commit8bc7d71c2323645cff01b5d9245db6a65c0c7f0b
treed2d688be671bd591a345daa87aa0f06924511505
parentd75973a1422d86799312d7aa60d0dce846fb3dba
pvr: Fix signed comparison

Fix defect reported by Coverity Scan.

Unsigned compared against 0 (NO_EFFECT)
unsigned_compare: This less-than-zero comparison of an unsigned value is never true. val < 0U.
unsigned_conversion: val is converted to an unsigned type because it's compared to an unsigned constant.

Fixes: 480bdff4b52 ("pvr: Add support to process transfer and blit cmds")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23416>
src/imagination/vulkan/pvr_job_transfer.c