https://bugs.winehq.org/show_bug.cgi?id=53442
Bug ID: 53442 Summary: Total War Shogun 2 needs D3DX_FILTER_BOX for memory management. Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: d3d Assignee: wine-bugs@winehq.org Reporter: hibbsncc1701@gmail.com Distribution: ---
Total War Shogun 2 uses the D3DX_FILTER_BOX filter to downscale it's textures. Both during normal usage, but more critically, when it's VRAM budget is low or over-committed.
This can be seen on Intel GPUs in the game's stderr output with a line similar to: ---snip--- ** Downsizing Textures, Over Budget by : 115 Mb ---snip---
Followed by (in wine-7.12 or older) or prior (in wine-7.13 or later) multiple fixmes: ---snip--- 0024:fixme:d3dx:D3DXLoadSurfaceFromMemory Unhandled filter 0x5. ---snip---
See also the attached log from wine-7.13.
As this filter is used for memory management in a 32bit game, it's implementation would help alleviate some OOM errors.