diff options
author | Paul Berry <[email protected]> | 2013-04-10 16:32:40 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-08-01 20:23:12 -0700 |
commit | 72219acf6bd415063f93ce8b9be954a225be4b49 (patch) | |
tree | e69130c17ba328a815ec918853bbb6af2857d03f /src/glsl/ir_clone.cpp | |
parent | f2ecc8482673c8aec9c3f009fce6c072d8c6f20a (diff) |
glsl: Properly pack GS output varyings
In geometry shaders, outputs are consumed at the time of a call to
EmitVertex() (as opposed to all other shader types, where outputs are
consumed when the shader exits). Therefore, when packing geometry
shader output varyings using lower_packed_varyings, we need to do the
packing at the time of the EmitVertex() call.
This patch accomplishes that by adding a new visitor class,
lower_packed_varyings_gs_splicer, which is responsible for splicing
the varying packing code into place wherever EmitVertex() is found.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ir_clone.cpp')
0 files changed, 0 insertions, 0 deletions