diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2016-12-07 11:27:25 +0100 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2016-12-12 09:03:51 +0100 |
commit | 04811354c87e40b0bd5e970fa413ea056ed94173 (patch) | |
tree | e0431dae2ec440456e85cbc2d1d3ce6d3fc3ce1d /src/gallium/include | |
parent | 173d80b40159669b303ea19e8b6abd24d7fce39b (diff) |
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>
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_shader_tokens.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h index 4a259db9f0d..ee59df0c393 100644 --- a/src/gallium/include/pipe/p_shader_tokens.h +++ b/src/gallium/include/pipe/p_shader_tokens.h @@ -207,7 +207,10 @@ struct tgsi_declaration_semantic { unsigned Name : 8; /**< one of TGSI_SEMANTIC_x */ unsigned Index : 16; /**< UINT */ - unsigned Padding : 8; + unsigned StreamX : 2; /**< vertex stream (for GS output) */ + unsigned StreamY : 2; + unsigned StreamZ : 2; + unsigned StreamW : 2; }; struct tgsi_declaration_image { |