nv50/ir/nir: comparison of integer expressions of different signedness warning
authorKarol Herbst <kherbst@redhat.com>
Fri, 20 Sep 2019 17:47:14 +0000 (19:47 +0200)
committerKarol Herbst <kherbst@redhat.com>
Mon, 23 Sep 2019 11:27:32 +0000 (13:27 +0200)
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Rhys Kidd <rhyskidd@gmail.com>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp

index 4e86ab8f8ccc56e4d1feaca3a9504e72842b383e..95b60d2c7d0d95ccadbb47a1ff32ac2b8410bef3 100644 (file)
@@ -1957,7 +1957,7 @@ Converter::visit(nir_intrinsic_instr *insn)
          }
          case Program::TYPE_GEOMETRY:
          case Program::TYPE_VERTEX: {
-            if (info->io.genUserClip > 0 && idx == clipVertexOutput) {
+            if (info->io.genUserClip > 0 && idx == (uint32_t)clipVertexOutput) {
                mkMov(clipVtx[i], src);
                src = clipVtx[i];
             }