diff --git a/patches/d3d11-Silence_FIXMEs/0001-d3d11-Silence-ID3D11Device_GetDeviceRemovedReason.patch b/patches/d3d11-Silence_FIXMEs/0001-d3d11-Silence-ID3D11Device_GetDeviceRemovedReason.patch new file mode 100644 index 00000000..957a786c --- /dev/null +++ b/patches/d3d11-Silence_FIXMEs/0001-d3d11-Silence-ID3D11Device_GetDeviceRemovedReason.patch @@ -0,0 +1,25 @@ +From d359c245dd87648c1f2002c2a865271c4c9aff8f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michael=20M=C3=BCller?= +Date: Sun, 28 May 2017 05:45:01 +0200 +Subject: d3d11: Silence ID3D11Device_GetDeviceRemovedReason. + +--- + dlls/d3d11/device.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c +index bc28b4a5446..c78a4a755d8 100644 +--- a/dlls/d3d11/device.c ++++ b/dlls/d3d11/device.c +@@ -5749,7 +5749,7 @@ static UINT STDMETHODCALLTYPE d3d11_device_GetCreationFlags(ID3D11Device *iface) + + static HRESULT STDMETHODCALLTYPE d3d11_device_GetDeviceRemovedReason(ID3D11Device *iface) + { +- FIXME("iface %p stub!\n", iface); ++ TRACE("iface %p stub!\n", iface); + + return S_OK; + } +-- +2.12.2 + diff --git a/patches/d3d11-Silence_FIXMEs/0002-d3d11-Silence-depth-bias-warning-in-ID3D11DeviceCont.patch b/patches/d3d11-Silence_FIXMEs/0002-d3d11-Silence-depth-bias-warning-in-ID3D11DeviceCont.patch new file mode 100644 index 00000000..e094370b --- /dev/null +++ b/patches/d3d11-Silence_FIXMEs/0002-d3d11-Silence-depth-bias-warning-in-ID3D11DeviceCont.patch @@ -0,0 +1,25 @@ +From 67bf62879edea7ee4d6c6f7218c8fa6b92c66163 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michael=20M=C3=BCller?= +Date: Sun, 28 May 2017 05:45:31 +0200 +Subject: d3d11: Silence depth bias warning in ID3D11DeviceContext_RSSetState. + +--- + dlls/d3d11/device.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c +index c78a4a755d8..14a0b98a32d 100644 +--- a/dlls/d3d11/device.c ++++ b/dlls/d3d11/device.c +@@ -1724,7 +1724,7 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_RSSetState(ID3D11DeviceCon + wined3d_device_set_render_state(device->wined3d_device, WINED3D_RS_CULLMODE, desc->CullMode); + /* OpenGL style depth bias. */ + if (desc->DepthBias || desc->SlopeScaledDepthBias) +- FIXME("Ignoring depth bias.\n"); ++ WARN("Ignoring depth bias.\n"); + /* GL_DEPTH_CLAMP */ + if (!desc->DepthClipEnable) + FIXME("Ignoring DepthClipEnable %#x.\n", desc->DepthClipEnable); +-- +2.12.2 + diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index e761cad2..34e6ce66 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -113,6 +113,7 @@ patch_enable_all () enable_d3d11_Deferred_Context="$1" enable_d3d11_ID3D11Texture1D="$1" enable_d3d11_ResolveSubresource="$1" + enable_d3d11_Silence_FIXMEs="$1" enable_d3d8_ValidateShader="$1" enable_d3d9_DesktopWindow="$1" enable_d3d9_Tests="$1" @@ -577,6 +578,9 @@ patch_enable () d3d11-ResolveSubresource) enable_d3d11_ResolveSubresource="$2" ;; + d3d11-Silence_FIXMEs) + enable_d3d11_Silence_FIXMEs="$2" + ;; d3d8-ValidateShader) enable_d3d8_ValidateShader="$2" ;; @@ -3526,6 +3530,20 @@ if test "$enable_d3d11_ResolveSubresource" -eq 1; then ) >> "$patchlist" fi +# Patchset d3d11-Silence_FIXMEs +# | +# | Modified files: +# | * dlls/d3d11/device.c +# | +if test "$enable_d3d11_Silence_FIXMEs" -eq 1; then + patch_apply d3d11-Silence_FIXMEs/0001-d3d11-Silence-ID3D11Device_GetDeviceRemovedReason.patch + patch_apply d3d11-Silence_FIXMEs/0002-d3d11-Silence-depth-bias-warning-in-ID3D11DeviceCont.patch + ( + printf '%s\n' '+ { "Michael Müller", "d3d11: Silence ID3D11Device_GetDeviceRemovedReason.", 1 },'; + printf '%s\n' '+ { "Michael Müller", "d3d11: Silence depth bias warning in ID3D11DeviceContext_RSSetState.", 1 },'; + ) >> "$patchlist" +fi + # Patchset d3d8-ValidateShader # | # | This patchset fixes the following Wine bugs: