summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorGert Wollny <[email protected]>2018-06-05 13:58:58 +0200
committerGert Wollny <[email protected]>2018-06-20 11:08:28 +0200
commit3792d8575518c92233fdb924f4eefba0a95b7a33 (patch)
tree01a6da386e79c438b7f91628707996d3db242b09 /src/gallium/auxiliary
parent7a3daaab413273f1a2bd5e74d6ff937ad0155ef0 (diff)
gallium/aux/tgsi_lowering.c: Fix -Wsign-compare warnings
tgsi/tgsi_lowering.c: In function 'emit_twoside': tgsi/tgsi_lowering.c:1179:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < ctx->two_side_colors; i++) { ^ tgsi/tgsi_lowering.c:1208:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < ctx->two_side_colors; i++) { ^ tgsi/tgsi_lowering.c:1216:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < ctx->two_side_colors; i++) { ^ tgsi/tgsi_lowering.c: In function 'emit_decls': tgsi/tgsi_lowering.c:1280:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < ctx->numtmp; i++) { ^ tgsi/tgsi_lowering.c: In function 'rename_color_inputs': tgsi/tgsi_lowering.c:1311:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (src->Index == ctx->two_side_idx[j]) { ^~ Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_lowering.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_lowering.c b/src/gallium/auxiliary/tgsi/tgsi_lowering.c
index 47aa3df61d5..664cb3b2ab3 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_lowering.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_lowering.c
@@ -1170,7 +1170,7 @@ emit_twoside(struct tgsi_transform_context *tctx)
struct tgsi_full_declaration decl;
struct tgsi_full_instruction new_inst;
unsigned inbase, tmpbase;
- int i;
+ unsigned i;
inbase = info->file_max[TGSI_FILE_INPUT] + 1;
tmpbase = info->file_max[TGSI_FILE_TEMPORARY] + 1;
@@ -1254,7 +1254,7 @@ emit_decls(struct tgsi_transform_context *tctx)
struct tgsi_full_declaration decl;
struct tgsi_full_immediate immed;
unsigned tmpbase;
- int i;
+ unsigned i;
tmpbase = info->file_max[TGSI_FILE_TEMPORARY] + 1;
@@ -1308,7 +1308,7 @@ rename_color_inputs(struct tgsi_lowering_context *ctx,
struct tgsi_src_register *src = &inst->Src[i].Register;
if (src->File == TGSI_FILE_INPUT) {
for (j = 0; j < ctx->two_side_colors; j++) {
- if (src->Index == ctx->two_side_idx[j]) {
+ if (src->Index == (int)ctx->two_side_idx[j]) {
src->File = TGSI_FILE_TEMPORARY;
src->Index = ctx->color_base + j;
break;