In D3D we pack varyings by making a register map, and using the recommended GLSL ES algorithm to reserve register space. We use this map to assign row and column slots to each varying and then produce a semantic index value. The existing scheme had a number of bugs, and was failing several angle_end2end_tests. The new design cleans up the code somewhat and uses a different counting scheme for the semantic indexes: just sort the varyings in packing order and use a simple incrementing semantic index per varying. In SM4+, the HLSL compiler sorts and packs the varyings correctly itself, and in SM3, handle the cases we don't support by returning an error instead of a D3D compiler link error. Also refactor how we store varying information for TF Feedback/ StreamOut. Only store the necessary D3D information, instead of extra information like the name and type. This fixes several tests in GLSLTest/*. This also will allow us to fix interpolation qualifier packing and the structure packing in HLSL, which seems to work differently than the rest of the varying types. BUG=angleproject:1202 TEST=bots,dEQP-GLES3.functional.transform_feedback.* Change-Id: Ie5bfbb4f71d8bf97f39115fc46d2e61b131df639 Reviewed-on: https://chromium-review.googlesource.com/311241Reviewed-by:Geoff Lang <geofflang@chromium.org> Tested-by:
Jamie Madill <jmadill@chromium.org>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| linux | Loading commit data... | |
| osx | Loading commit data... | |
| posix | Loading commit data... | |
| windows | Loading commit data... | |
| x11 | Loading commit data... | |
| EGLWindow.cpp | Loading commit data... | |
| EGLWindow.h | Loading commit data... | |
| Event.h | Loading commit data... | |
| Matrix.cpp | Loading commit data... | |
| Matrix.h | Loading commit data... | |
| OSPixmap.h | Loading commit data... | |
| OSWindow.cpp | Loading commit data... | |
| OSWindow.h | Loading commit data... | |
| Timer.h | Loading commit data... | |
| Vector.cpp | Loading commit data... | |
| Vector.h | Loading commit data... | |
| com_utils.h | Loading commit data... | |
| geometry_utils.cpp | Loading commit data... | |
| geometry_utils.h | Loading commit data... | |
| keyboard.h | Loading commit data... | |
| mouse.h | Loading commit data... | |
| random_utils.cpp | Loading commit data... | |
| random_utils.h | Loading commit data... | |
| shader_utils.cpp | Loading commit data... | |
| shader_utils.h | Loading commit data... | |
| system_utils.h | Loading commit data... | |
| util.gyp | Loading commit data... |