Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20137>
output_usage_mask[idx + i] |= ((write_mask >> (i * 4)) & 0xf) << component;
}
}
+
+ if (nir->info.stage == MESA_SHADER_GEOMETRY) {
+ uint8_t gs_streams = nir_intrinsic_io_semantics(instr).gs_streams;
+ info->gs.output_streams[idx] |= gs_streams << (component * 2);
+ }
}
static void
nir_foreach_shader_out_variable(var, nir) {
unsigned num_components = glsl_get_component_slots(var->type);
unsigned stream = var->data.stream;
- unsigned idx = var->data.location;
assert(stream < 4);
info->gs.num_stream_output_components[stream] += num_components;
- info->gs.output_streams[idx] = stream | (stream << 2) | (stream << 4) | (stream << 6);
}
}