To only emit outputs for the given stream.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
struct {
uint8_t output_usage_mask[VARYING_SLOT_VAR31 + 1];
uint8_t num_stream_output_components[4];
+ uint8_t output_streams[VARYING_SLOT_VAR31 + 1];
uint8_t max_stream;
} gs;
struct {
{
unsigned num_components = glsl_get_component_slots(var->type);
unsigned stream = var->data.stream;
+ unsigned idx = var->data.location;
assert(stream < 4);
info->gs.max_stream = MAX2(info->gs.max_stream, stream);
info->gs.num_stream_output_components[stream] += num_components;
+ info->gs.output_streams[idx] = stream;
}
static void