[Bug 52721] New: d3dx9_36:effect, d3dx11_42:d3dx11 and d3dx11_43:d3dx11 broken by use of vkd3d_shader_compile() for D3DCompile2()

WineHQ Bugzilla wine-bugs at winehq.org
Thu Mar 24 06:39:49 CDT 2022


https://bugs.winehq.org/show_bug.cgi?id=52721

            Bug ID: 52721
           Summary: d3dx9_36:effect, d3dx11_42:d3dx11 and d3dx11_43:d3dx11
                    broken by use of vkd3d_shader_compile() for
                    D3DCompile2()
           Product: Wine
           Version: unspecified
          Hardware: x86-64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: directx-d3d-util
          Assignee: wine-bugs at winehq.org
          Reporter: fgouget at codeweavers.com
      Distribution: ---

A recent patch to use vkd3d_shader_compile() to implement D3DCompile2() broke
d3dx11_42:d3dx11 and d3dx11_43:d3dx11. In both cases it leads to a crash:

d3dx11.c:580: Test failed: Got unexpected errors.
Unhandled exception: page fault on read access to 0x00000000 in 32-bit code
(0x70bb0990).
[...]
Backtrace:
=>0 0x70bb0990 strrchr+0x10(str=0x000000000, c=0x5c)
[Z:\home\winetest\winetest\src\dlls\msvcrt\string.c:3166] in ucrtbase
(0x0031d9b8)
  1 0x69d8bcc9 d3dcompiler_include_from_file_open+0x49(iface=<internal error>,
include_type=<internal error>, filename=<internal error>, parent_data=<internal
error>, data=<internal error>, bytes=<internal error>)
[Z:\home\winetest\winetest\src\dlls\d3dcompiler_43\compiler.c:521] in
d3dcompiler_47 (0x0031db28)

https://test.winehq.org/data/patterns.html#d3dx11_42:d3dx11
https://test.winehq.org/data/patterns.html#d3dx11_43:d3dx11


d3dx9_36:effect got broken too but at least in this case it's because of
successes in todos so it's probably a trivial fix:

effect.c:8108: Test succeeded inside todo block: Unexpected error, hr
0x80004005.
effect.c:8133: Test succeeded inside todo block: D3DXInclude test failed with
error 0x80004005.

https://test.winehq.org/data/patterns.html#d3dx9_36:effect


The commit that caused these new failures is:

commit 6a062afb75c1e026614403312f2e13207e359634 (HEAD, refs/bisect/bad)
Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Thu Mar 3 20:25:26 2022 -0600

    d3dcompiler: Implement D3DCompile2() using vkd3d_shader_compile().

    Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51713
    Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
    Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
    Signed-off-by: Alexandre Julliard <julliard at winehq.org>

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list