Recognize cards that expose GLSL 1.30 as DX10 capable even if they don't support EXT_GPU_SHADER4

Andrei Slavoiu andrei.slavoiu at gmail.com
Tue May 27 09:56:19 CDT 2014


On Tuesday 27 May 2014 15:56:57 Stefan Dösinger wrote:
> Am 23.05.2014 um 00:23 schrieb Andrei Slăvoiu <andrei.slavoiu at gmail.com>:
> > Mesa drivers do not expose EXT_GPU_SHADER4 as all functionality it offers
> > is already part of OpenGL 3.0. This causes all cards that are not
> > explicitly recognized by wine (for example all GCN cards) to be treated
> > as DX9 cards and presented to Windows apps as Radeon 9500.
> 
> The problem is that without GL_EXT_gpu_shader4 or GL_ARB_shader_texture_lod
> we cannot handle the texldd instruction. Right now we cannot use core
> contexts, so unless the driver exposes one of those extensions in
> compatibility contexts we are stuck on a shader model 2 feature level :-( .
> 
> The level detection your patch changes isn't directly related to this, as
> the shader model version support is controlled differently. But a Radeon
> 9500 matches a card with shader model 2 support much better than a Radeon
> R9.
> 
> Does this driver / gpu combination support GL_ARB_shader_texture_lod?

Yes, GL_ARB_shader_texture_lod is exposed by mesa for all drivers in both core 
and compatibility contexts. So should I check for GL_ARB_shader_texture_lod 
instead of glsl version?



More information about the wine-devel mailing list