1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

wined3d: Require independent blending to create a feature level 9.3 device.

This commit is contained in:
Zebediah Figura 2022-07-06 20:24:07 -05:00 committed by Alexandre Julliard
parent b875d395d1
commit 347c830337

View File

@ -2246,6 +2246,12 @@ static bool adapter_vk_init_driver_info(struct wined3d_adapter_vk *adapter_vk,
adapter_vk->a.d3d_info.feature_level, vram_bytes, sysmem_bytes);
}
static bool feature_level_9_3_supported(const struct wined3d_physical_device_info *info, unsigned int shader_model)
{
return shader_model >= 3
&& info->features2.features.independentBlend;
}
static bool feature_level_10_supported(const struct wined3d_physical_device_info *info, unsigned int shader_model)
{
return shader_model >= 4
@ -2269,7 +2275,7 @@ static enum wined3d_feature_level feature_level_from_caps(const struct wined3d_p
if (shader_model <= 1)
return WINED3D_FEATURE_LEVEL_8;
if (shader_model <= 2)
if (!feature_level_9_3_supported(info, shader_model))
return WINED3D_FEATURE_LEVEL_9_2;
if (!feature_level_10_supported(info, shader_model))