[Bug 29573] New: Battle.net System Check reports zero (0) megabytes of video RAM
http://bugs.winehq.org/show_bug.cgi?id=29573 Bug #: 29573 Summary: Battle.net System Check reports zero (0) megabytes of video RAM Product: Wine Version: 1.3.36 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs(a)winehq.org ReportedBy: ehoover(a)mines.edu Classification: Unclassified I recently got a new computer and I'm looking to update my Battle.net profile. I discovered that my Video RAM is incorrect and I've tried with my memory both at the Wine default and it's actual value (1.5 GB). Battle.net System Checker Reports: Video Card: NVIDIA GeForce GTX 560 (ID 4609) 0 MB WINEDEBUG="+d3d" (no VideoMemorySize) trace:d3d:InitAdapters Emulating 1024MB of texture ram WINEDEBUG="+d3d" (VideoMemorySize = 1536) trace:d3d:InitAdapters Emulating 1536MB of texture ram -- 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.
http://bugs.winehq.org/show_bug.cgi?id=29573 Dmitry Timoshkov <dmitry(a)baikal.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |trivial -- 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.
http://bugs.winehq.org/show_bug.cgi?id=29573 --- Comment #1 from Austin English <austinenglish(a)gmail.com> 2012-01-09 14:16:42 CST --- I wouldn't be surprised if it's using wmi to figure out the available video memory instead of directx.. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=29573 --- Comment #2 from Erich Hoover <ehoover(a)mines.edu> 2012-01-09 14:39:08 CST --- (In reply to comment #1)
I wouldn't be surprised if it's using wmi to figure out the available video memory instead of directx..
That's what I thought at first, but I couldn't find any evidence of that. It doesn't link to wmi and I couldn't find anything wmi-related in a relay log. I may not know what to look for though. It does dynamically load nvapi, but it doesn't look like it's pulling the video memory from there. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=29573 --- Comment #3 from Erich Hoover <ehoover(a)mines.edu> 2012-01-10 11:31:14 CST --- Oh! I forgot to mention that I also checked to see if the application looked for the video memory in the registry (HardwareInformation.MemorySize) and it does not appear to be looking there either. Clearly it's not using d3d9's GetAvailableTextureMem or d3d7's GetAvailableVidMem or we wouldn't be having this discussion ;) -- 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.
http://bugs.winehq.org/show_bug.cgi?id=29573 André H. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv(a)dawncrow.de -- 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.
http://bugs.winehq.org/show_bug.cgi?id=29573 --- Comment #4 from Erich Hoover <ehoover(a)mines.edu> 2012-09-03 15:43:03 CDT --- Created attachment 41566 --> http://bugs.winehq.org/attachment.cgi?id=41566 Fix for the system checker reporting no RAM I finally figured out the problem here (see attached patch), apparently this app is VERY picky. Comments are appreciated. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=29573 --- Comment #5 from Henri Verbeet <hverbeet(a)gmail.com> 2012-09-03 16:34:31 CDT --- That probably makes sense. You should use wined3d_get_adapter_identifier() to retrieve both of those though. (And this probably applies to DirectDrawEnumerateA() as well.) -- 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.
http://bugs.winehq.org/show_bug.cgi?id=29573 --- Comment #6 from Erich Hoover <ehoover(a)mines.edu> 2012-09-04 11:38:05 CDT --- Created attachment 41569 --> http://bugs.winehq.org/attachment.cgi?id=41569 Fix for the system checker reporting no RAM [v2] (In reply to comment #5)
That probably makes sense. You should use wined3d_get_adapter_identifier() to retrieve both of those though. (And this probably applies to DirectDrawEnumerateA() as well.)
How does the attached look? It looks like the DirectDrawEnumerateA callback is incompatible with the DirectDrawEnumerateExA callback, should I maybe make an internal function for both routines to call so that it can handle both? -- 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.
http://bugs.winehq.org/show_bug.cgi?id=29573 --- Comment #7 from Henri Verbeet <hverbeet(a)gmail.com> 2012-09-04 12:19:42 CDT --- (In reply to comment #6)
How does the attached look? It looks like the DirectDrawEnumerateA callback is Looks ok, though the adapter index is supposed to be unsigned, and I'd probably have done something like this for the loop in there:
for (adapter = 0;; ++adapter) { ... if (FAILED(hr)) break; ... }
incompatible with the DirectDrawEnumerateExA callback, should I maybe make an internal function for both routines to call so that it can handle both? Maybe, although I'm not sure if it'll end up really being worth it. You could perhaps also do something similar to ddraw_surface4_EnumAttachedSurfaces() and similar functions.
-- 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.
http://bugs.winehq.org/show_bug.cgi?id=29573 Erich Hoover <ehoover(a)mines.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #41566|0 |1 is obsolete| | Attachment #41569|0 |1 is obsolete| | --- Comment #8 from Erich Hoover <ehoover(a)mines.edu> 2012-09-04 14:00:31 CDT --- Created attachment 41571 --> http://bugs.winehq.org/attachment.cgi?id=41571 Fix for the system checker reporting no RAM [v3] (In reply to comment #7)
... Looks ok, though the adapter index is supposed to be unsigned, and I'd probably have done something like this for the loop in there: ...
How about the attached?
... Maybe, although I'm not sure if it'll end up really being worth it. You could perhaps also do something similar to ddraw_surface4_EnumAttachedSurfaces() and similar functions.
Oh, I like that - please see the attached patch. I envision this patch being split into two parts for submission, DirectDrawEnumerateA as part 1/2 and the DirectDrawEnumerateExA as part 2/2, does that sound ok to you? -- 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.
http://bugs.winehq.org/show_bug.cgi?id=29573 Erich Hoover <ehoover(a)mines.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |directx-d3d --- Comment #9 from Erich Hoover <ehoover(a)mines.edu> 2012-09-04 15:20:41 CDT --- Ok, after talking with Henri on IRC and some comments from Bruno Jesus I've submitted a pair of patches to fix this issue: [1/2] http://source.winehq.org/patches/data/89583 [2/2] http://source.winehq.org/patches/data/89584 -- 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.
http://bugs.winehq.org/show_bug.cgi?id=29573 --- Comment #10 from André H. <nerv(a)dawncrow.de> 2012-09-15 10:06:43 CDT --- Seems the patches are still NEW... -- 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.
http://bugs.winehq.org/show_bug.cgi?id=29573 --- Comment #11 from Erich Hoover <ehoover(a)mines.edu> 2012-09-15 19:06:05 CDT --- (In reply to comment #10)
Seems the patches are still NEW...
Yup, maybe he'll read them this week? *crosses fingers* -- 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.
http://bugs.winehq.org/show_bug.cgi?id=29573 Erich Hoover <ehoover(a)mines.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |b0cefe897c6dbd846b0525e3f3a | |ab59cae75eb6d Status|UNCONFIRMED |RESOLVED Resolution| |FIXED --- Comment #12 from Erich Hoover <ehoover(a)mines.edu> 2012-09-18 16:04:36 CDT --- Fixed as of commit b0cefe897c6dbd846b0525e3f3aab59cae75eb6d. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=29573 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #13 from Alexandre Julliard <julliard(a)winehq.org> 2012-09-28 13:44:03 CDT --- Closing bugs fixed in 1.5.14. -- 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.
participants (1)
-
wine-bugs@winehq.org