diff options
author | Paul Berry <[email protected]> | 2013-04-10 14:25:13 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-08-01 20:23:08 -0700 |
commit | f2ecc8482673c8aec9c3f009fce6c072d8c6f20a (patch) | |
tree | 9e06a10082c34475e1d5400d9de2e41570acd420 /src/glsl/link_functions.cpp | |
parent | 3b0cf7027daebb8bea6af35d8d2ad4ed19fa7b5a (diff) |
glsl: Modify varying packing to use a temporary exec_list.
This patch modifies lower_packed_varyings to store the packing code it
generates in a temporary exec_list, and then splice that list into the
shader's main() function when it's done. This paves the way for
supporting geometry shader outputs, where we'll have to splice a clone
of the packing code before every call to EmitVertex().
As a side benefit, varying packing code is now emitted in the same
order for inputs and outputs; this should make debug output a little
easier to read.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/link_functions.cpp')
0 files changed, 0 insertions, 0 deletions