d3d9/tests: Windows 10 17.09 added an undocumented query type.
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e95492bc83
commit
d334097c09
@ -187,7 +187,11 @@ HRESULT query_init(struct d3d9_query *query, struct d3d9_device *device, D3DQUER
|
|||||||
|
|
||||||
if (type > D3DQUERYTYPE_MEMORYPRESSURE)
|
if (type > D3DQUERYTYPE_MEMORYPRESSURE)
|
||||||
{
|
{
|
||||||
WARN("Invalid query type %#x.\n", type);
|
if (type == 0x16)
|
||||||
|
FIXME("Undocumented query %#x created.\n", type);
|
||||||
|
else
|
||||||
|
WARN("Invalid query type %#x.\n", type);
|
||||||
|
|
||||||
return D3DERR_NOTAVAILABLE;
|
return D3DERR_NOTAVAILABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5561,7 +5561,9 @@ static void test_query_support(void)
|
|||||||
|
|
||||||
for (i = 0; i < 40; ++i)
|
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)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
hr = IDirect3DDevice9_CreateQuery(device, i, NULL);
|
hr = IDirect3DDevice9_CreateQuery(device, i, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user