broadcom/compiler: fix compile warning -Wabsolute-value

fixes a compile warning with clang

Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14302>
This commit is contained in:
Thomas H.P. Andersen 2021-12-25 18:25:34 +01:00 committed by Marge Bot
parent 574c4466f8
commit c32c9014f5

View file

@ -1201,7 +1201,7 @@ v3d_nir_sort_constant_ubo_load(nir_block *block, nir_intrinsic_instr *ref)
* reference offset, since otherwise we would not be able to
* skip the unifa write for them. See ntq_emit_load_ubo_unifa.
*/
if (abs(ref_offset - offset) > MAX_UNIFA_SKIP_DISTANCE)
if (abs((int)(ref_offset - offset)) > MAX_UNIFA_SKIP_DISTANCE)
continue;
/* We will move this load if its offset is smaller than ref's