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: 480bdff4b5 ("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>
This commit is contained in:
@@ -3504,7 +3504,7 @@ pvr_int32_to_isp_xy_vtx(const struct pvr_device_info *dev_info,
|
||||
return vk_error(NULL, VK_ERROR_UNKNOWN);
|
||||
|
||||
pvr_csb_pack (word_out, IPF_ISP_VERTEX_XY, word) {
|
||||
word.sign = val < 0U;
|
||||
word.sign = val < 0;
|
||||
word.integer = val;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user