mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-07 05:04:05 +00:00
d3d9/tests: Do not test sysmem textures in test_mipmap_upload().
This does not work reliably on Windows. The application in question uses a managed texture. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53743
This commit is contained in:
parent
78cbd9a497
commit
4e1da07b27
|
@ -27966,11 +27966,11 @@ static void test_managed_generate_mipmap(void)
|
|||
release_test_context(&context);
|
||||
}
|
||||
|
||||
/* Some applications lock a mipmapped texture at level 0, write every level at
|
||||
* once, and expect it to be uploaded. */
|
||||
/* Some applications (Vivisector, Cryostasis) lock a mipmapped managed texture
|
||||
* at level 0, write every level at once, and expect it to be uploaded. */
|
||||
static void test_mipmap_upload(void)
|
||||
{
|
||||
unsigned int i, j, width, level_count;
|
||||
unsigned int j, width, level_count;
|
||||
struct d3d9_test_context context;
|
||||
IDirect3DTexture9 *texture;
|
||||
D3DLOCKED_RECT locked_rect;
|
||||
|
@ -27978,22 +27978,12 @@ static void test_mipmap_upload(void)
|
|||
unsigned int *mem;
|
||||
HRESULT hr;
|
||||
|
||||
static const D3DPOOL pools[] =
|
||||
{
|
||||
D3DPOOL_MANAGED,
|
||||
D3DPOOL_SYSTEMMEM,
|
||||
};
|
||||
|
||||
if (!init_test_context(&context))
|
||||
return;
|
||||
device = context.device;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(pools); ++i)
|
||||
{
|
||||
winetest_push_context("pool %#x", pools[i]);
|
||||
|
||||
hr = IDirect3DDevice9_CreateTexture(device, 32, 32, 0, 0,
|
||||
D3DFMT_A8R8G8B8, pools[i], &texture, NULL);
|
||||
D3DFMT_A8R8G8B8, D3DPOOL_MANAGED, &texture, NULL);
|
||||
ok(hr == S_OK, "Got hr %#lx.\n", hr);
|
||||
|
||||
level_count = IDirect3DBaseTexture9_GetLevelCount(texture);
|
||||
|
@ -28026,16 +28016,12 @@ static void test_mipmap_upload(void)
|
|||
ok(hr == S_OK, "Got hr %#lx.\n", hr);
|
||||
|
||||
draw_textured_quad(&context, texture);
|
||||
/* AMD Windows drivers don't sample from sysmem textures. */
|
||||
check_rt_color_broken(context.backbuffer, 0x00111111 * (j + 1), 0x00000000, pools[i] == D3DPOOL_SYSTEMMEM);
|
||||
check_rt_color(context.backbuffer, 0x00111111 * (j + 1));
|
||||
|
||||
winetest_pop_context();
|
||||
}
|
||||
|
||||
IDirect3DTexture9_Release(texture);
|
||||
|
||||
winetest_pop_context();
|
||||
}
|
||||
release_test_context(&context);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue