From 1fa34cfef0691fe969e08c9576e0369092caa5a3 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Tue, 5 Apr 2016 00:33:14 +0200 Subject: [PATCH] wined3d-Silence_FIXMEs: Added patch to display gl_blend_op FIXME only once when op is 0. --- patches/patchinstall.sh | 2 ++ ...ay-FIXME-only-once-when-blen-op-is-0.patch | 29 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 patches/wined3d-Silence_FIXMEs/0007-wined3d-Display-FIXME-only-once-when-blen-op-is-0.patch diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index e495b7c6..ec22e489 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -7367,6 +7367,7 @@ if test "$enable_wined3d_Silence_FIXMEs" -eq 1; then patch_apply wined3d-Silence_FIXMEs/0004-wined3d-Print-FIXME-only-once-in-surface_cpu_blt.patch patch_apply wined3d-Silence_FIXMEs/0005-wined3d-Silence-repeated-wined3d_swapchain_present-F.patch patch_apply wined3d-Silence_FIXMEs/0006-wined3d-Silence-extremely-noisy-FIXME-in-wined3d_tex.patch + patch_apply wined3d-Silence_FIXMEs/0007-wined3d-Display-FIXME-only-once-when-blen-op-is-0.patch ( echo '+ { "Sebastian Lackner", "wined3d: Silence repeated '\''Unhandled blend factor 0'\'' messages.", 1 },'; echo '+ { "Christian Costa", "wined3d: Display FIXME for cmp function 0 only once.", 1 },'; @@ -7374,6 +7375,7 @@ if test "$enable_wined3d_Silence_FIXMEs" -eq 1; then echo '+ { "Christian Costa", "wined3d: Print FIXME only once in surface_cpu_blt.", 1 },'; echo '+ { "Sebastian Lackner", "wined3d: Silence repeated wined3d_swapchain_present FIXME.", 1 },'; echo '+ { "Sebastian Lackner", "wined3d: Silence extremely noisy FIXME in wined3d_texture_add_dirty_region.", 1 },'; + echo '+ { "Christian Costa", "wined3d: Display FIXME only once when blen op is 0.", 1 },'; ) >> "$patchlist" fi diff --git a/patches/wined3d-Silence_FIXMEs/0007-wined3d-Display-FIXME-only-once-when-blen-op-is-0.patch b/patches/wined3d-Silence_FIXMEs/0007-wined3d-Display-FIXME-only-once-when-blen-op-is-0.patch new file mode 100644 index 00000000..2e768e8a --- /dev/null +++ b/patches/wined3d-Silence_FIXMEs/0007-wined3d-Display-FIXME-only-once-when-blen-op-is-0.patch @@ -0,0 +1,29 @@ +From dbce3be53546b6d2f9db58c53d8d5376092dc83b Mon Sep 17 00:00:00 2001 +From: Christian Costa +Date: Sun, 3 Apr 2016 22:30:59 +0200 +Subject: wined3d: Display FIXME only once when blen op is 0. + +--- + dlls/wined3d/state.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c +index e5e550e..6ca506b 100644 +--- a/dlls/wined3d/state.c ++++ b/dlls/wined3d/state.c +@@ -291,8 +291,11 @@ static GLenum gl_blend_op(const struct wined3d_gl_info *gl_info, enum wined3d_bl + case WINED3D_BLEND_OP_MAX: + return gl_info->supported[EXT_BLEND_MINMAX] ? GL_MAX : GL_FUNC_ADD; + default: +- FIXME("Unhandled blend op %#x.\n", op); ++ { ++ static int once; ++ if (op || !once++) FIXME("Unhandled blend op %#x.\n", op); + return GL_FUNC_ADD; ++ } + } + } + +-- +2.7.1 +