Mesa (master): nv50/ir/nir: comparison of integer expressions of different signedness warning

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Sep 23 11:28:21 UTC 2019


Module: Mesa
Branch: master
Commit: 70e39294d7084a3803c00950de483497cc39fe6b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=70e39294d7084a3803c00950de483497cc39fe6b

Author: Karol Herbst <kherbst at redhat.com>
Date:   Fri Sep 20 19:47:14 2019 +0200

nv50/ir/nir: comparison of integer expressions of different signedness warning

Signed-off-by: Karol Herbst <kherbst at redhat.com>
Reviewed-by: Rhys Kidd <rhyskidd at gmail.com>

---

 src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp
index 4e86ab8f8cc..95b60d2c7d0 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp
@@ -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];
             }




More information about the mesa-commit mailing list