https://bugs.winehq.org/show_bug.cgi?id=51575
Bug ID: 51575 Summary: Texconv fails with mipmap error unless "-nowic" is supplied to disable WIC use Product: Wine Version: 6.14 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: windowscodecs Assignee: wine-bugs@winehq.org Reporter: winebugs@63bit.net Distribution: ---
Texconv.exe returns mysterious errors about mipmaps if "-nowic" is not passed. This appears to be some problem in the interaction between windowscodecs.dll and texconv mipmap level detection.
Example (probably any DDS will work to repro): Texconv.exe -nologo -y -sepalpha -f BC7_UNORM -bc q -o "C:\blah\out" "C:\blah\TamrielTreeLod.dds"
returns FAILED [mipmaps] (80070057: Invalid parameter.)
Source for texconv is here: https://github.com/microsoft/DirectXTex/blob/54ce2c8da97c3508899c31f80bfb1ec...
Binary is available here: https://github.com/microsoft/DirectXTex/releases/tag/aug2021
Passing "-nowic" parameter succeeds, causing me to suspect windowscodecs.dll