[PATCH 4/7] wined3d: Implement depth bias clamp.
Matteo Bruni
matteo.mystral at gmail.com
Tue Oct 9 13:55:12 CDT 2018
On Mon, Oct 8, 2018 at 8:26 PM Henri Verbeet <hverbeet at codeweavers.com> wrote:
> @@ -1254,7 +1255,9 @@ static enum wined3d_feature_level feature_level_from_caps(const struct wined3d_g
> shader_model = min(shader_model, max(shader_caps->hs_version, 4));
> shader_model = min(shader_model, max(shader_caps->ds_version, 4));
>
> - if (gl_info->supported[WINED3D_GL_VERSION_3_2] && gl_info->supported[ARB_SAMPLER_OBJECTS])
> + if (gl_info->supported[WINED3D_GL_VERSION_3_2]
> + && gl_info->supported[ARB_POLYGON_OFFSET_CLAMP]
> + && gl_info->supported[ARB_SAMPLER_OBJECTS])
> {
> if (shader_model >= 5
> && gl_info->supported[ARB_DRAW_INDIRECT]
That kills d3d10 support on macOS. I know that it was a partial lie
before anyway, but still...
Probably less of an issue, it also kills d3d10+ on older Mesa. Would
you like / accept a patch adding a fallback to
EXT_polygon_offset_clamp?
More information about the wine-devel
mailing list