util: Move u_pack_color.h and dbughelp.h into src/util from/src/gallium/auxiliary...
authorYonggang Luo <luoyonggang@gmail.com>
Sun, 4 Jun 2023 09:22:09 +0000 (17:22 +0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 2 Aug 2023 03:41:24 +0000 (03:41 +0000)
As u_pack_color.h is used in vulkan drivers, so decouple it from gallium by this move
And dbghelp.h is included in u_debug_symbol.c and that's resident in src/util/

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19522>

src/gallium/auxiliary/meson.build
src/panfrost/lib/pan_clear.c
src/util/dbghelp.h [moved from src/gallium/auxiliary/util/dbghelp.h with 100% similarity]
src/util/meson.build
src/util/u_pack_color.h [moved from src/gallium/auxiliary/util/u_pack_color.h with 100% similarity]

index 79bd5af..8094a96 100644 (file)
@@ -201,7 +201,6 @@ files_libgallium = files(
   'translate/translate_cache.h',
   'translate/translate_generic.c',
   'translate/translate_sse.c',
-  'util/dbghelp.h',
   'util/u_async_debug.h',
   'util/u_async_debug.c',
   'util/u_bitcast.h',
@@ -245,7 +244,6 @@ files_libgallium = files(
   'util/u_live_shader_cache.h',
   'util/u_log.c',
   'util/u_log.h',
-  'util/u_pack_color.h',
   'util/u_prim.h',
   'util/u_prim.c',
   'util/u_prim_restart.c',
index b1a8533..eed14e3 100644 (file)
@@ -26,9 +26,9 @@
 #include "genxml/gen_macros.h"
 
 #include <string.h>
-#include "gallium/auxiliary/util/u_pack_color.h"
 #include "util/format_srgb.h"
 #include "util/rounding.h"
+#include "util/u_pack_color.h"
 #include "pan_format.h"
 #include "pan_util.h"
 
index 47416f9..f4946d7 100644 (file)
@@ -154,6 +154,7 @@ files_mesa_util = files(
   'u_memset.h',
   'u_mm.c',
   'u_mm.h',
+  'u_pack_color.h',
   'u_debug.c',
   'u_debug.h',
   'u_debug_memory.c',
@@ -232,8 +233,9 @@ deps_for_libmesa_util = [
 if with_platform_android
   deps_for_libmesa_util += dep_android
   files_debug_stack = files('u_debug_stack_android.cpp')
- else
+else
   files_debug_stack = files(
+    'dbghelp.h',
     'u_debug_stack.c',
     'u_debug_symbol.c',
     'u_debug_symbol.h',