diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2015-01-15 08:06:05 -0800 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2015-01-15 13:21:27 -0800 |
commit | 4c99e3ae78ed3524d188f00b558f803a943aaa00 (patch) | |
tree | 5d41fc99f85c7705e9ffbfddd416014ee665ed11 | |
parent | 8ed5305d28d9309d651dfec3fbf4349854694694 (diff) |
util: Move main/set to util/hash_set
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
-rw-r--r-- | src/glsl/nir/nir.h | 2 | ||||
-rw-r--r-- | src/mesa/Makefile.sources | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_fbo.c | 2 | ||||
-rw-r--r-- | src/mesa/main/shared.c | 2 | ||||
-rw-r--r-- | src/mesa/main/syncobj.c | 2 | ||||
-rw-r--r-- | src/mesa/main/vdpau.c | 2 | ||||
-rw-r--r-- | src/util/Makefile.sources | 2 | ||||
-rw-r--r-- | src/util/set.c (renamed from src/mesa/main/set.c) | 3 | ||||
-rw-r--r-- | src/util/set.h (renamed from src/mesa/main/set.h) | 0 |
9 files changed, 8 insertions, 9 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 1faeb02156..d5fa0e3262 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -28,10 +28,10 @@ #pragma once #include "util/hash_table.h" -#include "main/set.h" #include "../list.h" #include "GL/gl.h" /* GLenum */ #include "util/ralloc.h" +#include "util/set.h" #include "main/mtypes.h" #include "main/bitset.h" #include "nir_types.h" diff --git a/src/mesa/Makefile.sources b/src/mesa/Makefile.sources index 2e321f3433..a91f78cc34 100644 --- a/src/mesa/Makefile.sources +++ b/src/mesa/Makefile.sources @@ -174,8 +174,6 @@ MAIN_FILES = \ $(SRCDIR)main/samplerobj.h \ $(SRCDIR)main/scissor.c \ $(SRCDIR)main/scissor.h \ - $(SRCDIR)main/set.c \ - $(SRCDIR)main/set.h \ $(SRCDIR)main/shaderapi.c \ $(SRCDIR)main/shaderapi.h \ $(SRCDIR)main/shaderimage.c \ diff --git a/src/mesa/drivers/dri/i965/intel_fbo.c b/src/mesa/drivers/dri/i965/intel_fbo.c index 37ac613fa3..77d128200d 100644 --- a/src/mesa/drivers/dri/i965/intel_fbo.c +++ b/src/mesa/drivers/dri/i965/intel_fbo.c @@ -36,9 +36,9 @@ #include "main/context.h" #include "main/teximage.h" #include "main/image.h" -#include "main/set.h" #include "main/condrender.h" #include "util/hash_table.h" +#include "util/set.h" #include "swrast/swrast.h" #include "drivers/common/meta.h" diff --git a/src/mesa/main/shared.c b/src/mesa/main/shared.c index f74a8232f4..2389c13159 100644 --- a/src/mesa/main/shared.c +++ b/src/mesa/main/shared.c @@ -36,12 +36,12 @@ #include "program/program.h" #include "dlist.h" #include "samplerobj.h" -#include "set.h" #include "shaderapi.h" #include "shaderobj.h" #include "syncobj.h" #include "util/hash_table.h" +#include "util/set.h" /** * Allocate and initialize a shared context state structure. diff --git a/src/mesa/main/syncobj.c b/src/mesa/main/syncobj.c index 225399eda3..8832775ebb 100644 --- a/src/mesa/main/syncobj.c +++ b/src/mesa/main/syncobj.c @@ -63,8 +63,8 @@ #include "get.h" #include "dispatch.h" #include "mtypes.h" -#include "set.h" #include "util/hash_table.h" +#include "util/set.h" #include "syncobj.h" diff --git a/src/mesa/main/vdpau.c b/src/mesa/main/vdpau.c index fd7561c3db..89d731b6e7 100644 --- a/src/mesa/main/vdpau.c +++ b/src/mesa/main/vdpau.c @@ -33,9 +33,9 @@ #include <stdbool.h> #include "util/hash_table.h" +#include "util/set.h" #include "context.h" #include "glformats.h" -#include "set.h" #include "texobj.h" #include "teximage.h" #include "vdpau.h" diff --git a/src/util/Makefile.sources b/src/util/Makefile.sources index 5f87fc32a8..154677aa47 100644 --- a/src/util/Makefile.sources +++ b/src/util/Makefile.sources @@ -9,6 +9,8 @@ MESA_UTIL_FILES := \ register_allocate.h \ rgtc.c \ rgtc.h \ + set.c \ + set.h \ strtod.cpp \ strtod.h \ texcompress_rgtc_tmp.h \ diff --git a/src/mesa/main/set.c b/src/util/set.c index 52c1dabd82..3f4a4acb2c 100644 --- a/src/mesa/main/set.c +++ b/src/util/set.c @@ -35,8 +35,8 @@ #include <stdlib.h> #include "macros.h" +#include "ralloc.h" #include "set.h" -#include "util/ralloc.h" /* * From Knuth -- a good choice for hash/rehash values is p, p-2 where @@ -343,4 +343,3 @@ _mesa_set_random_entry(struct set *ht, return NULL; } - diff --git a/src/mesa/main/set.h b/src/util/set.h index 206d0c4d24..206d0c4d24 100644 --- a/src/mesa/main/set.h +++ b/src/util/set.h |