Commit cc3d8ec6 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3d9/tests: Add more tests for D3DUSAGE_AUTOGENMIPMAP expected failures.

parent bd7a48c2
......@@ -7319,6 +7319,10 @@ static void test_mipmap_gen(void)
for (i = 0; i < ARRAY_SIZE(formats); ++i)
{
hr = IDirect3D9_CheckDeviceFormat(d3d, 0, D3DDEVTYPE_HAL, D3DFMT_A8R8G8B8,
D3DUSAGE_DYNAMIC | D3DUSAGE_AUTOGENMIPMAP, D3DRTYPE_TEXTURE, formats[i]);
ok(hr == D3DERR_NOTAVAILABLE, "Got unexpected hr %#x.\n", hr);
hr = IDirect3D9_CheckDeviceFormat(d3d, 0, D3DDEVTYPE_HAL, D3DFMT_X8R8G8B8,
D3DUSAGE_AUTOGENMIPMAP, D3DRTYPE_TEXTURE, formats[i]);
if (SUCCEEDED(hr))
......@@ -7326,6 +7330,10 @@ static void test_mipmap_gen(void)
/* i.e. there is no difference between the D3D_OK and the
* D3DOK_NOAUTOGEN cases. */
hr = IDirect3DDevice9_CreateTexture(device, 64, 64, 0, D3DUSAGE_AUTOGENMIPMAP,
formats[i], D3DPOOL_SYSTEMMEM, &texture, 0);
ok(hr == D3DERR_INVALIDCALL, "Unexpected hr %#x.\n", hr);
hr = IDirect3DDevice9_CreateTexture(device, 64, 64, 0, D3DUSAGE_AUTOGENMIPMAP,
formats[i], D3DPOOL_DEFAULT, &texture, 0);
ok(hr == D3D_OK, "Unexpected hr %#x.\n", hr);
count = IDirect3DTexture9_GetLevelCount(texture);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment