r600/sfn: Fix comparison with different signedness

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6706>
This commit is contained in:
Gert Wollny 2020-09-16 10:29:13 +02:00 committed by Marge Bot
parent 2d6316cca4
commit 39e7bc23dd

View file

@ -198,7 +198,7 @@ bool VertexShaderFromNir::do_emit_load_deref(const nir_variable *in_var, nir_int
if (i == 0)
set_input(in_var->data.driver_location, src);
load_preloaded_value(instr->dest, i, src, i == instr->num_components - 1);
load_preloaded_value(instr->dest, i, src, i == (unsigned)(instr->num_components - 1));
}
return true;
}