mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
gallium,util: Pull u_indices and u_primconvert back into gallium
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: 97ba2f2fd4 ("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>
This commit is contained in:
parent
fe3b467eb9
commit
d292cb82b8
19 changed files with 31 additions and 31 deletions
|
|
@ -112,6 +112,10 @@ files_libgallium = files(
|
|||
'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_process.h',
|
||||
'pipebuffer/pb_buffer_fenced.c',
|
||||
'pipebuffer/pb_buffer_fenced.h',
|
||||
|
|
@ -491,10 +495,24 @@ idep_u_tracepoints = declare_dependency(
|
|||
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')
|
||||
],
|
||||
|
|
|
|||
|
|
@ -92,10 +92,10 @@
|
|||
#include "util/u_helpers.h"
|
||||
#include "util/u_inlines.h"
|
||||
#include "util/u_memory.h"
|
||||
#include "util/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"
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
#include "d3d12_video_proc.h"
|
||||
#include "d3d12_video_buffer.h"
|
||||
#endif
|
||||
#include "util/indices/u_primconvert.h"
|
||||
#include "indices/u_primconvert.h"
|
||||
#include "util/u_atomic.h"
|
||||
#include "util/u_blitter.h"
|
||||
#include "util/u_dual_blend.h"
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
#include "d3d12_screen.h"
|
||||
#include "d3d12_surface.h"
|
||||
|
||||
#include "util/indices/u_primconvert.h"
|
||||
#include "indices/u_primconvert.h"
|
||||
#include "util/u_debug.h"
|
||||
#include "util/u_draw.h"
|
||||
#include "util/u_helpers.h"
|
||||
|
|
|
|||
|
|
@ -25,9 +25,9 @@
|
|||
|
||||
#include "svga_cmd.h"
|
||||
|
||||
#include "indices/u_indices.h"
|
||||
#include "util/u_inlines.h"
|
||||
#include "util/u_prim.h"
|
||||
#include "util/indices/u_indices.h"
|
||||
|
||||
#include "svga_hw_reg.h"
|
||||
#include "svga_draw.h"
|
||||
|
|
|
|||
|
|
@ -23,10 +23,10 @@
|
|||
*
|
||||
**********************************************************/
|
||||
|
||||
#include "indices/u_indices.h"
|
||||
#include "util/u_inlines.h"
|
||||
#include "util/u_prim.h"
|
||||
#include "util/u_upload_mgr.h"
|
||||
#include "util/indices/u_indices.h"
|
||||
|
||||
#include "svga_cmd.h"
|
||||
#include "svga_draw.h"
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
#include "pipe/p_compiler.h"
|
||||
#include "pipe/p_defines.h"
|
||||
#include "util/indices/u_indices.h"
|
||||
#include "indices/u_indices.h"
|
||||
#include "util/u_prim.h"
|
||||
#include "svga_context.h"
|
||||
#include "svga_hw_reg.h"
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
#include "pipe/p_state.h"
|
||||
#include "nir/nir_to_tgsi.h"
|
||||
#include "util/format/u_format.h"
|
||||
#include "util/indices/u_primconvert.h"
|
||||
#include "indices/u_primconvert.h"
|
||||
#include "util/u_draw.h"
|
||||
#include "util/u_inlines.h"
|
||||
#include "util/u_memory.h"
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@
|
|||
*/
|
||||
|
||||
/* find | grep .*h$ >../headers.txt */
|
||||
#include <indices/u_indices.h>
|
||||
#include <indices/u_indices_priv.h>
|
||||
#include <indices/u_primconvert.h>
|
||||
#include <mesa/main/accum.h>
|
||||
#include <mesa/main/api_arrayelt.h>
|
||||
#include <mesa/main/arrayobj.h>
|
||||
|
|
@ -224,9 +227,6 @@
|
|||
#include <util/glheader.h>
|
||||
#include <util/half_float.h>
|
||||
#include <util/hash_table.h>
|
||||
#include <util/indices/u_indices.h>
|
||||
#include <util/indices/u_indices_priv.h>
|
||||
#include <util/indices/u_primconvert.h>
|
||||
#include <util/list.h>
|
||||
#include <util/log.h>
|
||||
#include <util/macros.h>
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#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"
|
||||
|
|
|
|||
|
|
@ -162,10 +162,6 @@ files_mesa_util = files(
|
|||
'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',
|
||||
)
|
||||
|
|
@ -249,20 +245,6 @@ endif
|
|||
|
||||
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'),
|
||||
|
|
@ -273,7 +255,7 @@ libmesa_util_sse41 = static_library(
|
|||
|
||||
_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],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue