[PATCH 1/4] d3d9/tests: Windows 10 17.09 added an undocumented query type (v2).

Henri Verbeet hverbeet at gmail.com
Thu Oct 19 06:25:42 CDT 2017


On 19 October 2017 at 10:09, Stefan Dösinger <stefan at codeweavers.com> wrote:
> @@ -5552,7 +5552,9 @@ static void test_query_support(void)
>
>      for (i = 0; i < 40; ++i)
>      {
> -        if (D3DQUERYTYPE_VCACHE <= i && i <= D3DQUERYTYPE_MEMORYPRESSURE)
> +        /* Windows 10 17.09 (build 16299.19) added an undocumented query with an enum value of 0x16 (=22).
> +         * It returns D3D_OK when asking for support and E_FAIL when trying to actually create it. */
> +        if (D3DQUERYTYPE_VCACHE <= i && i <= D3DQUERYTYPE_MEMORYPRESSURE || i == 0x16)

This introduces a warning:
    device.c: In function ‘test_query_support’:
    device.c:5566:38: warning: suggest parentheses around ‘&&’ within
‘||’ [-Wparentheses]
            if (D3DQUERYTYPE_VCACHE <= i && i <=
D3DQUERYTYPE_MEMORYPRESSURE || i == 0x16)



More information about the wine-devel mailing list