Changeset View
Changeset View
Standalone View
Standalone View
files/wine-d3d9.patch
| From 8b1866b25006b99b2c5823f3f25aea3b426fd5b2 Mon Sep 17 00:00:00 2001 | From b735ed6c096569575dd0c62aeeeb2a6bb6979339 Mon Sep 17 00:00:00 2001 | ||||
| From: Nick Sarnie <sarnex@gentoo.org> | From: Nick Sarnie <sarnex@gentoo.org> | ||||
| Date: Mon, 11 Jun 2018 21:08:25 -0400 | Date: Sun, 24 Jun 2018 13:53:17 -0400 | ||||
| Subject: [PATCH] Wine D3D9 | Subject: [PATCH] Wine D3D9 | ||||
| Signed-off-by: Nick Sarnie <sarnex@gentoo.org> | Signed-off-by: Nick Sarnie <sarnex@gentoo.org> | ||||
| --- | --- | ||||
| configure.ac | 188 ++++ | configure.ac | 188 ++++ | ||||
| dlls/d3d9-nine/Makefile.in | 15 + | dlls/d3d9-nine/Makefile.in | 15 + | ||||
| dlls/d3d9-nine/d3d9-nine.spec | 14 + | dlls/d3d9-nine/d3d9-nine.spec | 14 + | ||||
| dlls/d3d9-nine/d3d9_main.c | 173 +++ | dlls/d3d9-nine/d3d9_main.c | 173 +++ | ||||
| Show All 24 Lines | |||||
| create mode 100644 dlls/d3d9-nine/present.h | create mode 100644 dlls/d3d9-nine/present.h | ||||
| create mode 100644 dlls/d3d9-nine/shader_validator.c | create mode 100644 dlls/d3d9-nine/shader_validator.c | ||||
| create mode 100644 dlls/d3d9-nine/shader_validator.h | create mode 100644 dlls/d3d9-nine/shader_validator.h | ||||
| create mode 100644 dlls/d3d9-nine/version.rc | create mode 100644 dlls/d3d9-nine/version.rc | ||||
| create mode 100644 dlls/d3d9-nine/wndproc.c | create mode 100644 dlls/d3d9-nine/wndproc.c | ||||
| create mode 100644 dlls/d3d9-nine/wndproc.h | create mode 100644 dlls/d3d9-nine/wndproc.h | ||||
| diff --git a/configure.ac b/configure.ac | diff --git a/configure.ac b/configure.ac | ||||
| index 2929bd6323..e374796191 100644 | index e8dc9f2694..4a29c72224 100644 | ||||
| --- a/configure.ac | --- a/configure.ac | ||||
| +++ b/configure.ac | +++ b/configure.ac | ||||
| @@ -69,6 +69,14 @@ AC_ARG_WITH(openal, AS_HELP_STRING([--without-openal],[do not use OpenAL]), | @@ -69,6 +69,14 @@ AC_ARG_WITH(openal, AS_HELP_STRING([--without-openal],[do not use OpenAL]), | ||||
| AC_ARG_WITH(opencl, AS_HELP_STRING([--without-opencl],[do not use OpenCL]), | AC_ARG_WITH(opencl, AS_HELP_STRING([--without-opencl],[do not use OpenCL]), | ||||
| [if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi]) | [if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi]) | ||||
| AC_ARG_WITH(opengl, AS_HELP_STRING([--without-opengl],[do not use OpenGL])) | AC_ARG_WITH(opengl, AS_HELP_STRING([--without-opengl],[do not use OpenGL])) | ||||
| +AC_ARG_WITH(d3d9-nine, AS_HELP_STRING([--without-d3d9-nine],[do not build d3d9-nine.dll (Gallium Nine support)]), | +AC_ARG_WITH(d3d9-nine, AS_HELP_STRING([--without-d3d9-nine],[do not build d3d9-nine.dll (Gallium Nine support)]), | ||||
| + [], [with_d3d9_nine=auto]) | + [], [with_d3d9_nine=auto]) | ||||
| ▲ Show 20 Lines • Show All 194 Lines • ▼ Show 20 Lines | |||||
| + AC_DEFINE(D3D9NINE_DRI2, 1, [Whether d3d9-nine DRI2 fallback is compiled]) | + AC_DEFINE(D3D9NINE_DRI2, 1, [Whether d3d9-nine DRI2 fallback is compiled]) | ||||
| + else | + else | ||||
| + enable_d3d9_nine=${enable_d3d9_nine:-no} | + enable_d3d9_nine=${enable_d3d9_nine:-no} | ||||
| + fi | + fi | ||||
| + | + | ||||
| CPPFLAGS="$ac_save_CPPFLAGS" | CPPFLAGS="$ac_save_CPPFLAGS" | ||||
| else | else | ||||
| X_CFLAGS="" | X_CFLAGS="" | ||||
| @@ -3219,6 +3406,7 @@ WINE_CONFIG_MAKEFILE(dlls/d3d8) | @@ -3216,6 +3403,7 @@ WINE_CONFIG_MAKEFILE(dlls/d3d8) | ||||
| WINE_CONFIG_MAKEFILE(dlls/d3d8/tests) | WINE_CONFIG_MAKEFILE(dlls/d3d8/tests) | ||||
| WINE_CONFIG_MAKEFILE(dlls/d3d9) | WINE_CONFIG_MAKEFILE(dlls/d3d9) | ||||
| WINE_CONFIG_MAKEFILE(dlls/d3d9/tests) | WINE_CONFIG_MAKEFILE(dlls/d3d9/tests) | ||||
| +WINE_CONFIG_MAKEFILE(dlls/d3d9-nine) | +WINE_CONFIG_MAKEFILE(dlls/d3d9-nine) | ||||
| WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_33) | WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_33) | ||||
| WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_34) | WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_34) | ||||
| WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_35) | WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_35) | ||||
| diff --git a/dlls/d3d9-nine/Makefile.in b/dlls/d3d9-nine/Makefile.in | diff --git a/dlls/d3d9-nine/Makefile.in b/dlls/d3d9-nine/Makefile.in | ||||
| ▲ Show 20 Lines • Show All 5,512 Lines • ▼ Show 20 Lines | |||||
| + | + | ||||
| +LRESULT device_process_message(struct DRI3Present *present, HWND window, BOOL unicode, | +LRESULT device_process_message(struct DRI3Present *present, HWND window, BOOL unicode, | ||||
| + UINT message, WPARAM wparam, LPARAM lparam, WNDPROC proc); | + UINT message, WPARAM wparam, LPARAM lparam, WNDPROC proc); | ||||
| + | + | ||||
| +#define NINE_WINDOW_CLASS_NAME "Gallium_Nine_Window" | +#define NINE_WINDOW_CLASS_NAME "Gallium_Nine_Window" | ||||
| + | + | ||||
| +#endif | +#endif | ||||
| -- | -- | ||||
| 2.17.1 | 2.18.0 | ||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.