OSDN Git Service

New uniform block related utility functions
authorAlexis Hetu <sugoi@google.com>
Thu, 4 Feb 2016 16:53:16 +0000 (11:53 -0500)
committerAlexis Hétu <sugoi@google.com>
Mon, 4 Apr 2016 17:56:04 +0000 (17:56 +0000)
commit0538d1152ded16decc427aa17f245149bc48ddb7
tree6e4df508f7ace40e5bc9c4624b9c36cdc516ffac
parent2ee8585b0e8896724a916c62ab0b0b091bbf37a6
New uniform block related utility functions

This cl adds 2 new utility function and adds one use of
these in the argument() function.
- getBlockId() finds a block by name and returns its ID
- getTypedMemberInfo() finds which block member matches
  a certain register index and returns the block member's
  packing information and type. If the register falls
  within a block member (as a sub-register of a matrix or
  an array), the base offset of the block member is
  returned, along with the register index, which will then
  be used within the argument() function to compute the
  final parameter index.

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