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@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?