Changeset View
Changeset View
Standalone View
Standalone View
files/wine-d3d9.patch
| From 6f18703feb2f89042a25fb09e7d07d48a8f9c125 Mon Sep 17 00:00:00 2001 | From 695c0020836ef99c924c5d33de81bf52c1fb617a Mon Sep 17 00:00:00 2001 | ||||
| From: Nick Sarnie <commendsarnex@gmail.com> | From: Nick Sarnie <commendsarnex@gmail.com> | ||||
| Date: Sat, 31 Mar 2018 10:04:12 -0400 | Date: Sat, 14 Apr 2018 11:53:04 -0400 | ||||
| Subject: [PATCH] Wine D3D9 | Subject: [PATCH 2/2] Wine D3D9 | ||||
| Signed-off-by: Nick Sarnie <commendsarnex@gmail.com> | Signed-off-by: Nick Sarnie <commendsarnex@gmail.com> | ||||
| --- | --- | ||||
| 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 +++ | ||||
| dlls/d3d9-nine/d3dadapter9.c | 898 +++++++++++++++++++ | dlls/d3d9-nine/d3dadapter9.c | 898 +++++++++++++++ | ||||
| dlls/d3d9-nine/d3dadapter9.h | 32 + | dlls/d3d9-nine/d3dadapter9.h | 32 + | ||||
| dlls/d3d9-nine/device_wrap.c | 500 +++++++++++ | dlls/d3d9-nine/device_wrap.c | 500 +++++++++ | ||||
| dlls/d3d9-nine/device_wrap.h | 26 + | dlls/d3d9-nine/device_wrap.h | 26 + | ||||
| dlls/d3d9-nine/dri3.c | 1426 ++++++++++++++++++++++++++++++ | dlls/d3d9-nine/dri3.c | 1426 +++++++++++++++++++++++ | ||||
| dlls/d3d9-nine/dri3.h | 91 ++ | dlls/d3d9-nine/dri3.h | 91 ++ | ||||
| dlls/d3d9-nine/present.c | 1748 +++++++++++++++++++++++++++++++++++++ | dlls/d3d9-nine/present.c | 1748 +++++++++++++++++++++++++++++ | ||||
| dlls/d3d9-nine/present.h | 40 + | dlls/d3d9-nine/present.h | 40 + | ||||
| dlls/d3d9-nine/shader_validator.c | 88 ++ | dlls/d3d9-nine/shader_validator.c | 88 ++ | ||||
| dlls/d3d9-nine/shader_validator.h | 29 + | dlls/d3d9-nine/shader_validator.h | 29 + | ||||
| dlls/d3d9-nine/version.rc | 26 + | dlls/d3d9-nine/version.rc | 26 + | ||||
| dlls/d3d9-nine/wndproc.c | 277 ++++++ | dlls/d3d9-nine/wndproc.c | 277 +++++ | ||||
| dlls/d3d9-nine/wndproc.h | 41 + | dlls/d3d9-nine/wndproc.h | 41 + | ||||
| 17 files changed, 5612 insertions(+) | 17 files changed, 5612 insertions(+) | ||||
| create mode 100644 dlls/d3d9-nine/Makefile.in | create mode 100644 dlls/d3d9-nine/Makefile.in | ||||
| create mode 100644 dlls/d3d9-nine/d3d9-nine.spec | create mode 100644 dlls/d3d9-nine/d3d9-nine.spec | ||||
| create mode 100644 dlls/d3d9-nine/d3d9_main.c | create mode 100644 dlls/d3d9-nine/d3d9_main.c | ||||
| create mode 100644 dlls/d3d9-nine/d3dadapter9.c | create mode 100644 dlls/d3d9-nine/d3dadapter9.c | ||||
| create mode 100644 dlls/d3d9-nine/d3dadapter9.h | create mode 100644 dlls/d3d9-nine/d3dadapter9.h | ||||
| create mode 100644 dlls/d3d9-nine/device_wrap.c | create mode 100644 dlls/d3d9-nine/device_wrap.c | ||||
| create mode 100644 dlls/d3d9-nine/device_wrap.h | create mode 100644 dlls/d3d9-nine/device_wrap.h | ||||
| create mode 100644 dlls/d3d9-nine/dri3.c | create mode 100644 dlls/d3d9-nine/dri3.c | ||||
| create mode 100644 dlls/d3d9-nine/dri3.h | create mode 100644 dlls/d3d9-nine/dri3.h | ||||
| create mode 100644 dlls/d3d9-nine/present.c | create mode 100644 dlls/d3d9-nine/present.c | ||||
| 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 0a365d9c43..93c9d823fd 100644 | index 8e76cd6086..10c1a8c03e 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 5,723 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.16.3 | 2.17.0 | ||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.