It's required for feature level 11_0.
At some point, we probably would like to separate shader model checks from feature level checks.
Signed-off-by: Józef Kucia jkucia@codeweavers.com --- dlls/wined3d/glsl_shader.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c index 0bc6aa02319a..121892dd47e5 100644 --- a/dlls/wined3d/glsl_shader.c +++ b/dlls/wined3d/glsl_shader.c @@ -10964,6 +10964,7 @@ static unsigned int shader_glsl_get_shader_model(const struct wined3d_gl_info *g && gl_info->supported[ARB_SHADER_IMAGE_SIZE] && gl_info->supported[ARB_SHADING_LANGUAGE_PACKING] && gl_info->supported[ARB_TESSELLATION_SHADER] + && gl_info->supported[ARB_TEXTURE_COMPRESSION_BPTC] && gl_info->supported[ARB_TEXTURE_GATHER] && gl_info->supported[ARB_TRANSFORM_FEEDBACK3]) return 5;
On 9 April 2018 at 10:19, Józef Kucia jkucia@codeweavers.com wrote:
It's required for feature level 11_0.
At some point, we probably would like to separate shader model checks from feature level checks.
Yeah. The most straightforward way to do that may be to clamp the d3d_info limits based on the feature level checks in wined3d_adapter_init_gl_caps(). Perhaps the WINED3DCAPS structure should also have an explicit feature_level field for the benefit of dxgi_check_feature_level_support(), but that would be a step further.
On Mon, Apr 9, 2018 at 12:41 PM, Henri Verbeet hverbeet@gmail.com wrote:
On 9 April 2018 at 10:19, Józef Kucia jkucia@codeweavers.com wrote:
It's required for feature level 11_0.
At some point, we probably would like to separate shader model checks from feature level checks.
Yeah. The most straightforward way to do that may be to clamp the d3d_info limits based on the feature level checks in wined3d_adapter_init_gl_caps(). Perhaps the WINED3DCAPS structure should also have an explicit feature_level field for the benefit of dxgi_check_feature_level_support(), but that would be a step further.
FWIW, we have other feature level checks in shader_glsl_get_shader_model(), e.g. ARB_draw_indirect.