mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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:
parent
574c4466f8
commit
c32c9014f5
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue