diff options
author | Eric Anholt <[email protected]> | 2019-06-27 15:05:31 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-11-14 10:47:20 -0800 |
commit | 882ca6dfb0f3d17e0f8bc917307d915ab1718069 (patch) | |
tree | 652b9932fc1182d4d191d7970fcd10c3687fbd3b /src/gallium/drivers/swr | |
parent | ac78ca4b39ce6e927f824b928d17f30c1d9273ce (diff) |
util: Move gallium's PIPE_FORMAT utils to /util/format/
To make PIPE_FORMATs usable from non-gallium parts of Mesa, I want to
move their helpers out of gallium. Since u_format used
util_copy_rect(), I moved that in there, too.
I've put it in a separate directory in util/ because it's a big chunk
of related code, and it's not clear to me whether we might want it as
a separate library from libmesa_util at some point.
Closes: #1905
Acked-by: Marek Olšák <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r-- | src/gallium/drivers/swr/swr_context.cpp | 2 | ||||
-rw-r--r-- | src/gallium/drivers/swr/swr_screen.cpp | 4 | ||||
-rw-r--r-- | src/gallium/drivers/swr/swr_screen.h | 2 | ||||
-rw-r--r-- | src/gallium/drivers/swr/swr_shader.cpp | 2 | ||||
-rw-r--r-- | src/gallium/drivers/swr/swr_state.cpp | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/swr/swr_context.cpp b/src/gallium/drivers/swr/swr_context.cpp index 1975e11a9b5..74516c80f9b 100644 --- a/src/gallium/drivers/swr/swr_context.cpp +++ b/src/gallium/drivers/swr/swr_context.cpp @@ -31,7 +31,7 @@ #include "util/u_memory.h" #include "util/u_inlines.h" -#include "util/u_format.h" +#include "util/format/u_format.h" #include "util/u_atomic.h" #include "util/u_upload_mgr.h" #include "util/u_transfer.h" diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp index 480c1500a86..23bc3541ba4 100644 --- a/src/gallium/drivers/swr/swr_screen.cpp +++ b/src/gallium/drivers/swr/swr_screen.cpp @@ -31,10 +31,10 @@ #include "pipe/p_screen.h" #include "pipe/p_defines.h" #include "util/u_memory.h" -#include "util/u_format.h" +#include "util/format/u_format.h" #include "util/u_inlines.h" #include "util/u_cpu_detect.h" -#include "util/u_format_s3tc.h" +#include "util/format/u_format_s3tc.h" #include "util/u_string.h" #include "util/u_screen.h" diff --git a/src/gallium/drivers/swr/swr_screen.h b/src/gallium/drivers/swr/swr_screen.h index 0fa44043191..fac2a5ea8c7 100644 --- a/src/gallium/drivers/swr/swr_screen.h +++ b/src/gallium/drivers/swr/swr_screen.h @@ -29,7 +29,7 @@ #include "pipe/p_screen.h" #include "pipe/p_defines.h" #include "util/u_dl.h" -#include "util/u_format.h" +#include "util/format/u_format.h" #include "api.h" #include "memory/TilingFunctions.h" diff --git a/src/gallium/drivers/swr/swr_shader.cpp b/src/gallium/drivers/swr/swr_shader.cpp index 20e855b988d..513e5300dd8 100644 --- a/src/gallium/drivers/swr/swr_shader.cpp +++ b/src/gallium/drivers/swr/swr_shader.cpp @@ -44,7 +44,7 @@ #include "functionpasses/passes.h" #include "tgsi/tgsi_strings.h" -#include "util/u_format.h" +#include "util/format/u_format.h" #include "util/u_prim.h" #include "gallivm/lp_bld_init.h" #include "gallivm/lp_bld_flow.h" diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp index 94507b2f2d9..345fef4c856 100644 --- a/src/gallium/drivers/swr/swr_state.cpp +++ b/src/gallium/drivers/swr/swr_state.cpp @@ -43,7 +43,7 @@ #include "core/state_funcs.h" #include "gallivm/lp_bld_tgsi.h" -#include "util/u_format.h" +#include "util/format/u_format.h" #include "util/u_memory.h" #include "util/u_inlines.h" |