-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 2014-05-30 15:25, schrieb Ruslan Kabatsayev:
Hmm, this is an interesting point. But, for GLX_MESA_query_renderer, which appeared relatively recently, one can't say it's experimental or cannot return the total memory. Can its use be accepted by Wine? Maybe at some point Nvidia/AMD will implement it too (looks unlikely though), but at least for Mesa-powered drivers it would work. Yes, I see no reason why we can't use GLX_MESA_query_renderer. We still need the fallback path for drivers that do not support it though.
It's important to note that wined3d itself cannot use it. Wined3d uses WGL, not GLX. winex11.drv has to use GLX_MESA_query_renderer, and it can export its functionality to wined3d in the form of a WGL extension that is similar or equal to GLX_MESA_query_renderer. winemac.drv can export the same extension. There are OSX functions to query the PCI IDs and video memory size. (I forgot the name though). As far as I know the NV-CONTROL X11 (not GLX) extension exposes the same information, but doesn't have the issue that it's specification isn't finalized. Winex11.drv could in theory use it if GLX_MESA_query_renderer is not available. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJTiIk6AAoJEN0/YqbEcdMw+GwP/2ia45TTEJPLthGMoReA13iX 8M2NplPwR+SHaPSSR6U9jUre80Q5p8amFh8gM896Rw8uoq0qB6Y5c8VtMlkPdYgp WzfKqjxJJC4Jt8csTT/m245f82lf78qLsWRfZTMYwiX5921NmCqC4SEbs7FnYGp9 FpIdDEmTQ1NLS9C5bdCBUtQbY9jBMekyM9x8+5acLyhDgjw+GwDIRHPgbKokNix3 c0RdYoXFcRl3aUKGTR7zM7CHjS9e56Oi6HApfaxBr0ElMh7uM40pjug/pHMz6hqE dBWUuViOwnt6vJqUBGcSTc6nmEAFVvW+Gnpxo3wKxjsByUQ9BiviGGOkf1QOm7HI /RCRAD2UL888ujFOglRyA7/Ss72qFKXTEy6utuX1qne2gJrjbnfSLD/Hb2UZV7f7 WrDJ9Mmma3xh+xMtuqL/3HHRUyEc3z+4TamOwFwlYeNMoUH8DJ2dWPRcjD5VfuG8 sb+MTtkONNnWjH5R28TVhJFKqNjN9CL2rwfShw15CbG2I/HJ+OWxK1lSREbne2Er WNjtPOh03e7I+KTm6bB5H6xr+aLO+DjLvKmmaqek+Ap+8ebqfLBGh9EtoHBxRfAs wtl8ImBXxo/M0O6sIo9N2OG6CefQ5bcpsHABjj0noKEF2Zqv8L+2kPwadr2DasLf 9rLNpWS58G3lN3BjtxXQ =ifL5 -----END PGP SIGNATURE-----