nir: put compact into bitfields in nir_variable_data
authorDave Airlie <airlied@redhat.com>
Wed, 6 Sep 2017 03:18:45 +0000 (13:18 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 7 Sep 2017 01:00:04 +0000 (11:00 +1000)
This being declared bool means it won't get merged with the previous
bitfields, this seems like an oversight rather than deliberate.

Noticed when running pahole.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/compiler/nir/nir.h

index 9313b7ac90723a736a694666ce7daf275183ffed..8330e6d7ce7e28ab7f0ca3e59278be98319e07ce 100644 (file)
@@ -220,7 +220,7 @@ typedef struct nir_variable {
        * be tightly packed.  In other words, consecutive array elements
        * should be stored one component apart, rather than one slot apart.
        */
-      bool compact:1;
+      unsigned compact:1;
 
       /**
        * Whether this is a fragment shader output implicitly initialized with