mirror of
https://github.com/reactos/wine.git
synced 2025-01-30 16:44:21 +00:00
ddraw/tests: Test DDSCAPS2_D3DTEXTUREMANAGE.
This commit is contained in:
parent
db68ffcba1
commit
a562af5ace
@ -3813,10 +3813,16 @@ static void test_texturemanage(void)
|
||||
{
|
||||
{DDSCAPS_SYSTEMMEMORY | DDSCAPS_TEXTURE, DDSCAPS2_TEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{DDSCAPS_SYSTEMMEMORY | DDSCAPS_TEXTURE, DDSCAPS2_D3DTEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{DDSCAPS_VIDEOMEMORY | DDSCAPS_TEXTURE, DDSCAPS2_TEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{DDSCAPS_VIDEOMEMORY | DDSCAPS_TEXTURE, DDSCAPS2_D3DTEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{DDSCAPS_TEXTURE, DDSCAPS2_TEXTUREMANAGE, DD_OK,
|
||||
DDSCAPS_SYSTEMMEMORY | DDSCAPS_TEXTURE, DDSCAPS2_TEXTUREMANAGE},
|
||||
{DDSCAPS_TEXTURE, DDSCAPS2_D3DTEXTUREMANAGE, DD_OK,
|
||||
DDSCAPS_SYSTEMMEMORY | DDSCAPS_TEXTURE, DDSCAPS2_D3DTEXTUREMANAGE},
|
||||
{DDSCAPS_VIDEOMEMORY | DDSCAPS_TEXTURE, 0, DD_OK,
|
||||
DDSCAPS_VIDEOMEMORY | DDSCAPS_TEXTURE | DDSCAPS_LOCALVIDMEM, 0},
|
||||
{DDSCAPS_SYSTEMMEMORY | DDSCAPS_TEXTURE, 0, DD_OK,
|
||||
@ -3824,10 +3830,16 @@ static void test_texturemanage(void)
|
||||
|
||||
{0, DDSCAPS2_TEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{0, DDSCAPS2_D3DTEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{DDSCAPS_SYSTEMMEMORY, DDSCAPS2_TEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{DDSCAPS_SYSTEMMEMORY, DDSCAPS2_D3DTEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{DDSCAPS_VIDEOMEMORY, DDSCAPS2_TEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{DDSCAPS_VIDEOMEMORY, DDSCAPS2_D3DTEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{DDSCAPS_VIDEOMEMORY, 0, DD_OK,
|
||||
DDSCAPS_LOCALVIDMEM | DDSCAPS_VIDEOMEMORY, 0},
|
||||
{DDSCAPS_SYSTEMMEMORY, 0, DD_OK,
|
||||
@ -4587,11 +4599,21 @@ static void test_surface_lock(void)
|
||||
DDSCAPS2_TEXTUREMANAGE,
|
||||
"managed texture"
|
||||
},
|
||||
{
|
||||
DDSCAPS_TEXTURE,
|
||||
DDSCAPS2_D3DTEXTUREMANAGE,
|
||||
"managed texture"
|
||||
},
|
||||
{
|
||||
DDSCAPS_TEXTURE,
|
||||
DDSCAPS2_TEXTUREMANAGE | DDSCAPS2_OPAQUE,
|
||||
"opaque managed texture"
|
||||
},
|
||||
{
|
||||
DDSCAPS_TEXTURE,
|
||||
DDSCAPS2_D3DTEXTUREMANAGE | DDSCAPS2_OPAQUE,
|
||||
"opaque managed texture"
|
||||
},
|
||||
{
|
||||
DDSCAPS_OFFSCREENPLAIN | DDSCAPS_3DDEVICE,
|
||||
0,
|
||||
|
@ -3626,10 +3626,16 @@ static void test_texturemanage(void)
|
||||
{
|
||||
{DDSCAPS_SYSTEMMEMORY | DDSCAPS_TEXTURE, DDSCAPS2_TEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{DDSCAPS_SYSTEMMEMORY | DDSCAPS_TEXTURE, DDSCAPS2_D3DTEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{DDSCAPS_VIDEOMEMORY | DDSCAPS_TEXTURE, DDSCAPS2_TEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{DDSCAPS_VIDEOMEMORY | DDSCAPS_TEXTURE, DDSCAPS2_D3DTEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{DDSCAPS_TEXTURE, DDSCAPS2_TEXTUREMANAGE, DD_OK,
|
||||
DDSCAPS_SYSTEMMEMORY | DDSCAPS_TEXTURE, DDSCAPS2_TEXTUREMANAGE},
|
||||
{DDSCAPS_TEXTURE, DDSCAPS2_D3DTEXTUREMANAGE, DD_OK,
|
||||
DDSCAPS_SYSTEMMEMORY | DDSCAPS_TEXTURE, DDSCAPS2_D3DTEXTUREMANAGE},
|
||||
{DDSCAPS_VIDEOMEMORY | DDSCAPS_TEXTURE, 0, DD_OK,
|
||||
DDSCAPS_VIDEOMEMORY | DDSCAPS_TEXTURE | DDSCAPS_LOCALVIDMEM, 0},
|
||||
{DDSCAPS_SYSTEMMEMORY | DDSCAPS_TEXTURE, 0, DD_OK,
|
||||
@ -3637,10 +3643,16 @@ static void test_texturemanage(void)
|
||||
|
||||
{0, DDSCAPS2_TEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{0, DDSCAPS2_D3DTEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{DDSCAPS_SYSTEMMEMORY, DDSCAPS2_TEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{DDSCAPS_SYSTEMMEMORY, DDSCAPS2_D3DTEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{DDSCAPS_VIDEOMEMORY, DDSCAPS2_TEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{DDSCAPS_VIDEOMEMORY, DDSCAPS2_D3DTEXTUREMANAGE, DDERR_INVALIDCAPS,
|
||||
~0U, ~0U},
|
||||
{DDSCAPS_VIDEOMEMORY, 0, DD_OK,
|
||||
DDSCAPS_LOCALVIDMEM | DDSCAPS_VIDEOMEMORY, 0},
|
||||
{DDSCAPS_SYSTEMMEMORY, 0, DD_OK,
|
||||
@ -4412,11 +4424,21 @@ static void test_surface_lock(void)
|
||||
DDSCAPS2_TEXTUREMANAGE,
|
||||
"managed texture"
|
||||
},
|
||||
{
|
||||
DDSCAPS_TEXTURE,
|
||||
DDSCAPS2_D3DTEXTUREMANAGE,
|
||||
"managed texture"
|
||||
},
|
||||
{
|
||||
DDSCAPS_TEXTURE,
|
||||
DDSCAPS2_TEXTUREMANAGE | DDSCAPS2_OPAQUE,
|
||||
"opaque managed texture"
|
||||
},
|
||||
{
|
||||
DDSCAPS_TEXTURE,
|
||||
DDSCAPS2_D3DTEXTUREMANAGE | DDSCAPS2_OPAQUE,
|
||||
"opaque managed texture"
|
||||
},
|
||||
{
|
||||
DDSCAPS_OFFSCREENPLAIN | DDSCAPS_3DDEVICE,
|
||||
0,
|
||||
@ -4447,11 +4469,21 @@ static void test_surface_lock(void)
|
||||
DDSCAPS2_TEXTUREMANAGE | DDSCAPS2_CUBEMAP | DDSCAPS2_CUBEMAP_ALLFACES,
|
||||
"managed cube"
|
||||
},
|
||||
{
|
||||
DDSCAPS_TEXTURE | DDSCAPS_COMPLEX,
|
||||
DDSCAPS2_D3DTEXTUREMANAGE | DDSCAPS2_CUBEMAP | DDSCAPS2_CUBEMAP_ALLFACES,
|
||||
"managed cube"
|
||||
},
|
||||
{
|
||||
DDSCAPS_TEXTURE | DDSCAPS_COMPLEX,
|
||||
DDSCAPS2_TEXTUREMANAGE | DDSCAPS2_CUBEMAP | DDSCAPS2_CUBEMAP_ALLFACES | DDSCAPS2_OPAQUE,
|
||||
"opaque managed cube"
|
||||
},
|
||||
{
|
||||
DDSCAPS_TEXTURE | DDSCAPS_COMPLEX,
|
||||
DDSCAPS2_D3DTEXTUREMANAGE | DDSCAPS2_CUBEMAP | DDSCAPS2_CUBEMAP_ALLFACES | DDSCAPS2_OPAQUE,
|
||||
"opaque managed cube"
|
||||
},
|
||||
};
|
||||
|
||||
if (!(ddraw = create_ddraw()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user