WineD3D: Implement detection of ATI cards with Mesa DRI drivers [try 4]
roman at rm.pp.ru
Fri Nov 23 15:31:24 CST 2007
Roderick Colenbrander wrote:
> I think the code should be like this (in pseudo code) this way also other cards will at least be classified:
> case VENDOR_MESA:
> if(strstr(gl_info->gl_renderer, "R300"))
> card = radeon_9500;
> card = generic_nv_card;
> if(strstr(gl_info->gl_renderer, "R200"))
> card = ...
You are right, but please notice that with my latest patch, the same
behavior is already achieved, by not "break"-ing at the end of
VENDOR_MESA case if we didn't match one of ATI module names. This is the
code that proceeds to be executed then:
/* Card is probably one of the non-ATI cards which are also
supported by Mesa.
* Continue to the fallback behavior of VENDOR_WINE.
/* Default to generic Nvidia hardware based on the supported
OpenGL extensions. The choice
* for Nvidia was because the hardware and drivers they make
are of good quality. This makes
* them a good generic choice.
gl_info->gl_vendor = VENDOR_NVIDIA;
gl_info->gl_card = CARD_NVIDIA_GEFORCEFX_5600;
gl_info->gl_card = CARD_NVIDIA_GEFORCE3;
gl_info->gl_card = CARD_NVIDIA_GEFORCE;
gl_info->gl_card = CARD_NVIDIA_RIVA_TNT;
gl_info->gl_card = CARD_NVIDIA_RIVA_128;
More information about the wine-devel