summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-10-25 14:55:06 -0400
committerMarek Olšák <[email protected]>2019-11-04 18:17:34 -0500
commit08dc541b662c39ebae80935d4845b2f40e92d028 (patch)
treeec57733fbe0e498ec7c9b60022c5b079822f7f67 /src/gallium
parent9be4a422a055d1e829d56c3cc91e1fc2f6e8fb31 (diff)
nir: pack nir_variable::data::stream
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader_nir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c
index 4df625ed274..463ec0b5421 100644
--- a/src/gallium/drivers/radeonsi/si_shader_nir.c
+++ b/src/gallium/drivers/radeonsi/si_shader_nir.c
@@ -466,8 +466,8 @@ static void scan_output_slot(const nir_variable *var,
ubyte usagemask = ((1 << num_components) - 1) << component;
unsigned gs_out_streams;
- if (var->data.stream & (1u << 31)) {
- gs_out_streams = var->data.stream & ~(1u << 31);
+ if (var->data.stream & NIR_STREAM_PACKED) {
+ gs_out_streams = var->data.stream & ~NIR_STREAM_PACKED;
} else {
assert(var->data.stream < 4);
gs_out_streams = 0;