On 2012-04-01, at 6:06 PM, Henri Verbeet wrote:
Ideally applications wouldn't care at all about this and use the caps instead, though in practice applications might use the PCI IDs for workarounds for driver bugs or for capability detection.
Sounds good, so then are you okay with the patch with only the 6770M, since that has a different device ID?
The video memory is even more of a guess than everything else, in particular because you can have the same model with different amounts of video memory.
Fair enough, the comment in the code states that wine estimates the *minimum* video memory. Is there any issues with wine reporting more? If so, then there are cases where certain models within a series may have less memory than others. Thus wine could improve it's guess by having a different entry for each card (if necessary). That way the guess would never over-estimate the memory (assuming that's an issue).
The GL_NVX_gpu_memory_info extension would be very useful for this if it wasn't experimental.
Are there any problem with wine using the value from here instead of hard coding the video memory? Can bogus values show up? Can wine use GL_ATI_meminfo as well?