Mesa (master): compiler: make variable::data::binding unsigned

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Nov 4 21:51:06 UTC 2019


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

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Fri Oct 25 16:36:15 2019 -0400

compiler: make variable::data::binding unsigned

Nothing seems to set a negative value.

Reviewed-by: Connor Abbott <cwabbott0 at gmail.com>

---

 src/compiler/glsl/ir.h | 2 +-
 src/compiler/nir/nir.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/compiler/glsl/ir.h b/src/compiler/glsl/ir.h
index ecf4b691472..93647f963f4 100644
--- a/src/compiler/glsl/ir.h
+++ b/src/compiler/glsl/ir.h
@@ -905,7 +905,7 @@ public:
        *
        * For array types, this represents the binding point for the first element.
        */
-      int16_t binding;
+      uint16_t binding;
 
       /**
        * Storage location of the base of this variable
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index f5f9826a27c..00e5028d27b 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -470,7 +470,7 @@ typedef struct nir_variable {
        *
        * For array types, this represents the binding point for the first element.
        */
-      int binding;
+      unsigned binding;
 
       /**
        * Location an atomic counter or transform feedback is stored at.




More information about the mesa-commit mailing list