gallium: move ddebug, noop, rbug, trace to auxiliary to improve build times
authorMarek Olšák <marek.olsak@amd.com>
Sat, 7 Apr 2018 18:01:12 +0000 (14:01 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 13 Apr 2018 18:08:14 +0000 (14:08 -0400)
which also simplifies the build scripts.

79 files changed:
configure.ac
src/gallium/Makefile.am
src/gallium/SConscript
src/gallium/auxiliary/Makefile.am
src/gallium/auxiliary/Makefile.sources
src/gallium/auxiliary/driver_ddebug/dd_context.c [moved from src/gallium/drivers/ddebug/dd_context.c with 100% similarity]
src/gallium/auxiliary/driver_ddebug/dd_draw.c [moved from src/gallium/drivers/ddebug/dd_draw.c with 100% similarity]
src/gallium/auxiliary/driver_ddebug/dd_pipe.h [moved from src/gallium/drivers/ddebug/dd_pipe.h with 100% similarity]
src/gallium/auxiliary/driver_ddebug/dd_public.h [moved from src/gallium/drivers/ddebug/dd_public.h with 100% similarity]
src/gallium/auxiliary/driver_ddebug/dd_screen.c [moved from src/gallium/drivers/ddebug/dd_screen.c with 100% similarity]
src/gallium/auxiliary/driver_ddebug/dd_util.h [moved from src/gallium/drivers/ddebug/dd_util.h with 100% similarity]
src/gallium/auxiliary/driver_noop/noop_pipe.c [moved from src/gallium/drivers/noop/noop_pipe.c with 100% similarity]
src/gallium/auxiliary/driver_noop/noop_public.h [moved from src/gallium/drivers/noop/noop_public.h with 100% similarity]
src/gallium/auxiliary/driver_noop/noop_state.c [moved from src/gallium/drivers/noop/noop_state.c with 100% similarity]
src/gallium/auxiliary/driver_rbug/README [moved from src/gallium/drivers/rbug/README with 100% similarity]
src/gallium/auxiliary/driver_rbug/rbug_context.c [moved from src/gallium/drivers/rbug/rbug_context.c with 100% similarity]
src/gallium/auxiliary/driver_rbug/rbug_context.h [moved from src/gallium/drivers/rbug/rbug_context.h with 100% similarity]
src/gallium/auxiliary/driver_rbug/rbug_core.c [moved from src/gallium/drivers/rbug/rbug_core.c with 100% similarity]
src/gallium/auxiliary/driver_rbug/rbug_objects.c [moved from src/gallium/drivers/rbug/rbug_objects.c with 100% similarity]
src/gallium/auxiliary/driver_rbug/rbug_objects.h [moved from src/gallium/drivers/rbug/rbug_objects.h with 100% similarity]
src/gallium/auxiliary/driver_rbug/rbug_public.h [moved from src/gallium/drivers/rbug/rbug_public.h with 100% similarity]
src/gallium/auxiliary/driver_rbug/rbug_screen.c [moved from src/gallium/drivers/rbug/rbug_screen.c with 100% similarity]
src/gallium/auxiliary/driver_rbug/rbug_screen.h [moved from src/gallium/drivers/rbug/rbug_screen.h with 100% similarity]
src/gallium/auxiliary/driver_trace/README [moved from src/gallium/drivers/trace/README with 96% similarity]
src/gallium/auxiliary/driver_trace/tr_context.c [moved from src/gallium/drivers/trace/tr_context.c with 100% similarity]
src/gallium/auxiliary/driver_trace/tr_context.h [moved from src/gallium/drivers/trace/tr_context.h with 100% similarity]
src/gallium/auxiliary/driver_trace/tr_dump.c [moved from src/gallium/drivers/trace/tr_dump.c with 100% similarity]
src/gallium/auxiliary/driver_trace/tr_dump.h [moved from src/gallium/drivers/trace/tr_dump.h with 100% similarity]
src/gallium/auxiliary/driver_trace/tr_dump_defines.h [moved from src/gallium/drivers/trace/tr_dump_defines.h with 100% similarity]
src/gallium/auxiliary/driver_trace/tr_dump_state.c [moved from src/gallium/drivers/trace/tr_dump_state.c with 100% similarity]
src/gallium/auxiliary/driver_trace/tr_dump_state.h [moved from src/gallium/drivers/trace/tr_dump_state.h with 100% similarity]
src/gallium/auxiliary/driver_trace/tr_public.h [moved from src/gallium/drivers/trace/tr_public.h with 100% similarity]
src/gallium/auxiliary/driver_trace/tr_screen.c [moved from src/gallium/drivers/trace/tr_screen.c with 100% similarity]
src/gallium/auxiliary/driver_trace/tr_screen.h [moved from src/gallium/drivers/trace/tr_screen.h with 100% similarity]
src/gallium/auxiliary/driver_trace/tr_texture.c [moved from src/gallium/drivers/trace/tr_texture.c with 100% similarity]
src/gallium/auxiliary/driver_trace/tr_texture.h [moved from src/gallium/drivers/trace/tr_texture.h with 100% similarity]
src/gallium/auxiliary/driver_trace/trace.xsl [moved from src/gallium/drivers/trace/trace.xsl with 100% similarity]
src/gallium/auxiliary/meson.build
src/gallium/auxiliary/rbug/README
src/gallium/auxiliary/target-helpers/inline_debug_helper.h
src/gallium/drivers/ddebug/Makefile.am [deleted file]
src/gallium/drivers/ddebug/Makefile.sources [deleted file]
src/gallium/drivers/ddebug/meson.build [deleted file]
src/gallium/drivers/noop/Makefile.am [deleted file]
src/gallium/drivers/noop/Makefile.sources [deleted file]
src/gallium/drivers/noop/SConscript [deleted file]
src/gallium/drivers/noop/meson.build [deleted file]
src/gallium/drivers/radeonsi/si_debug.c
src/gallium/drivers/radeonsi/si_pipe.c
src/gallium/drivers/rbug/Makefile.am [deleted file]
src/gallium/drivers/rbug/Makefile.sources [deleted file]
src/gallium/drivers/rbug/SConscript [deleted file]
src/gallium/drivers/rbug/meson.build [deleted file]
src/gallium/drivers/trace/Makefile.am [deleted file]
src/gallium/drivers/trace/Makefile.sources [deleted file]
src/gallium/drivers/trace/SConscript [deleted file]
src/gallium/drivers/trace/meson.build [deleted file]
src/gallium/meson.build
src/gallium/state_trackers/osmesa/Makefile.am
src/gallium/state_trackers/osmesa/meson.build
src/gallium/targets/d3dadapter9/Makefile.am
src/gallium/targets/d3dadapter9/meson.build
src/gallium/targets/dri/Makefile.am
src/gallium/targets/dri/SConscript
src/gallium/targets/dri/meson.build
src/gallium/targets/graw-gdi/SConscript
src/gallium/targets/graw-xlib/SConscript
src/gallium/targets/haiku-softpipe/SConscript
src/gallium/targets/haiku-softpipe/meson.build
src/gallium/targets/libgl-gdi/SConscript
src/gallium/targets/libgl-xlib/Makefile.am
src/gallium/targets/libgl-xlib/SConscript
src/gallium/targets/libgl-xlib/meson.build
src/gallium/targets/osmesa/Makefile.am
src/gallium/targets/osmesa/SConscript
src/gallium/targets/osmesa/meson.build
src/gallium/targets/pipe-loader/Makefile.am
src/gallium/targets/pipe-loader/meson.build
src/gallium/tests/unit/Makefile.am

index 4ff3fce..33c8d08 100644 (file)
@@ -3011,21 +3011,17 @@ AC_CONFIG_FILES([Makefile
                  src/gallium/auxiliary/Makefile
                  src/gallium/auxiliary/pipe-loader/Makefile
                  src/gallium/drivers/freedreno/Makefile
-                 src/gallium/drivers/ddebug/Makefile
                  src/gallium/drivers/i915/Makefile
                  src/gallium/drivers/llvmpipe/Makefile
-                 src/gallium/drivers/noop/Makefile
                  src/gallium/drivers/nouveau/Makefile
                  src/gallium/drivers/pl111/Makefile
                  src/gallium/drivers/r300/Makefile
                  src/gallium/drivers/r600/Makefile
                  src/gallium/drivers/radeonsi/Makefile
-                 src/gallium/drivers/rbug/Makefile
                  src/gallium/drivers/softpipe/Makefile
                  src/gallium/drivers/svga/Makefile
                  src/gallium/drivers/swr/Makefile
                  src/gallium/drivers/tegra/Makefile
-                 src/gallium/drivers/trace/Makefile
                  src/gallium/drivers/etnaviv/Makefile
                  src/gallium/drivers/imx/Makefile
                  src/gallium/drivers/vc4/Makefile
index f1fd22c..e2e8eae 100644 (file)
@@ -11,12 +11,6 @@ SUBDIRS += auxiliary/pipe-loader
 ## Gallium pipe drivers and their respective winsys'
 ##
 
-SUBDIRS += \
-       drivers/ddebug \
-       drivers/noop \
-       drivers/trace \
-       drivers/rbug
-
 ## freedreno/msm/kgsl
 if HAVE_GALLIUM_FREEDRENO
 SUBDIRS += drivers/freedreno winsys/freedreno/drm
index 9273db7..358c31e 100644 (file)
@@ -14,10 +14,8 @@ SConscript('auxiliary/pipe-loader/SConscript')
 # These are common and work across all platforms
 SConscript([
     'drivers/llvmpipe/SConscript',
-    'drivers/rbug/SConscript',
     'drivers/softpipe/SConscript',
     'drivers/svga/SConscript',
-    'drivers/trace/SConscript',
     'drivers/swr/SConscript',
 ])
 
index 95a325f..07856e5 100644 (file)
@@ -108,6 +108,9 @@ endif # NEED_GALLIUM_VL
 
 EXTRA_DIST = \
        SConscript \
+       driver_rbug/README \
+       driver_trace/README \
+       driver_trace/trace.xsl \
        indices/u_indices.c \
        indices/u_unfilled_indices.c \
        indices/u_indices_gen.py \
index d70eb04..066746f 100644 (file)
@@ -57,6 +57,35 @@ C_SOURCES := \
        draw/draw_vs_exec.c \
        draw/draw_vs.h \
        draw/draw_vs_variant.c \
+       driver_ddebug/dd_context.c \
+       driver_ddebug/dd_draw.c \
+       driver_ddebug/dd_pipe.h \
+       driver_ddebug/dd_public.h \
+       driver_ddebug/dd_screen.c \
+       driver_ddebug/dd_util.h \
+       driver_noop/noop_pipe.c \
+       driver_noop/noop_public.h \
+       driver_noop/noop_state.c \
+       driver_rbug/rbug_context.c \
+       driver_rbug/rbug_context.h \
+       driver_rbug/rbug_core.c \
+       driver_rbug/rbug_objects.c \
+       driver_rbug/rbug_objects.h \
+       driver_rbug/rbug_public.h \
+       driver_rbug/rbug_screen.c \
+       driver_rbug/rbug_screen.h \
+       driver_trace/tr_context.c \
+       driver_trace/tr_context.h \
+       driver_trace/tr_dump.c \
+       driver_trace/tr_dump_defines.h \
+       driver_trace/tr_dump.h \
+       driver_trace/tr_dump_state.c \
+       driver_trace/tr_dump_state.h \
+       driver_trace/tr_public.h \
+       driver_trace/tr_screen.c \
+       driver_trace/tr_screen.h \
+       driver_trace/tr_texture.c \
+       driver_trace/tr_texture.h \
        hud/font.c \
        hud/font.h \
        hud/hud_context.c \
similarity index 96%
rename from src/gallium/drivers/trace/README
rename to src/gallium/auxiliary/driver_trace/README
index cacd2e1..fbad26c 100644 (file)
@@ -28,7 +28,7 @@ For long traces you can use the
 
 For remote debugging see:
 
-  src/gallium/drivers/rbug/README
+  src/gallium/auxiliary/driver_rbug/README
 
 
 = Integrating =
index 53c8504..92cfb8f 100644 (file)
@@ -77,6 +77,35 @@ files_libgallium = files(
   'draw/draw_vs_exec.c',
   'draw/draw_vs.h',
   'draw/draw_vs_variant.c',
+  'driver_ddebug/dd_context.c',
+  'driver_ddebug/dd_draw.c',
+  'driver_ddebug/dd_pipe.h',
+  'driver_ddebug/dd_public.h',
+  'driver_ddebug/dd_screen.c',
+  'driver_ddebug/dd_util.h',
+  'driver_noop/noop_pipe.c',
+  'driver_noop/noop_public.h',
+  'driver_noop/noop_state.c',
+  'driver_rbug/rbug_context.c',
+  'driver_rbug/rbug_context.h',
+  'driver_rbug/rbug_core.c',
+  'driver_rbug/rbug_objects.c',
+  'driver_rbug/rbug_objects.h',
+  'driver_rbug/rbug_public.h',
+  'driver_rbug/rbug_screen.c',
+  'driver_rbug/rbug_screen.h',
+  'driver_trace/tr_context.c',
+  'driver_trace/tr_context.h',
+  'driver_trace/tr_dump.c',
+  'driver_trace/tr_dump_defines.h',
+  'driver_trace/tr_dump.h',
+  'driver_trace/tr_dump_state.c',
+  'driver_trace/tr_dump_state.h',
+  'driver_trace/tr_public.h',
+  'driver_trace/tr_screen.c',
+  'driver_trace/tr_screen.h',
+  'driver_trace/tr_texture.c',
+  'driver_trace/tr_texture.h',
   'hud/font.c',
   'hud/font.h',
   'hud/hud_context.c',
index c515643..0c41c8c 100644 (file)
@@ -10,7 +10,7 @@ The code currently uses tcp and ip4v for connections.
 
 Information about driver integration can be found in:
 
-src/gallium/drivers/rbug/README
+src/gallium/auxiliary/driver_rbug/README
 
 for information about applications look in:
 
index 2443bf2..66d46de 100644 (file)
@@ -8,24 +8,13 @@
 
 
 /* Helper function to wrap a screen with
- * one or more debug driver: rbug, trace.
+ * one or more debug drivers.
  */
 
-#ifdef GALLIUM_DDEBUG
-#include "ddebug/dd_public.h"
-#endif
-
-#ifdef GALLIUM_TRACE
-#include "trace/tr_public.h"
-#endif
-
-#ifdef GALLIUM_RBUG
-#include "rbug/rbug_public.h"
-#endif
-
-#ifdef GALLIUM_NOOP
-#include "noop/noop_public.h"
-#endif
+#include "driver_ddebug/dd_public.h"
+#include "driver_trace/tr_public.h"
+#include "driver_rbug/rbug_public.h"
+#include "driver_noop/noop_public.h"
 
 /*
  * TODO: Audit the following *screen_create() - all of
 static inline struct pipe_screen *
 debug_screen_wrap(struct pipe_screen *screen)
 {
-#if defined(GALLIUM_DDEBUG)
    screen = ddebug_screen_create(screen);
-#endif
-
-#if defined(GALLIUM_RBUG)
    screen = rbug_screen_create(screen);
-#endif
-
-#if defined(GALLIUM_TRACE)
    screen = trace_screen_create(screen);
-#endif
-
-#if defined(GALLIUM_NOOP)
    screen = noop_screen_create(screen);
-#endif
 
    if (debug_get_bool_option("GALLIUM_TESTS", FALSE))
       util_run_tests(screen);
diff --git a/src/gallium/drivers/ddebug/Makefile.am b/src/gallium/drivers/ddebug/Makefile.am
deleted file mode 100644 (file)
index b36ea23..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-include Makefile.sources
-include $(top_srcdir)/src/gallium/Automake.inc
-
-AM_CFLAGS = \
-       $(GALLIUM_DRIVER_CFLAGS)
-
-noinst_LTLIBRARIES = libddebug.la
-
-libddebug_la_SOURCES = $(C_SOURCES)
-
-EXTRA_DIST = meson.build
diff --git a/src/gallium/drivers/ddebug/Makefile.sources b/src/gallium/drivers/ddebug/Makefile.sources
deleted file mode 100644 (file)
index 1bd3827..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-C_SOURCES := \
-       dd_context.c \
-       dd_draw.c \
-       dd_pipe.h \
-       dd_public.h \
-       dd_screen.c \
-       dd_util.h
diff --git a/src/gallium/drivers/ddebug/meson.build b/src/gallium/drivers/ddebug/meson.build
deleted file mode 100644 (file)
index 09ede3d..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright © 2017 Dylan Baker
-
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-# SOFTWARE.
-
-libddebug = static_library(
-  'ddebug',
-  files('dd_context.c', 'dd_draw.c', 'dd_pipe.h', 'dd_public.h', 'dd_screen.c',
-        'dd_util.h'),
-  c_args : [c_vis_args],
-  include_directories : [inc_gallium, inc_include, inc_src, inc_gallium_aux],
-  build_by_default : false,
-)
diff --git a/src/gallium/drivers/noop/Makefile.am b/src/gallium/drivers/noop/Makefile.am
deleted file mode 100644 (file)
index 1a4354e..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-################################################################################
-
-# Meta-driver which combines whichever software rasterizers have been
-# built into a single convenience library.
-
-include Makefile.sources
-include $(top_srcdir)/src/gallium/Automake.inc
-
-AM_CFLAGS = \
-       $(GALLIUM_DRIVER_CFLAGS)
-
-noinst_LTLIBRARIES = libnoop.la
-
-libnoop_la_SOURCES = $(C_SOURCES)
-
-EXTRA_DIST = SConscript meson.build
diff --git a/src/gallium/drivers/noop/Makefile.sources b/src/gallium/drivers/noop/Makefile.sources
deleted file mode 100644 (file)
index 6d42286..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-C_SOURCES := \
-       noop_pipe.c \
-       noop_public.h \
-       noop_state.c
diff --git a/src/gallium/drivers/noop/SConscript b/src/gallium/drivers/noop/SConscript
deleted file mode 100644 (file)
index 9cb2e29..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#######################################################################
-# SConscript for noop convenience library
-
-Import('*')
-
-env = env.Clone()
-
-noop = env.ConvenienceLibrary(
-       target = 'noop',
-       source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
-       ) + extra
-
-Export('noop')
diff --git a/src/gallium/drivers/noop/meson.build b/src/gallium/drivers/noop/meson.build
deleted file mode 100644 (file)
index c4bb150..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright © 2017 Dylan Baker
-
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-# SOFTWARE.
-
-libnoop = static_library(
-  'noop',
-  files('noop_pipe.c', 'noop_public.h', 'noop_state.c'),
-  c_args : [c_vis_args],
-  include_directories : [inc_gallium, inc_include, inc_src, inc_gallium_aux],
-  build_by_default : false,
-)
index 817a6d5..b7d40db 100644 (file)
@@ -27,7 +27,7 @@
 #include "sid.h"
 #include "gfx9d.h"
 #include "sid_tables.h"
-#include "ddebug/dd_util.h"
+#include "driver_ddebug/dd_util.h"
 #include "util/u_dump.h"
 #include "util/u_log.h"
 #include "util/u_memory.h"
index 4928e6f..466546b 100644 (file)
@@ -37,7 +37,7 @@
 #include "util/u_upload_mgr.h"
 #include "util/xmlconfig.h"
 #include "vl/vl_decoder.h"
-#include "../ddebug/dd_util.h"
+#include "driver_ddebug/dd_util.h"
 
 static const struct debug_named_value debug_options[] = {
        /* Shader logging options: */
diff --git a/src/gallium/drivers/rbug/Makefile.am b/src/gallium/drivers/rbug/Makefile.am
deleted file mode 100644 (file)
index c784d84..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright © 2012 Intel Corporation
-#
-# Permission is hereby granted, free of charge, to any person obtaining a
-# copy of this software and associated documentation files (the "Software"),
-# to deal in the Software without restriction, including without limitation
-# the rights to use, copy, modify, merge, publish, distribute, sublicense,
-# and/or sell copies of the Software, and to permit persons to whom the
-# Software is furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice (including the next
-# paragraph) shall be included in all copies or substantial portions of the
-# Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-# NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-# DEALINGS IN THE SOFTWARE.
-
-include Makefile.sources
-include $(top_srcdir)/src/gallium/Automake.inc
-
-AM_CFLAGS = \
-       $(GALLIUM_DRIVER_CFLAGS)
-
-noinst_LTLIBRARIES = librbug.la
-
-librbug_la_SOURCES = $(C_SOURCES)
-
-EXTRA_DIST = SConscript README meson.build
diff --git a/src/gallium/drivers/rbug/Makefile.sources b/src/gallium/drivers/rbug/Makefile.sources
deleted file mode 100644 (file)
index f9f1d5c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-C_SOURCES := \
-       rbug_context.c \
-       rbug_context.h \
-       rbug_core.c \
-       rbug_objects.c \
-       rbug_objects.h \
-       rbug_public.h \
-       rbug_screen.c \
-       rbug_screen.h
diff --git a/src/gallium/drivers/rbug/SConscript b/src/gallium/drivers/rbug/SConscript
deleted file mode 100644 (file)
index 63209ab..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-Import('*')
-
-env = env.Clone()
-
-rbug = env.ConvenienceLibrary(
-       target = 'rbug',
-       source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
-       )
-
-env.Alias('rbug', rbug)
-
-Export('rbug')
diff --git a/src/gallium/drivers/rbug/meson.build b/src/gallium/drivers/rbug/meson.build
deleted file mode 100644 (file)
index 9c74171..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright © 2017 Dylan Baker
-
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-# SOFTWARE.
-
-librbug = static_library(
-  'rbug',
-  files('rbug_context.c', 'rbug_context.h', 'rbug_core.c', 'rbug_objects.c',
-        'rbug_objects.h', 'rbug_public.h', 'rbug_screen.c', 'rbug_screen.h'),
-  include_directories : [inc_gallium, inc_gallium_aux, inc_include, inc_src],
-  c_args : [c_vis_args],
-  build_by_default : false,
-)
diff --git a/src/gallium/drivers/trace/Makefile.am b/src/gallium/drivers/trace/Makefile.am
deleted file mode 100644 (file)
index 9c834a6..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-include Makefile.sources
-include $(top_srcdir)/src/gallium/Automake.inc
-
-AM_CFLAGS = \
-       $(GALLIUM_DRIVER_CFLAGS) \
-       $(MSVC2013_COMPAT_CFLAGS)
-
-noinst_LTLIBRARIES = libtrace.la
-
-libtrace_la_SOURCES = $(C_SOURCES)
-
-EXTRA_DIST = SConscript \
-       README \
-       trace.xsl \
-       meson.build
diff --git a/src/gallium/drivers/trace/Makefile.sources b/src/gallium/drivers/trace/Makefile.sources
deleted file mode 100644 (file)
index 4c019a3..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-C_SOURCES := \
-       tr_context.c \
-       tr_context.h \
-       tr_dump.c \
-       tr_dump_defines.h \
-       tr_dump.h \
-       tr_dump_state.c \
-       tr_dump_state.h \
-       tr_public.h \
-       tr_screen.c \
-       tr_screen.h \
-       tr_texture.c \
-       tr_texture.h
diff --git a/src/gallium/drivers/trace/SConscript b/src/gallium/drivers/trace/SConscript
deleted file mode 100644 (file)
index 7397983..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-Import('*')
-
-env = env.Clone()
-
-env.MSVC2013Compat()
-
-trace = env.ConvenienceLibrary(
-    target = 'trace',
-    source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
-    )
-
-env.Alias('trace', trace)
-
-Export('trace')
diff --git a/src/gallium/drivers/trace/meson.build b/src/gallium/drivers/trace/meson.build
deleted file mode 100644 (file)
index 4fc5d8b..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright © 2017 Dylan Baker
-
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-# SOFTWARE.
-
-libtrace = static_library(
-  'trace',
-  files('tr_context.c', 'tr_context.h', 'tr_dump.c', 'tr_dump_defines.h',
-        'tr_dump.h', 'tr_dump_state.c', 'tr_dump_state.h', 'tr_public.h',
-        'tr_screen.c', 'tr_screen.h', 'tr_texture.c', 'tr_texture.h'),
-  c_args : [c_msvc_compat_args, c_vis_args],
-  include_directories : [inc_gallium, inc_gallium_aux, inc_include, inc_src],
-  build_by_default : false,
-)
index 6822511..c4dd8e1 100644 (file)
@@ -24,10 +24,6 @@ inc_gallium_winsys = include_directories('winsys')
 
 subdir('auxiliary')
 subdir('auxiliary/pipe-loader')
-subdir('drivers/ddebug')
-subdir('drivers/noop')
-subdir('drivers/trace')
-subdir('drivers/rbug')
 subdir('winsys/sw/null')
 if with_dri
   subdir('winsys/sw/dri')
index e5f2a5e..05e3ca0 100644 (file)
@@ -33,8 +33,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/gallium/winsys \
        -I$(top_srcdir)/src/gallium/state_trackers/glx/xlib \
        -I$(top_srcdir)/src/gallium/auxiliary \
-       -DGALLIUM_SOFTPIPE \
-       -DGALLIUM_TRACE
+       -DGALLIUM_SOFTPIPE
 
 noinst_LTLIBRARIES = libosmesa.la
 
index dacf105..912a622 100644 (file)
@@ -21,7 +21,7 @@
 libosmesa_st = static_library(
   'osmesa_st',
   'osmesa.c',
-  c_args : ['-DGALLIUM_SOFTPIPE', '-DGALLIUM_TRACE'],
+  c_args : ['-DGALLIUM_SOFTPIPE'],
   include_directories : [
     inc_include, inc_src, inc_gallium, inc_gallium_aux, inc_mapi, inc_mesa,
   ],
index c2aae0c..69cebbc 100644 (file)
@@ -35,10 +35,7 @@ AM_CFLAGS = \
        $(VISIBILITY_CFLAGS)
 
 AM_CPPFLAGS = \
-       $(DEFINES) \
-       -DGALLIUM_DDEBUG \
-       -DGALLIUM_RBUG \
-       -DGALLIUM_TRACE
+       $(DEFINES)
 
 ninedir = $(D3D_DRIVER_INSTALL_DIR)
 nine_LTLIBRARIES = d3dadapter9.la
@@ -70,9 +67,6 @@ d3dadapter9_la_LIBADD = \
        $(top_builddir)/src/gallium/auxiliary/libgallium.la \
        $(top_builddir)/src/gallium/state_trackers/nine/libninetracker.la \
        $(top_builddir)/src/util/libmesautil.la \
-       $(top_builddir)/src/gallium/drivers/ddebug/libddebug.la \
-       $(top_builddir)/src/gallium/drivers/rbug/librbug.la \
-       $(top_builddir)/src/gallium/drivers/trace/libtrace.la \
        $(EXPAT_LIBS) \
        $(GALLIUM_COMMON_LIB_DEPS)
 
index 2cdc0e0..bd05b4f 100644 (file)
 
 nine_version = ['1', '0', '0']
 
-gallium_nine_c_args = [
-  '-DGALLIUM_DDEBUG',
-  '-DGALLIUM_RBUG',
-  '-DGALLIUME_TRACE',
-]
+gallium_nine_c_args = []
 gallium_nine_ld_args = []
 gallium_nine_link_depends = []
 
@@ -52,8 +48,8 @@ libgallium_nine = shared_library(
   link_args : [ld_args_gc_sections, gallium_nine_ld_args],
   link_depends : gallium_nine_link_depends,
   link_with : [
-    libgalliumvl_stub, libgallium, libnine_st, libmesa_util, libddebug,
-    librbug, libtrace, libpipe_loader_static, libws_null, libwsw, libswdri,
+    libgalliumvl_stub, libgallium, libnine_st, libmesa_util,
+    libpipe_loader_static, libws_null, libwsw, libswdri,
     libswkmsdri,
   ],
   dependencies : [
index c6a4c21..a0778b6 100644 (file)
@@ -9,11 +9,7 @@ AM_CFLAGS = \
        $(GALLIUM_TARGET_CFLAGS)
 
 AM_CPPFLAGS = \
-       $(DEFINES) \
-        -DGALLIUM_DDEBUG \
-       -DGALLIUM_NOOP \
-       -DGALLIUM_RBUG \
-       -DGALLIUM_TRACE
+       $(DEFINES)
 
 dridir = $(DRI_DRIVER_INSTALL_DIR)
 dri_LTLIBRARIES = gallium_dri.la
@@ -47,10 +43,6 @@ gallium_dri_la_LIBADD = \
        $(top_builddir)/src/gallium/state_trackers/dri/libdri.la \
        $(top_builddir)/src/gallium/auxiliary/libgalliumvl.la \
        $(top_builddir)/src/gallium/auxiliary/libgallium.la \
-        $(top_builddir)/src/gallium/drivers/ddebug/libddebug.la \
-       $(top_builddir)/src/gallium/drivers/noop/libnoop.la \
-       $(top_builddir)/src/gallium/drivers/rbug/librbug.la \
-       $(top_builddir)/src/gallium/drivers/trace/libtrace.la \
        $(top_builddir)/src/mapi/shared-glapi/libglapi.la \
        $(LIBDRM_LIBS) \
        $(SELINUX_LIBS) \
index ff6ce3b..69cce3e 100644 (file)
@@ -14,13 +14,6 @@ env.Append(CPPPATH = [
     '#/src/gallium/state_trackers/dri',
 ])
 
-if env['build'] == 'release':
-    env.Append(CPPDEFINES = ['GALLIUM_RBUG'])
-    env.Prepend(LIBS = [rbug])
-else:
-    env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_RBUG'])
-    env.Prepend(LIBS = [trace, rbug])
-
 if env['llvm']:
     env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
     env.Prepend(LIBS = [llvmpipe])
index 3440297..bdbd458 100644 (file)
 # Static targets are always enabled in autotools (unless you modify
 # configure.ac)
 
-gallium_dri_c_args = [
-  '-DGALLIUM_DDEBUG',
-  '-DGALLIUM_NOOP',
-  '-DGALLIUM_RBUG',
-  '-DGALLIUME_TRACE',
-]
+gallium_dri_c_args = []
 gallium_dri_ld_args = []
 gallium_dri_link_depends = []
 gallium_dri_drivers = []
@@ -55,8 +50,8 @@ libgallium_dri = shared_library(
   link_depends : gallium_dri_link_depends,
   link_with : [
     libmesa_gallium, libdricommon, libmegadriver_stub, libdri, libgalliumvl,
-    libgallium, libddebug, libnoop, librbug, libtrace, libglapi,
-    libpipe_loader_static, libws_null, libwsw, libswdri, libswkmsdri,
+    libgallium, libglapi, libpipe_loader_static, libws_null, libwsw, libswdri,
+    libswkmsdri,
   ],
   dependencies : [
     dep_selinux, dep_expat, dep_libdrm, dep_llvm, dep_thread,
index 67d4373..e59127c 100644 (file)
@@ -23,8 +23,8 @@ sources = [
 ]
 
 if True:
-    env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_RBUG', 'GALLIUM_SOFTPIPE'])
-    env.Prepend(LIBS = [trace, rbug, softpipe])
+    env.Append(CPPDEFINES = ['GALLIUM_SOFTPIPE'])
+    env.Prepend(LIBS = [softpipe])
 
 if env['llvm']:
     env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
index bf9cf72..3c6a856 100644 (file)
@@ -20,16 +20,14 @@ env.Append(CPPPATH = [
     '#src/gallium/winsys',
 ])
 
-env.Append(CPPDEFINES = ['GALLIUM_RBUG', 'GALLIUM_TRACE'])
-
 sources = [
     'graw_xlib.c',
     graw_util
 ]
 
 if True:
-    env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_RBUG', 'GALLIUM_SOFTPIPE'])
-    env.Prepend(LIBS = [trace, rbug, softpipe])
+    env.Append(CPPDEFINES = ['GALLIUM_SOFTPIPE'])
+    env.Prepend(LIBS = [softpipe])
 
 if env['llvm']:
     env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
index 89792fb..ff5adc1 100644 (file)
@@ -3,8 +3,6 @@ Import('*')
 env.Prepend(LIBS = [
     ws_haiku,
     st_haiku,
-    trace,
-    rbug,
     mesautil,
     compiler,
     mesa,
@@ -17,8 +15,6 @@ env.Prepend(LIBS = [
 if True:
     env.Append(CPPDEFINES = [
         'GALLIUM_SOFTPIPE',
-        'GALLIUM_RBUG',
-        'GALLIUM_TRACE',
     ])
     env.Prepend(LIBS = [softpipe])
 
index 84bcea4..619706d 100644 (file)
@@ -30,7 +30,7 @@ libswpipe = shared_library(
   cpp_args : [cpp_vis_args],
   link_args : [ld_args_bsymbolic, ld_args_gc_sections],
   link_with : [
-    libglapi, libswhgl, libsthgl, libtrace, librbug, libmesa_util, libcompiler,
+    libglapi, libswhgl, libsthgl, libmesa_util, libcompiler,
     libmesa_gallium, libglsl, libnir, libgallium, libgl
   ],
   dependencies : [
index b5ba0fa..a8bdc3e 100644 (file)
@@ -45,8 +45,6 @@ if env['gcc'] and env['machine'] != 'x86_64':
 else:
     sources += ['#src/gallium/state_trackers/wgl/opengl32.def']
 
-drivers += [trace, rbug]
-
 env['no_import_lib'] = 1
 
 # when GLES is enabled, gl* and _glapi_* belong to bridge_glapi and
index 1c62294..56d548e 100644 (file)
@@ -35,9 +35,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/gallium/state_trackers/glx/xlib \
        -I$(top_srcdir)/src/gallium/auxiliary \
        -I$(top_srcdir)/src/gallium/winsys \
-       -DGALLIUM_SOFTPIPE \
-       -DGALLIUM_RBUG \
-       -DGALLIUM_TRACE
+       -DGALLIUM_SOFTPIPE
 
 AM_CFLAGS = $(X11_INCLUDES)
 
@@ -61,8 +59,6 @@ lib@GL_LIB@_la_LIBADD = \
        $(top_builddir)/src/gallium/state_trackers/glx/xlib/libxlib.la \
        $(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \
        $(top_builddir)/src/gallium/drivers/softpipe/libsoftpipe.la \
-       $(top_builddir)/src/gallium/drivers/trace/libtrace.la \
-       $(top_builddir)/src/gallium/drivers/rbug/librbug.la \
        $(top_builddir)/src/mapi/glapi/libglapi.la \
        $(top_builddir)/src/mesa/libmesagallium.la \
        $(top_builddir)/src/gallium/auxiliary/libgallium.la \
index b94ef35..fb7a0ce 100644 (file)
@@ -42,8 +42,8 @@ sources = [
 ]
 
 if True:
-    env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_RBUG', 'GALLIUM_SOFTPIPE'])
-    env.Prepend(LIBS = [trace, rbug, softpipe])
+    env.Append(CPPDEFINES = ['GALLIUM_SOFTPIPE'])
+    env.Prepend(LIBS = [softpipe])
 
 if env['llvm']:
     env.Append(CPPDEFINES = ['GALLIUM_LLVMPIPE'])
index 6884c82..3d197ba 100644 (file)
@@ -24,8 +24,6 @@
 
 gallium_xlib_c_args = [
   '-DGALLIUM_SOFTPIPE',
-  '-DGALLIUM_RBUG',
-  '-DGALLIUME_TRACE',
 ]
 gallium_xlib_ld_args = []
 gallium_xlib_link_with = []
@@ -50,7 +48,7 @@ libgl = shared_library(
   link_args : [ld_args_bsymbolic, ld_args_gc_sections, gallium_xlib_ld_args],
   link_depends : gallium_xlib_link_depends,
   link_with : [
-    libxlib, libws_xlib, libtrace, librbug, libglapi_static,
+    libxlib, libws_xlib, libglapi_static,
     libgallium, libmesa_util, libmesa_gallium, gallium_xlib_link_with,
   ],
   dependencies : [dep_thread, dep_clock, dep_unwind, driver_swrast, driver_swr],
index f8bee5e..dc4d49e 100644 (file)
@@ -33,8 +33,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/gallium/drivers \
        -I$(top_srcdir)/src/gallium/winsys \
        -I$(top_srcdir)/src/gallium/auxiliary \
-       -DGALLIUM_SOFTPIPE \
-       -DGALLIUM_TRACE
+       -DGALLIUM_SOFTPIPE
 
 lib_LTLIBRARIES = lib@OSMESA_LIB@.la
 
@@ -60,7 +59,6 @@ lib@OSMESA_LIB@_la_LIBADD = \
        $(top_builddir)/src/mesa/libmesagallium.la \
        $(top_builddir)/src/gallium/auxiliary/libgallium.la \
        $(top_builddir)/src/gallium/winsys/sw/null/libws_null.la \
-       $(top_builddir)/src/gallium/drivers/trace/libtrace.la \
        $(top_builddir)/src/gallium/drivers/softpipe/libsoftpipe.la \
        $(top_builddir)/src/gallium/state_trackers/osmesa/libosmesa.la \
        $(top_builddir)/src/mapi/glapi/libglapi.la \
index ccf7d51..f49f1fe 100644 (file)
@@ -15,7 +15,6 @@ env.Prepend(LIBS = [
     compiler,
     mesa,
     gallium,
-    trace,
     glsl,
     nir,
     spirv,
@@ -23,7 +22,7 @@ env.Prepend(LIBS = [
     softpipe
 ])
 
-env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_SOFTPIPE'])
+env.Append(CPPDEFINES = ['GALLIUM_SOFTPIPE'])
 
 sources = ['target.c']
 
index e51c54f..b4ae8f4 100644 (file)
@@ -35,7 +35,7 @@ endif
 libosmesa = shared_library(
   osmesa_lib_name,
   'target.c',
-  c_args : [c_vis_args, '-DGALLIUM_TRACE'],
+  c_args : [c_vis_args],
   cpp_args : cpp_vis_args,
   link_args : [ld_args_gc_sections, osmesa_link_args],
   include_directories : [
@@ -45,8 +45,7 @@ libosmesa = shared_library(
   link_depends : osmesa_link_deps,
   link_whole : [libosmesa_st],
   link_with : [
-    libmesa_gallium, libgallium, libglapi_static, libws_null, libtrace,
-    osmesa_link_with,
+    libmesa_gallium, libgallium, libglapi_static, libws_null, osmesa_link_with,
   ],
   dependencies : [
     dep_selinux, dep_thread, dep_clock, dep_unwind,
index bddc4e8..fa16e85 100644 (file)
@@ -31,9 +31,7 @@ AM_CPPFLAGS = \
        -I$(top_builddir)/src/util \
        $(GALLIUM_PIPE_LOADER_DEFINES) \
        $(LIBDRM_CFLAGS) \
-       $(VISIBILITY_CFLAGS) \
-       -DGALLIUM_RBUG \
-       -DGALLIUM_TRACE
+       $(VISIBILITY_CFLAGS)
 
 pipedir = $(libdir)/gallium-pipe
 pipe_LTLIBRARIES =
@@ -57,8 +55,6 @@ PIPE_LIBS += \
        $(top_builddir)/src/gallium/auxiliary/libgallium.la \
        $(top_builddir)/src/compiler/nir/libnir.la \
        $(top_builddir)/src/util/libmesautil.la \
-       $(top_builddir)/src/gallium/drivers/rbug/librbug.la \
-       $(top_builddir)/src/gallium/drivers/trace/libtrace.la \
        $(GALLIUM_COMMON_LIB_DEPS)
 
 AM_LDFLAGS = \
index 7466d98..5a44102 100644 (file)
@@ -20,8 +20,8 @@
 
 pipe_loader_link_args = [ld_args_gc_sections]
 pipe_loader_link_deps = []
-pipe_loader_link_with = [libgallium, libnir, libmesa_util, librbug, libtrace]
-pipe_loader_comp_args = ['-DGALLIUM_RBUG', '-DGALLIUM_TRACE']
+pipe_loader_link_with = [libgallium, libnir, libmesa_util]
+pipe_loader_comp_args = []
 pipe_loader_incs = [
   inc_include, inc_src, inc_util, inc_gallium, inc_gallium_drivers,
   inc_gallium_winsys, inc_gallium_aux,
index c9bede7..9f1d3b9 100644 (file)
@@ -14,7 +14,6 @@ AM_CPPFLAGS = \
 LDADD = \
        $(top_builddir)/src/gallium/auxiliary/libgallium.la \
        $(top_builddir)/src/util/libmesautil.la \
-       $(top_builddir)/src/gallium/drivers/trace/libtrace.la \
        $(top_builddir)/src/gallium/winsys/sw/null/libws_null.la \
        $(top_builddir)/src/gallium/drivers/softpipe/libsoftpipe.la \
        $(GALLIUM_COMMON_LIB_DEPS)