glsl ubo/ssbo: Add lower_buffer_access class
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 13 Nov 2015 07:43:04 +0000 (23:43 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 10 Dec 2015 07:50:38 +0000 (23:50 -0800)
commitafa4129cf6ee0a64811b118d270f1b05d7d05325
tree7d83496a26f248b2065630bf0492b7b129ebbc67
parentad3c65e79230cf4ec6fd7b6f01e114f1e2f2c7dc
glsl ubo/ssbo: Add lower_buffer_access class

This class has code that will be shared by lower_ubo_reference and
lower_shared_reference. (lower_shared_reference will be used to
support compute shader shared variables.)

v2:
 * Add lower_buffer_access.h to makefile (Emil)
 * Remove static is_dereferenced_thing_row_major from
   lower_buffer_access.cpp. This will become a lower_buffer_access
   method in the next commit.
 * Pass mem_ctx as parameter rather than using a member variable (Iago)

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/glsl/Makefile.sources
src/glsl/lower_buffer_access.cpp [new file with mode: 0644]
src/glsl/lower_buffer_access.h [new file with mode: 0644]
src/glsl/lower_ubo_reference.cpp