From 5085b640313f806150729a197c438a0cfea35f49 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 12 Dec 2016 13:37:46 -0800 Subject: 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 Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Timothy Arceri Reviewed-by: Kenneth Graunke --- src/compiler/Makefile.sources | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compiler/Makefile.sources') diff --git a/src/compiler/Makefile.sources b/src/compiler/Makefile.sources index 17b15deca82..15f410ff621 100644 --- a/src/compiler/Makefile.sources +++ b/src/compiler/Makefile.sources @@ -29,6 +29,8 @@ LIBGLSL_FILES = \ glsl/glsl_to_nir.cpp \ glsl/glsl_to_nir.h \ glsl/hir_field_selection.cpp \ + glsl/ir_array_refcount.cpp \ + glsl/ir_array_refcount.h \ glsl/ir_basic_block.cpp \ glsl/ir_basic_block.h \ glsl/ir_builder.cpp \ -- cgit v1.2.3