mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 05:00:09 +01:00
gallium/auxiliary: fix msvc build warning 4146 (unary minus operator applied to unsigned type, result still unsigned)
Reviewed-by: Sil Vilerino <sivileri@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34845>
This commit is contained in:
parent
fdc36dd54a
commit
493b3fa661
1 changed files with 1 additions and 1 deletions
|
|
@ -1897,7 +1897,7 @@ ntt_emit_load_ubo(struct ntt_compile *c, nir_intrinsic_instr *instr)
|
|||
* subtracting it off here.
|
||||
*/
|
||||
addr_temp = ntt_temp(c);
|
||||
ntt_UADD(c, addr_temp, ntt_get_src(c, instr->src[0]), ureg_imm1i(c->ureg, -c->first_ubo));
|
||||
ntt_UADD(c, addr_temp, ntt_get_src(c, instr->src[0]), ureg_imm1i(c->ureg, (0 - c->first_ubo)));
|
||||
src = ureg_src_dimension_indirect(src,
|
||||
ntt_reladdr(c, ureg_src(addr_temp), 1),
|
||||
c->first_ubo);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue