Mesa (master): r600/sfn: Fix comparison with different signedness
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Sep 16 08:36:17 UTC 2020
Module: Mesa
Branch: master
Commit: 39e7bc23dd0230ae721bdefc3918cd2fe37f1d09
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=39e7bc23dd0230ae721bdefc3918cd2fe37f1d09
Author: Gert Wollny <gert.wollny at collabora.com>
Date: Wed Sep 16 10:29:13 2020 +0200
r600/sfn: Fix comparison with different signedness
Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6706>
---
src/gallium/drivers/r600/sfn/sfn_shader_vertex.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/r600/sfn/sfn_shader_vertex.cpp b/src/gallium/drivers/r600/sfn/sfn_shader_vertex.cpp
index f4a8b267b0a..47dc8fab612 100644
--- a/src/gallium/drivers/r600/sfn/sfn_shader_vertex.cpp
+++ b/src/gallium/drivers/r600/sfn/sfn_shader_vertex.cpp
@@ -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;
}
More information about the mesa-commit
mailing list