gallium/swr: Remove common code and build options
This commit removes all OpenSWR references from common Mesa code and build system. Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11264>
This commit is contained in:
@@ -8,10 +8,6 @@
|
||||
#include "frontend/sw_winsys.h"
|
||||
#include "target-helpers/inline_debug_helper.h"
|
||||
|
||||
#ifdef GALLIUM_SWR
|
||||
#include "swr/swr_public.h"
|
||||
#endif
|
||||
|
||||
/* Helper function to choose and instantiate one of the software rasterizers:
|
||||
* llvmpipe, softpipe.
|
||||
*/
|
||||
@@ -60,11 +56,6 @@ sw_screen_create_named(struct sw_winsys *winsys, const char *driver)
|
||||
screen = softpipe_create_screen(winsys);
|
||||
#endif
|
||||
|
||||
#if defined(GALLIUM_SWR)
|
||||
if (screen == NULL && strcmp(driver, "swr") == 0)
|
||||
screen = swr_create_screen(winsys);
|
||||
#endif
|
||||
|
||||
#if defined(GALLIUM_ZINK)
|
||||
if (screen == NULL && strcmp(driver, "zink") == 0)
|
||||
screen = zink_create_screen(winsys);
|
||||
@@ -102,9 +93,6 @@ sw_screen_create_vk(struct sw_winsys *winsys, bool sw_vk)
|
||||
#if defined(GALLIUM_SOFTPIPE)
|
||||
(sw_vk ? "" : "softpipe"),
|
||||
#endif
|
||||
#if defined(GALLIUM_SWR)
|
||||
(sw_vk ? "" : "swr"),
|
||||
#endif
|
||||
#if defined(GALLIUM_ZINK)
|
||||
(sw_vk || only_sw) ? "" : "zink",
|
||||
#endif
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
/* Helper function to choose and instantiate one of the software rasterizers:
|
||||
* llvmpipe, softpipe, swr.
|
||||
* llvmpipe, softpipe.
|
||||
*/
|
||||
|
||||
#ifdef GALLIUM_ZINK
|
||||
@@ -33,10 +33,6 @@
|
||||
#include "llvmpipe/lp_public.h"
|
||||
#endif
|
||||
|
||||
#ifdef GALLIUM_SWR
|
||||
#include "swr/swr_public.h"
|
||||
#endif
|
||||
|
||||
#ifdef GALLIUM_VIRGL
|
||||
#include "virgl/virgl_public.h"
|
||||
#include "virgl/vtest/virgl_vtest_public.h"
|
||||
@@ -65,11 +61,6 @@ sw_screen_create_named(struct sw_winsys *winsys, const char *driver)
|
||||
screen = softpipe_create_screen(winsys);
|
||||
#endif
|
||||
|
||||
#if defined(GALLIUM_SWR)
|
||||
if (screen == NULL && strcmp(driver, "swr") == 0)
|
||||
screen = swr_create_screen(winsys);
|
||||
#endif
|
||||
|
||||
#if defined(GALLIUM_ZINK)
|
||||
if (screen == NULL && strcmp(driver, "zink") == 0)
|
||||
screen = zink_create_screen(winsys);
|
||||
@@ -106,9 +97,6 @@ sw_screen_create_vk(struct sw_winsys *winsys, bool sw_vk)
|
||||
#if defined(GALLIUM_SOFTPIPE)
|
||||
sw_vk ? "" : "softpipe",
|
||||
#endif
|
||||
#if defined(GALLIUM_SWR)
|
||||
sw_vk ? "" : "swr",
|
||||
#endif
|
||||
#if defined(GALLIUM_ZINK)
|
||||
(sw_vk || only_sw) ? "" : "zink",
|
||||
#endif
|
||||
|
||||
@@ -45,11 +45,6 @@ subdir('winsys/sw/wrapper')
|
||||
if with_platform_haiku
|
||||
subdir('winsys/sw/hgl')
|
||||
endif
|
||||
if with_gallium_swr
|
||||
subdir('drivers/swr')
|
||||
else
|
||||
driver_swr = declare_dependency()
|
||||
endif
|
||||
if with_gallium_softpipe
|
||||
subdir('drivers/softpipe')
|
||||
if draw_with_llvm
|
||||
|
||||
@@ -57,7 +57,7 @@ libgallium_dri = shared_library(
|
||||
driver_swrast, driver_r300, driver_r600, driver_radeonsi, driver_nouveau,
|
||||
driver_kmsro, driver_v3d, driver_vc4, driver_freedreno, driver_etnaviv,
|
||||
driver_tegra, driver_i915, driver_svga, driver_virgl,
|
||||
driver_swr, driver_panfrost, driver_iris, driver_lima, driver_zink, driver_d3d12,
|
||||
driver_panfrost, driver_iris, driver_lima, driver_zink, driver_d3d12,
|
||||
driver_asahi, driver_crocus
|
||||
],
|
||||
# Will be deleted during installation, see install_megadrivers.py
|
||||
@@ -93,7 +93,7 @@ foreach d : [[with_gallium_kmsro, [
|
||||
[with_gallium_radeonsi, 'radeonsi_dri.so'],
|
||||
[with_gallium_nouveau, 'nouveau_dri.so'],
|
||||
[with_gallium_freedreno, ['msm_dri.so', 'kgsl_dri.so']],
|
||||
[with_gallium_softpipe or with_gallium_swr, 'swrast_dri.so'],
|
||||
[with_gallium_softpipe, 'swrast_dri.so'],
|
||||
[with_gallium_softpipe and with_gallium_drisw_kms, 'kms_swrast_dri.so'],
|
||||
[with_gallium_v3d, 'v3d_dri.so'],
|
||||
[with_gallium_vc4, 'vc4_dri.so'],
|
||||
|
||||
@@ -52,7 +52,7 @@ libgl = shared_library(
|
||||
libxlib, libws_xlib, libglapi_static,
|
||||
libgallium, libmesa, gallium_xlib_link_with,
|
||||
],
|
||||
dependencies : [dep_x11, dep_thread, dep_clock, dep_unwind, driver_swrast, driver_swr, driver_virgl, driver_asahi],
|
||||
dependencies : [dep_x11, dep_thread, dep_clock, dep_unwind, driver_swrast, driver_virgl, driver_asahi],
|
||||
install : true,
|
||||
version : '1.5.0',
|
||||
darwin_versions: '4.0.0',
|
||||
|
||||
@@ -54,8 +54,7 @@ libosmesa = shared_library(
|
||||
libmesa, libgallium, libws_null, osmesa_link_with,
|
||||
],
|
||||
dependencies : [
|
||||
dep_ws2_32, dep_selinux, dep_thread, dep_clock, dep_unwind,
|
||||
driver_swrast, driver_swr,
|
||||
dep_ws2_32, dep_selinux, dep_thread, dep_clock, dep_unwind, driver_swrast
|
||||
],
|
||||
name_prefix : host_machine.system() == 'windows' ? '' : 'lib', # otherwise mingw will create libosmesa.dll
|
||||
soversion : host_machine.system() == 'windows' ? '' : '8',
|
||||
|
||||
@@ -67,7 +67,7 @@ pipe_loaders = [
|
||||
[with_gallium_freedreno, 'msm', driver_freedreno, []],
|
||||
[with_gallium_kmsro, 'kmsro', _kmsro_targets, []],
|
||||
[with_gallium_svga, 'vmwgfx', driver_svga, []],
|
||||
[with_gallium_softpipe, 'swrast', [driver_swrast, driver_swr], [libwsw, libws_null]],
|
||||
[with_gallium_softpipe, 'swrast', driver_swrast, [libwsw, libws_null]],
|
||||
]
|
||||
|
||||
foreach x : pipe_loaders
|
||||
|
||||
@@ -56,9 +56,6 @@
|
||||
#include "llvmpipe/lp_public.h"
|
||||
#endif
|
||||
|
||||
#ifdef GALLIUM_SWR
|
||||
#include "swr/swr_public.h"
|
||||
#endif
|
||||
#ifdef GALLIUM_D3D12
|
||||
#include "d3d12/wgl/d3d12_wgl_public.h"
|
||||
#endif
|
||||
@@ -70,9 +67,6 @@
|
||||
#ifdef GALLIUM_LLVMPIPE
|
||||
static boolean use_llvmpipe = FALSE;
|
||||
#endif
|
||||
#ifdef GALLIUM_SWR
|
||||
static boolean use_swr = FALSE;
|
||||
#endif
|
||||
#ifdef GALLIUM_D3D12
|
||||
static boolean use_d3d12 = FALSE;
|
||||
#endif
|
||||
@@ -94,13 +88,6 @@ wgl_screen_create_by_name(HDC hDC, const char* driver, struct sw_winsys *winsys)
|
||||
use_llvmpipe = TRUE;
|
||||
}
|
||||
#endif
|
||||
#ifdef GALLIUM_SWR
|
||||
if (strcmp(driver, "swr") == 0) {
|
||||
screen = swr_create_screen(winsys);
|
||||
if (screen)
|
||||
use_swr = TRUE;
|
||||
}
|
||||
#endif
|
||||
#ifdef GALLIUM_D3D12
|
||||
if (strcmp(driver, "d3d12") == 0) {
|
||||
screen = d3d12_wgl_create_screen(winsys, hDC);
|
||||
@@ -142,14 +129,11 @@ wgl_screen_create(HDC hDC)
|
||||
#if defined(GALLIUM_LLVMPIPE)
|
||||
"llvmpipe",
|
||||
#endif
|
||||
#if GALLIUM_SWR
|
||||
"swr",
|
||||
#endif
|
||||
#if defined(GALLIUM_SOFTPIPE)
|
||||
"softpipe",
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
/* If the default driver screen creation fails, fall back to the next option in the
|
||||
* sorted list. Don't do this if GALLIUM_DRIVER is specified.
|
||||
*/
|
||||
@@ -196,13 +180,6 @@ wgl_present(struct pipe_screen *screen,
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef GALLIUM_SWR
|
||||
if (use_swr) {
|
||||
swr_gdi_swap(screen, ctx, res, hDC);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef GALLIUM_D3D12
|
||||
if (use_d3d12) {
|
||||
d3d12_wgl_present(screen, ctx, res, hDC);
|
||||
|
||||
Reference in New Issue
Block a user