[Bug 33552] BioWare 'DragonAge2Config' tool doesn't detect graphics card VRAM properly

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Dec 6 10:13:10 CST 2013


http://bugs.winehq.org/show_bug.cgi?id=33552

--- Comment #12 from Henri Verbeet <hverbeet at gmail.com> 2013-12-06 10:13:10 CST ---
(In reply to comment #11)
> In "dxdiag" case it queries "szDisplayMemoryEnglish" property as "2048.9 MB"
> and converts this to float and later back to int?
> 
...
> Not sure where this integer overflow comes from. Maybe some internal conversion
> went wrong.
> 
My guess would be that it takes the "2048.9 MB" from dxdiag, interprets that as
"2048.9 MiB", converts it back to bytes (by multiplying with 1024 * 1024,
resulting in a value >= 0x80000000), and displays it as a signed integer.
Perhaps the value dxdiag returns should be in MiB, I'm not that familiar with
dxdiag, but the main issue seems to be that the tool display the value as a
signed integer for whatever reason.

> Another thing I noticed the tool tries to match (dx) device id from multiple
> query sources (dxgi, wmi, ...) and this somehow doesn't work out.
> Maybe there is an inconsistency (incomplete/fake data) somewhere so the app
> skips some code paths, discarding some values it earlier retrieved.
> 
IIRC WMI actually uses DXGI. I do know that the device names from
winex11/user32 and wined3d don't quite match up, but anything that originally
comes from wined3d should be consistent with each other.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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