mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
Added wined3d-Restore-DirectX10-Support patchset
This commit is contained in:
parent
b56e74f39d
commit
9556a78ab9
@ -359,6 +359,7 @@ patch_enable_all ()
|
||||
enable_wined3d_Dual_Source_Blending="$1"
|
||||
enable_wined3d_Indexed_Vertex_Blending="$1"
|
||||
enable_wined3d_QUERY_Stubs="$1"
|
||||
enable_wined3d_Restore_DirectX10_Support="$1"
|
||||
enable_wined3d_Silence_FIXMEs="$1"
|
||||
enable_wined3d_UAV_Counters="$1"
|
||||
enable_wined3d_WINED3DFMT_B8G8R8X8_UNORM="$1"
|
||||
@ -1243,6 +1244,9 @@ patch_enable ()
|
||||
wined3d-QUERY_Stubs)
|
||||
enable_wined3d_QUERY_Stubs="$2"
|
||||
;;
|
||||
wined3d-Restore-DirectX10-Support)
|
||||
enable_wined3d_Restore_DirectX10_Support="$2"
|
||||
;;
|
||||
wined3d-Silence_FIXMEs)
|
||||
enable_wined3d_Silence_FIXMEs="$2"
|
||||
;;
|
||||
@ -7473,6 +7477,21 @@ if test "$enable_wined3d_Indexed_Vertex_Blending" -eq 1; then
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset wined3d-Restore-DirectX10-Support
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
# | * [#45975] Allow Direct 10 to work with legacy nVidia drivers.
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/wined3d/adapter_gl.c
|
||||
# |
|
||||
if test "$enable_wined3d_Restore_DirectX10_Support" -eq 1; then
|
||||
patch_apply wined3d-Restore-DirectX10-Support/0001-wined3d-Remove-check-for-Polygon-offset-clamping.patch
|
||||
(
|
||||
printf '%s\n' '+ { "Alistair Leslie-Hughes", "wined3d: Remove check for Polygon offset clamping.", 1 },';
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset wined3d-mesa_texture_download
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
|
@ -0,0 +1,33 @@
|
||||
From d547ae9d290fb24f975bafcf462288d6f7bf3b1f Mon Sep 17 00:00:00 2001
|
||||
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
|
||||
Date: Fri, 12 Oct 2018 13:18:56 +1100
|
||||
Subject: [PATCH] wined3d: Remove check for Polygon offset clamping
|
||||
|
||||
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45975
|
||||
---
|
||||
dlls/wined3d/adapter_gl.c | 8 +++++++-
|
||||
1 file changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dlls/wined3d/adapter_gl.c b/dlls/wined3d/adapter_gl.c
|
||||
index 16a26b8..2af165d 100644
|
||||
--- a/dlls/wined3d/adapter_gl.c
|
||||
+++ b/dlls/wined3d/adapter_gl.c
|
||||
@@ -1255,8 +1255,14 @@ static enum wined3d_feature_level feature_level_from_caps(const struct wined3d_g
|
||||
shader_model = min(shader_model, max(shader_caps->hs_version, 4));
|
||||
shader_model = min(shader_model, max(shader_caps->ds_version, 4));
|
||||
|
||||
+ /*
|
||||
+ * Legacy nVidia driver doesn't the the ARB_POLYGON_OFFSET_CLAMP support.
|
||||
+ * There is an implied support for Depth Bias Clamping in DirectX 10 but no real documenation for either case
|
||||
+ * On the same hardware, on windows, it supports DirectX 10 without the need for this extension, So
|
||||
+ * removing this check and users can deal with the fact they might have minor artifacts from time to time.
|
||||
+ */
|
||||
if (gl_info->supported[WINED3D_GL_VERSION_3_2]
|
||||
- && gl_info->supported[ARB_POLYGON_OFFSET_CLAMP]
|
||||
+/* && gl_info->supported[ARB_POLYGON_OFFSET_CLAMP]*/
|
||||
&& gl_info->supported[ARB_SAMPLER_OBJECTS])
|
||||
{
|
||||
if (shader_model >= 5
|
||||
--
|
||||
1.9.1
|
||||
|
1
patches/wined3d-Restore-DirectX10-Support/definition
Normal file
1
patches/wined3d-Restore-DirectX10-Support/definition
Normal file
@ -0,0 +1 @@
|
||||
Fixes: [45975] Allow Direct 10 to work with legacy nVidia drivers.
|
Loading…
x
Reference in New Issue
Block a user