diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2014-02-24 23:39:14 -0800 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2014-08-04 11:06:58 -0700 |
commit | 1e0da6233be6e5fb0143615d5e3d3642ddb7964f (patch) | |
tree | b33478332a051d4d587009cc8a76b71c5210bdc6 /src/mesa/main | |
parent | dcc29c18b4affd0a69202a822ffe77d94594f98b (diff) | |
download | external_mesa3d-1e0da6233be6e5fb0143615d5e3d3642ddb7964f.zip external_mesa3d-1e0da6233be6e5fb0143615d5e3d3642ddb7964f.tar.gz external_mesa3d-1e0da6233be6e5fb0143615d5e3d3642ddb7964f.tar.bz2 |
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>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/hash_table.c | 2 | ||||
-rw-r--r-- | src/mesa/main/performance_monitor.c | 2 | ||||
-rw-r--r-- | src/mesa/main/pipelineobj.c | 2 | ||||
-rw-r--r-- | src/mesa/main/set.c | 2 | ||||
-rw-r--r-- | src/mesa/main/shaderapi.c | 2 | ||||
-rw-r--r-- | src/mesa/main/shaderobj.c | 2 | ||||
-rw-r--r-- | src/mesa/main/tests/Makefile.am | 1 |
7 files changed, 7 insertions, 6 deletions
diff --git a/src/mesa/main/hash_table.c b/src/mesa/main/hash_table.c index ad8f898..b51dada 100644 --- a/src/mesa/main/hash_table.c +++ b/src/mesa/main/hash_table.c @@ -45,7 +45,7 @@ #include "main/hash_table.h" #include "main/macros.h" -#include "ralloc.h" +#include "util/ralloc.h" static const uint32_t deleted_key_value; diff --git a/src/mesa/main/performance_monitor.c b/src/mesa/main/performance_monitor.c index c26eda4..c02910e 100644 --- a/src/mesa/main/performance_monitor.c +++ b/src/mesa/main/performance_monitor.c @@ -43,7 +43,7 @@ #include "mtypes.h" #include "performance_monitor.h" #include "bitset.h" -#include "ralloc.h" +#include "util/ralloc.h" void _mesa_init_performance_monitors(struct gl_context *ctx) diff --git a/src/mesa/main/pipelineobj.c b/src/mesa/main/pipelineobj.c index 90c1d00..017d425 100644 --- a/src/mesa/main/pipelineobj.c +++ b/src/mesa/main/pipelineobj.c @@ -44,7 +44,7 @@ #include "main/uniforms.h" #include "program/program.h" #include "program/prog_parameter.h" -#include "ralloc.h" +#include "util/ralloc.h" #include <stdbool.h> #include "../glsl/glsl_parser_extras.h" #include "../glsl/ir_uniform.h" diff --git a/src/mesa/main/set.c b/src/mesa/main/set.c index 989e5de..52c1dab 100644 --- a/src/mesa/main/set.c +++ b/src/mesa/main/set.c @@ -36,7 +36,7 @@ #include "macros.h" #include "set.h" -#include "ralloc.h" +#include "util/ralloc.h" /* * From Knuth -- a good choice for hash/rehash values is p, p-2 where diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 2bbef35..85b9753 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -52,7 +52,7 @@ #include "program/program.h" #include "program/prog_print.h" #include "program/prog_parameter.h" -#include "ralloc.h" +#include "util/ralloc.h" #include <stdbool.h> #include "../glsl/glsl_parser_extras.h" #include "../glsl/ir.h" diff --git a/src/mesa/main/shaderobj.c b/src/mesa/main/shaderobj.c index b9feff4..693e9a2 100644 --- a/src/mesa/main/shaderobj.c +++ b/src/mesa/main/shaderobj.c @@ -40,7 +40,7 @@ #include "program/program.h" #include "program/prog_parameter.h" #include "program/hash_table.h" -#include "ralloc.h" +#include "util/ralloc.h" /**********************************************************************/ /*** Shader object functions ***/ diff --git a/src/mesa/main/tests/Makefile.am b/src/mesa/main/tests/Makefile.am index 0d3a51f..3c7c1b5 100644 --- a/src/mesa/main/tests/Makefile.am +++ b/src/mesa/main/tests/Makefile.am @@ -5,6 +5,7 @@ AM_CFLAGS = \ $(PTHREAD_CFLAGS) AM_CPPFLAGS = \ -I$(top_srcdir)/src/gtest/include \ + -I$(top_srcdir)/src \ -I$(top_srcdir)/src/mapi \ -I$(top_srcdir)/src/mesa \ -I$(top_builddir)/src/mesa \ |