This was moved in !13741 but doing so created a link-time dependency
between util and gallium which causes problems for Vulkan drivers.
Meanwhile, having mesa/main depend on gallium is fine now that we don't
have any classic drivers. It's a bit circular but should be harmless.
Fixes:
97ba2f2fd486 ("move util/indices to core util")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8098
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20734>
(cherry picked from commit
d292cb82b8ef1311eb4b78af2c90b1840ba5a6bf)
"description": "gallium,util: Pull u_indices and u_primconvert back into gallium",
"nominated": true,
"nomination_type": 1,
- "resolution": 0,
+ "resolution": 1,
"main_sha": null,
"because_sha": "97ba2f2fd4867779acac611075fee1505e2cf2fb"
},
'hud/hud_driver_query.c',
'hud/hud_fps.c',
'hud/hud_private.h',
+ 'indices/u_indices.h',
+ 'indices/u_indices_priv.h',
+ 'indices/u_primconvert.c',
+ 'indices/u_primconvert.h',
'os/os_mman.h',
'os/os_process.c',
'os/os_process.h',
sources: files_u_tracepoints,
)
+u_indices_gen_c = custom_target(
+ 'u_indices_gen.c',
+ input : 'indices/u_indices_gen.py',
+ output : 'u_indices_gen.c',
+ command : [prog_python, '@INPUT@', '@OUTPUT@'],
+)
+
+u_unfilled_gen_c = custom_target(
+ 'u_unfilled_gen.c',
+ input : 'indices/u_unfilled_gen.py',
+ output : 'u_unfilled_gen.c',
+ command : [prog_python, '@INPUT@', '@OUTPUT@'],
+)
+
libgallium_extra_c_args = []
libgallium = static_library(
'gallium',
- [files_libgallium],
+ [files_libgallium, u_indices_gen_c, u_unfilled_gen_c],
include_directories : [
inc_loader, inc_gallium, inc_src, inc_include, include_directories('util')
],
#include "util/u_helpers.h"
#include "util/u_inlines.h"
#include "util/u_memory.h"
-#include "indices/u_primconvert.h"
#include "util/u_prim_restart.h"
#include "util/u_screen.h"
#include "util/u_upload_mgr.h"
+#include "indices/u_primconvert.h"
#include "translate/translate.h"
#include "translate/translate_cache.h"
#include "cso_cache/cso_cache.h"
#include "svga_cmd.h"
+#include "indices/u_indices.h"
#include "util/u_inlines.h"
#include "util/u_prim.h"
-#include "indices/u_indices.h"
#include "svga_hw_reg.h"
#include "svga_draw.h"
*
**********************************************************/
+#include "indices/u_indices.h"
#include "util/u_inlines.h"
#include "util/u_prim.h"
#include "util/u_upload_mgr.h"
-#include "indices/u_indices.h"
#include "svga_cmd.h"
#include "svga_draw.h"
#include "util/bitscan.h"
#include "util/u_memory.h"
#include "util/hash_table.h"
-#include "util/indices/u_indices.h"
+#include "gallium/auxiliary/indices/u_indices.h"
#include "util/u_prim.h"
#include "gallium/include/pipe/p_state.h"
'vma.c',
'vma.h',
'xxhash.h',
- 'indices/u_indices.h',
- 'indices/u_indices_priv.h',
- 'indices/u_primconvert.c',
- 'indices/u_primconvert.h',
'mesa_cache_db.c',
'mesa_cache_db.h',
)
u_trace_py = files('perf/u_trace.py')
-u_indices_gen_c = custom_target(
- 'u_indices_gen.c',
- input : 'indices/u_indices_gen.py',
- output : 'u_indices_gen.c',
- command : [prog_python, '@INPUT@', '@OUTPUT@'],
-)
-
-u_unfilled_gen_c = custom_target(
- 'u_unfilled_gen.c',
- input : 'indices/u_unfilled_gen.py',
- output : 'u_unfilled_gen.c',
- command : [prog_python, '@INPUT@', '@OUTPUT@'],
-)
-
libmesa_util_sse41 = static_library(
'mesa_util_sse41',
files('streaming-load-memcpy.c'),
_libmesa_util = static_library(
'mesa_util',
- [files_mesa_util, files_debug_stack, format_srgb, u_indices_gen_c, u_unfilled_gen_c],
+ [files_mesa_util, files_debug_stack, format_srgb],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : deps_for_libmesa_util,
link_with: [libmesa_format, libmesa_util_sse41],