https://bugs.winehq.org/show_bug.cgi?id=40448
Bug ID: 40448 Summary: Final Fantasy XI: Missing character models, potential black screen and crashes Product: Wine Version: 1.9.7 Hardware: x86-64 OS: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d Assignee: wine-bugs@winehq.org Reporter: osman@retroflux.net
Issues: Some player character models go missing, loading certain zones (Mog Garden) can result in black screen, sporadic crashes can occur.
I've bisected this, and found commit 1061969eb6e29 to be the culprit. It is a tiny commit that adds WINED3DFMT_FLAG_RENDERTARGET to WINED3DFMT_B5G5R5X1_UNORM in format_texture_info[] in dlls/wined3d/utils.c.
It looks like this can somehow make wined3d_buffer_create_vb/ib fail on my MacBook Pro. (Retina, 13-inch, Late 2013, Intel Iris 5100)
warn:d3d:wined3d_buffer_create_ib Failed to initialize buffer, hr 0x8876017c err:d3d:resource_init Out of adapter memory
(I don't think it is an out of memory issue - the message seems to be always present regardless, default message? - Memory consumption is not high)
Reversing this particular patch on latest master solves all the problems. (Tested at commit ad7cb436571ec, dated Apr 7, 2016). The buffer initialization error goes away. The game runs quite stable without any issues.