aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-10-25 12:01:27 -0400
committerMarek Olšák <[email protected]>2019-11-05 23:35:31 -0500
commitd5768fcd45a1b9e77d7b5e3385edebc2ac2736f0 (patch)
tree547fe49d62f4386215f9f24d19b0f65febcdfb9c /src/compiler/nir/nir.h
parent96e6ef80d932f12d3ed7ab5bc4aff6b370d6dc02 (diff)
nir/serialize: don't expand 16-bit variable state slots to 32 bits
the swizzle also needs only 16 bits Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r--src/compiler/nir/nir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 3aa72a6a5c6..0dc604cce41 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -94,7 +94,7 @@ struct nir_builder;
*/
typedef struct {
gl_state_index16 tokens[STATE_LENGTH];
- int swizzle;
+ uint16_t swizzle;
} nir_state_slot;
typedef enum {