[Bug 52393] Sacred 2 Gold: Textures largely missing since 5.0-rc3

WineHQ Bugzilla wine-bugs at winehq.org
Fri Jan 28 18:43:15 CST 2022


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

--- Comment #46 from labre at posteo.de ---
(In reply to Piotr Caban from comment #44)
> It turns out that the problem is caused by MXCSR register value. In non
> working case, it's value is 0x108001f. On my machine it's always 0x8001f.
> The code for saving/restoring x87 was incorrect and was also changing MXCSR.
> It means that the regression commit fixed a bug that was allowing the
> application to run on your machine.
I’m not sure, what register means in this context. Are these variables declared
with the 'register' keyword, which might end up in a processor register?

> I've tried setting MXCSR to 0x108001f as on your machine. It breaks menu
> background as on your screenshot.
Glad to hear, that you could reproduce it. :)

> According to your logs MXCSR is not set to this value by msvcr* functions
> (probably the game uses ldmxcsr assembly instruction to set it). Anyway, in
> order to fix this bug, it will be needed to find what and why is setting
> MXCSR register.
So, what are possible candidates for this? Are they limited to other wine
components or could this be also driver/firmware/hardware related? Can I do
anything to help with that?

-- 
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