util: Move ralloc to a new src/util directory.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 25 Feb 2014 07:39:14 +0000 (23:39 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 4 Aug 2014 18:06:58 +0000 (11:06 -0700)
commit1e0da6233be6e5fb0143615d5e3d3642ddb7964f
treeb33478332a051d4d587009cc8a76b71c5210bdc6
parentdcc29c18b4affd0a69202a822ffe77d94594f98b
util: Move ralloc to a new src/util directory.

For a long time, we've wanted a place to put utility code which isn't
directly tied to Mesa or Gallium internals.  This patch creates a new
src/util directory for exactly that purpose, and builds the contents as
libmesautil.la.

ralloc seemed like a good first candidate.  These days, it's directly
used by mesa/main, i965, i915, and r300g, so keeping it in src/glsl
didn't make much sense.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
v2 (Jason Ekstrand): More realloc uses and some scons fixes

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
66 files changed:
configure.ac
src/Makefile.am
src/SConscript
src/gallium/drivers/r300/Makefile.am
src/gallium/drivers/r300/ralloc.c
src/gallium/targets/libgl-xlib/SConscript
src/glsl/Makefile.am
src/glsl/Makefile.sources
src/glsl/SConscript
src/glsl/glcpp/glcpp.h
src/glsl/glsl_parser_extras.cpp
src/glsl/glsl_types.h
src/glsl/ir.h
src/glsl/list.h
src/glsl/ralloc.c [deleted file]
src/glsl/ralloc.h [deleted file]
src/glsl/standalone_scaffolding.cpp
src/glsl/tests/builtin_variable_test.cpp
src/glsl/tests/copy_constant_to_storage_tests.cpp
src/glsl/tests/general_ir_test.cpp
src/glsl/tests/invalidate_locations_test.cpp
src/glsl/tests/ralloc_test.cpp [deleted file]
src/glsl/tests/sampler_types_test.cpp
src/glsl/tests/set_uniform_initializer_tests.cpp
src/glsl/tests/uniform_initializer_utils.cpp
src/glsl/tests/varyings_test.cpp
src/mesa/Makefile.sources
src/mesa/SConscript
src/mesa/drivers/common/meta.c
src/mesa/drivers/common/meta_blit.c
src/mesa/drivers/dri/i915/i830_context.c
src/mesa/drivers/dri/i915/i915_context.c
src/mesa/drivers/dri/i915/intel_context.c
src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp
src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
src/mesa/drivers/dri/i965/brw_clip.c
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_eu.c
src/mesa/drivers/dri/i965/brw_eu_emit.c
src/mesa/drivers/dri/i965/brw_gs.c
src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c
src/mesa/drivers/dri/i965/brw_performance_monitor.c
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/i965/brw_sf.c
src/mesa/drivers/dri/i965/brw_state_batch.c
src/mesa/drivers/dri/i965/brw_vs.c
src/mesa/drivers/dri/i965/brw_wm.c
src/mesa/drivers/dri/i965/gen8_generator.cpp
src/mesa/drivers/dri/i965/intel_screen.c
src/mesa/drivers/dri/i965/test_eu_compact.c
src/mesa/drivers/x11/SConscript
src/mesa/main/hash_table.c
src/mesa/main/performance_monitor.c
src/mesa/main/pipelineobj.c
src/mesa/main/set.c
src/mesa/main/shaderapi.c
src/mesa/main/shaderobj.c
src/mesa/main/tests/Makefile.am
src/mesa/program/register_allocate.c
src/util/Makefile.am [new file with mode: 0644]
src/util/Makefile.sources [new file with mode: 0644]
src/util/SConscript [new file with mode: 0644]
src/util/ralloc.c [new file with mode: 0644]
src/util/ralloc.h [new file with mode: 0644]
src/util/tests/Makefile.am [new file with mode: 0644]
src/util/tests/ralloc_test.cpp [new file with mode: 0644]