compiler: make variable::data::binding unsigned
authorMarek Olšák <marek.olsak@amd.com>
Fri, 25 Oct 2019 20:36:15 +0000 (16:36 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 4 Nov 2019 21:49:46 +0000 (16:49 -0500)
Nothing seems to set a negative value.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/glsl/ir.h
src/compiler/nir/nir.h

index ecf4b691472b06fb3364e355ebf296906d8a88c4..93647f963f405121182aad17d13e80cb4cd265ad 100644 (file)
@@ -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
index f5f9826a27c290feddc5538b7280173d9474c036..00e5028d27b97ea0e1c7330f472efd05ae0e8585 100644 (file)
@@ -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.