On Thu, 5 Aug 2021 at 19:57, Stefan Dösinger stefan@codeweavers.com wrote:
This allows test_fractional_viewports to pass regardless of GL capabilies. I don't think we can get rid of WINED3D_PIXEL_CENTER_INTEGER (and add +0.5 in the client libs) due to vpos in d3d9 shaders.
@@ -5129,6 +5129,7 @@ static void wined3d_adapter_gl_init_d3d_info(struct wined3d_adapter_gl *adapter_ d3d_info->clip_control = !!gl_info->supported[ARB_CLIP_CONTROL]; d3d_info->full_ffp_varyings = !!(shader_caps.wined3d_caps & WINED3D_SHADER_CAP_FULL_FFP_VARYINGS); d3d_info->scaled_resolve = !!gl_info->supported[EXT_FRAMEBUFFER_MULTISAMPLE_BLIT_SCALED];
- d3d_info->subpixel_viewport = !!gl_info->supported[ARB_VIEWPORT_ARRAY]; d3d_info->feature_level = feature_level_from_caps(gl_info, &shader_caps, &fragment_caps);
Should this be conditional on GL_VIEWPORT_SUBPIXEL_BITS having a reasonable value, similar to what we do for clip control?