OSDN Git Service

Non square matrices related fixes
authorAlexis Hetu <sugoi@google.com>
Wed, 15 Jul 2015 20:55:56 +0000 (16:55 -0400)
committerAlexis Hétu <sugoi@google.com>
Thu, 16 Jul 2015 19:08:26 +0000 (19:08 +0000)
commit909b8bc1d03c5df9392eebe904727291f9f444a1
treed2ce52735e1c7a713a389840bf751bcdaf45e5b5
parentb1a071f5bc2acd72dd499c88b5fe60f46dcc2f57
Non square matrices related fixes

- Implemented proper VariableRegisterCount (we were using row
  count instead of column count to get the number of registers)
  and VariableRegisterSize.
- Matrix to matrix copies now clear the correct rows of the
  destination matrix when needed
- Added registerSize helper function to type to help clarify
  this for matrices.
- Added missing member initializations in TType constructor

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