[PATCH 2/8] dxgi/tests: Fix some test failures in test_find_closest_matching_mode().

Henri Verbeet hverbeet at gmail.com
Tue Apr 7 09:54:46 CDT 2020


On Mon, 6 Apr 2020 at 16:23, Zhiyi Zhang <zzhang at codeweavers.com> wrote:
>
> DXGI_MODE_SCALING_CENTERED and DXGI_MODE_SCALING_STRETCHED modes may be
> supported by drivers. When these flags are specified, IDXGIOutput_FindClosestMatchingMode()
> will try to find a mode matching the scaling field first, which may not
> be the same as the original mode. So make sure such a mode exists before
> finding them.
>
> Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
> ---
> Fix test failures like in https://test.winehq.org/data/7096ab45444d7b7cbb926b5a51af0cbc46960ed3/win10_newtb-w1064v1809-2scr-32/dxgi:dxgi.html
>
It introduces a failure here:

    dxgi.c:1475: Test failed: Got scaling 0x2, expected 0.



More information about the wine-devel mailing list