tgsi: add Stream{X,Y,Z,W} fields to tgsi_declaration_semantic
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 7 Dec 2016 10:27:25 +0000 (11:27 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 12 Dec 2016 08:03:51 +0000 (09:03 +0100)
commit04811354c87e40b0bd5e970fa413ea056ed94173
treee0431dae2ec440456e85cbc2d1d3ce6d3fc3ce1d
parent173d80b40159669b303ea19e8b6abd24d7fce39b
tgsi: add Stream{X,Y,Z,W} fields to tgsi_declaration_semantic

This is for geometry shader outputs. Without it, drivers have no way of
knowing which stream each output is intended for, and have to
conservatively write all outputs to all streams.

Separate stream numbers for each component are required due to output
packing.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/tgsi/tgsi_build.c
src/gallium/auxiliary/tgsi/tgsi_dump.c
src/gallium/auxiliary/tgsi/tgsi_text.c
src/gallium/include/pipe/p_shader_tokens.h