Uniform buffer related fixes
- Added an actual offset, in registers, to the Uniform structure to
take into account that types can have different register sizes.
- Fixed the array check in OutputASM::declareUniform() so that it
doesn't make an array of blocks when declaring a member as an
array in the default uniform block.
- Fixed arrayStride and matrixStride in the BlockInfo constructor.
- Fixed memberUniformIndexes to use uniform index instead of
register index.
Change-Id: Id8ba23b5fef71c772bb45a45bb897ca5e2fae385
Reviewed-on: https://swiftshader-review.googlesource.com/3750
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
3 files changed