OSDN Git Service

Fix for the remaining vertex array issues
authorAlexis Hetu <sugoi@google.com>
Thu, 22 Sep 2016 19:36:45 +0000 (15:36 -0400)
committerAlexis Hétu <sugoi@google.com>
Mon, 26 Sep 2016 19:15:08 +0000 (19:15 +0000)
commitb7508b8e161a28789d54567020dcc46b97b5b2fc
tree16bab8f9be767a7aebdcf6726c84d225a82ad959
parentf483671b2e3ce22270d68fde3b74015cc6c4571a
Fix for the remaining vertex array issues

Fixes all failures in dEQP.functional.vertex_arrays.*

In OpenGL ES 3.0, vertex attributes streams can be of a
different type from the vertex attribute in the shader.
For this reason, some conversion may be required. This
cl solves this issue by:
1) Sending the information about the vertex attribute's
   type in the shader to the vertex routine.
2) Handling this information by adding conversion where
   appropriate.

Change-Id: I04a5a34aea12684209e584aa5f15a3edfd57f956
Reviewed-on: https://swiftshader-review.googlesource.com/7254
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
src/OpenGL/compiler/OutputASM.cpp
src/Renderer/VertexProcessor.cpp
src/Renderer/VertexProcessor.hpp
src/Shader/VertexRoutine.cpp
src/Shader/VertexShader.cpp
src/Shader/VertexShader.hpp