glsl: Use simpler visitor to determine which UBO and SSBO blocks are used
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 12 Dec 2016 21:37:46 +0000 (13:37 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 19 Dec 2016 23:55:43 +0000 (15:55 -0800)
commit5085b640313f806150729a197c438a0cfea35f49
tree9e5f31d745cfb9bdbc94f7a2ab50ab47f812677a
parentd56bd07bb3b6821eca961dde15c40f179be99e2d
glsl: Use simpler visitor to determine which UBO and SSBO blocks are used

Very soon this visitor will get more complicated.  The users of the
existing ir_variable_refcount visitor won't need the coming
functionality, and this use doesn't need much of the functionality of
ir_variable_refcount.

v2: ir_array_refcount_visitor::get_variable_entry cannot return NULL, so
don't check it.  Suggested by Timothy.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/Makefile.sources
src/compiler/glsl/ir_array_refcount.cpp [new file with mode: 0644]
src/compiler/glsl/ir_array_refcount.h [new file with mode: 0644]
src/compiler/glsl/link_uniforms.cpp