OSDN Git Service

Ported Angle's std140 encoder to SwiftShader
authorAlexis Hetu <sugoi@google.com>
Thu, 7 Jan 2016 21:53:00 +0000 (16:53 -0500)
committerAlexis Hétu <sugoi@google.com>
Wed, 13 Jan 2016 17:27:13 +0000 (17:27 +0000)
commit8757dead5934e5f7423640d3f002cac23e390969
tree10f0d9d43c09faa574303aa469558fc9e2a78673
parent773b67af231c0d3a154270d26b49aa3b1a7c4ee5
Ported Angle's std140 encoder to SwiftShader

Added Angle's std140 encoder to properly compute sizes and
offsets of uniform blocks for the std140 standard. All
layouts currently use std140 ('packed' and 'shared' are
implementation dependent, so we can choose to have them be
the same as std140).

All uniform blocks made of simple types or arrays of simple
types are properly interpreted by this code.

Structs are still TBD.

Change-Id: I191d7f313db5d409715b1101ea70903a7b958726
Reviewed-on: https://swiftshader-review.googlesource.com/4525
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
src/OpenGL/compiler/OutputASM.cpp
src/OpenGL/compiler/OutputASM.h
src/OpenGL/libGLESv2/Program.cpp
src/OpenGL/libGLESv2/Program.h