Replace our dxtn.dll by a version based on the libtxc_dxtn source code (#203)
authorColin Finck <colin@reactos.org>
Wed, 20 Dec 2017 10:15:13 +0000 (11:15 +0100)
committerGitHub <noreply@github.com>
Wed, 20 Dec 2017 10:15:13 +0000 (11:15 +0100)
commit12b78f182da5f1c21ef4d53b4c938a4bb346defa
treedaeaba8edbc548debc6f00dd1a2a767119257c59
parent84c26953e49ff0eda4c5608295f23c164c914bab
Replace our dxtn.dll by a version based on the libtxc_dxtn source code (#203)

This is no official system DLL and WineD3D is its only user. But latest WineD3D prefers the libtxc_dxtn codebase instead of the alternative library we used.
This is also what Mesa uses and Fedora ships now that the patents have expired, so we should stick to the same.

I'm importing the libtxc_dxtn-1.0.1 codebase from https://people.freedesktop.org/~cbrill/libtxc_dxtn/
It compiles warning-free in our tree without modifying a single line!

I'm merging this Pull Request based on the positive response in CORE-12759.
I lack a proper test case myself, but my version at least shouldn't make things worse. In my opinion, the previous one was broken anyway due to using stdcall imports when WineD3D called cdecl ones.

This also removes the NSWPAT option from our buildsystem as dxtn was its latest user.
16 files changed:
dll/3rdparty/CMakeLists.txt
dll/3rdparty/dxtn/CMakeLists.txt
dll/3rdparty/dxtn/dxtn.c [deleted file]
dll/3rdparty/dxtn/dxtn.h [deleted file]
dll/3rdparty/dxtn/dxtn.spec
dll/3rdparty/dxtn/fxt1.c [deleted file]
dll/3rdparty/dxtn/fxt1.h [deleted file]
dll/3rdparty/dxtn/internal.h [deleted file]
dll/3rdparty/dxtn/txc_compress_dxtn.c [new file with mode: 0644]
dll/3rdparty/dxtn/txc_dxtn.h [moved from dll/3rdparty/dxtn/texstore.c with 53% similarity]
dll/3rdparty/dxtn/txc_fetch_dxtn.c [new file with mode: 0644]
dll/3rdparty/dxtn/types.h [deleted file]
dll/3rdparty/dxtn/wrapper.c [deleted file]
sdk/cmake/config-amd64.cmake
sdk/cmake/config-arm.cmake
sdk/cmake/config.cmake