diff options
author | George Kyriazis <[email protected]> | 2017-07-21 23:23:04 -0500 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-07-31 10:19:55 +0100 |
commit | 99b2613ce15c4391949ec221694b054c0910e68a (patch) | |
tree | f937effb3b80aeb53ddea483ec6936c40160c8db /bin | |
parent | f9c7549605e412e3b77c727a0d86442260f8f46a (diff) |
swr: fix transform feedback logic
The shader that is used to copy vertex data out of the vs/gs shaders to
the user-specified buffer (streamout or SO shader) was not using the
correct offsets.
Adjust the offsets that are used just for the SO shader:
- Make sure that position is handled in the same special way
as in the vs/gs shaders
- Use the correct offset to be passed in the core
- consolidate register slot mapping logic into one function, since it's
been calculated in 2 different places (one for calcuating the slot mask,
and one for the register offsets themselves
Also make room for all attibutes in the backend vertex area.
Fixes:
- all vtk GL2PS tests
- 18 piglit tests (16 ext_transform_feedback tests,
arb-quads-follow-provoking-vertex and primitive-type gl_points
v2:
- take care of more SGV slots in slot mapping logic
- trim feState.vsVertexSize
- fix GS interface and incorporate GS while calculating vsVertexSize
Note that vsVertexSize is used in the core as the one parameter that
controls vertex size between all stages, so it has to be adjusted appropriately
for the whole vs/gs/fs pipeline.
Also note that GS and SO is not fully implemented. This will be addressed
later.
fixes:
- fixes total of 20 piglit tests
CC: 17.2 <[email protected]>
Reviewed-by: Bruce Cherniak <[email protected]>
(cherry picked from commit 194ff5eed18f310bece0899595f678699badd32e)
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions