diff options
author | Paul Berry <[email protected]> | 2013-07-13 09:03:18 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-08-23 11:02:51 -0700 |
commit | 7f57101ad53112b16e4a400f312f68a85dfbd108 (patch) | |
tree | 8417d2e1466468db11b7b52140ad23dc143f3f5a /src/mesa/swrast/s_blend.h | |
parent | 626495d269e2c2df9dae5c46c086ffff93c77a19 (diff) |
i965/vec4: Virtualize setup_payload instead of setup_attributes.
When I initially generalized the vec4_visitor class in preparation for
geometry shaders, I assumed that the setup_attributes() function would
need to be different between vertex and geometry shaders, but its
caller, setup_payload(), could be shared. So I made
setup_attributes() a virtual function.
It turns out this isn't true; setup_payload() needs to be different
too, since the geometry shader payload sometimes includes an extra
register (primitive ID) that has to come before uniforms.
So setup_payload() needs to be the virtual function instead of
setup_attributes().
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/swrast/s_blend.h')
0 files changed, 0 insertions, 0 deletions