mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 19:18:42 +00:00
wined3d: Never report WINEDDSCAPS_ALPHA, WINEDDSCAPS_SYSTEMMEMORY and WINEDDSCAPS_VISIBLE.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1d26724d74
commit
1500693828
5 changed files with 18 additions and 21 deletions
|
@ -12948,12 +12948,12 @@ static void test_caps(void)
|
|||
no3d = !(hal_caps.ddsCaps.dwCaps & DDSCAPS_3DDEVICE);
|
||||
if (hal_caps.ddsCaps.dwCaps)
|
||||
{
|
||||
todo_wine ok(!(hal_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
ok(!(hal_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine_if(no3d) ok(!(~hal_caps.ddsCaps.dwCaps & caps_always),
|
||||
"Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(~hal_caps.ddsCaps.dwCaps & caps_hal), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
}
|
||||
todo_wine ok(!(hel_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
ok(!(hel_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
todo_wine_if(no3d) ok(!(~hel_caps.ddsCaps.dwCaps & caps_always),
|
||||
"Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(hel_caps.ddsCaps.dwCaps & caps_hal), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
|
@ -12978,7 +12978,7 @@ static void test_caps(void)
|
|||
"Got unexpected caps %#x, expected %#x.\n",
|
||||
hel_caps.ddsOldCaps.dwCaps, hel_caps.ddsCaps.dwCaps);
|
||||
|
||||
todo_wine ok(!(hal_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
ok(!(hal_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine_if(no3d) ok(!(~hal_caps.ddsCaps.dwCaps & caps_always),
|
||||
"Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(~hal_caps.ddsCaps.dwCaps & caps_hal), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
|
@ -13004,7 +13004,7 @@ static void test_caps(void)
|
|||
hel_caps.ddsOldCaps.dwCaps, hel_caps.ddsCaps.dwCaps);
|
||||
|
||||
todo_wine ok(!hal_caps.ddsCaps.dwCaps, "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(hel_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
ok(!(hel_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
todo_wine_if(no3d) ok(!(~hel_caps.ddsCaps.dwCaps & caps_always),
|
||||
"Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(hel_caps.ddsCaps.dwCaps & caps_hal), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
|
|
|
@ -13825,12 +13825,12 @@ static void test_caps(void)
|
|||
no3d = !(hal_caps.ddsCaps.dwCaps & DDSCAPS_3DDEVICE);
|
||||
if (hal_caps.ddsCaps.dwCaps)
|
||||
{
|
||||
todo_wine ok(!(hal_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
ok(!(hal_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine_if(no3d) ok(!(~hal_caps.ddsCaps.dwCaps & caps_always),
|
||||
"Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(~hal_caps.ddsCaps.dwCaps & caps_hal), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
}
|
||||
todo_wine ok(!(hel_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
ok(!(hel_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
todo_wine_if(no3d) ok(!(~hel_caps.ddsCaps.dwCaps & caps_always),
|
||||
"Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(hel_caps.ddsCaps.dwCaps & caps_hal), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
|
@ -13858,7 +13858,7 @@ static void test_caps(void)
|
|||
"Got unexpected caps %#x, expected %#x.\n",
|
||||
hel_caps.ddsOldCaps.dwCaps, hel_caps.ddsCaps.dwCaps);
|
||||
|
||||
todo_wine ok(!(hal_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
ok(!(hal_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine_if(no3d) ok(!(~hal_caps.ddsCaps.dwCaps & caps_always),
|
||||
"Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(~hal_caps.ddsCaps.dwCaps & caps_hal), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
|
@ -13887,7 +13887,7 @@ static void test_caps(void)
|
|||
hel_caps.ddsOldCaps.dwCaps, hel_caps.ddsCaps.dwCaps);
|
||||
|
||||
todo_wine ok(!hal_caps.ddsCaps.dwCaps, "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(hel_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
ok(!(hel_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
todo_wine_if(no3d) ok(!(~hel_caps.ddsCaps.dwCaps & caps_always),
|
||||
"Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(hel_caps.ddsCaps.dwCaps & caps_hal), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
|
|
|
@ -16386,12 +16386,12 @@ static void test_caps(void)
|
|||
no3d = !(hal_caps.ddsCaps.dwCaps & DDSCAPS_3DDEVICE);
|
||||
if (hal_caps.ddsCaps.dwCaps)
|
||||
{
|
||||
todo_wine ok(!(hal_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
ok(!(hal_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine_if(no3d) ok(!(~hal_caps.ddsCaps.dwCaps & caps_always),
|
||||
"Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(~hal_caps.ddsCaps.dwCaps & caps_hal), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
}
|
||||
todo_wine ok(!(hel_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
ok(!(hel_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
todo_wine_if(no3d) ok(!(~hel_caps.ddsCaps.dwCaps & caps_always),
|
||||
"Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(hel_caps.ddsCaps.dwCaps & caps_hal), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
|
@ -16419,7 +16419,7 @@ static void test_caps(void)
|
|||
"Got unexpected caps %#x, expected %#x.\n",
|
||||
hel_caps.ddsOldCaps.dwCaps, hel_caps.ddsCaps.dwCaps);
|
||||
|
||||
todo_wine ok(!(hal_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
ok(!(hal_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine_if(no3d) ok(!(~hal_caps.ddsCaps.dwCaps & caps_always),
|
||||
"Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(~hal_caps.ddsCaps.dwCaps & caps_hal), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
|
@ -16448,7 +16448,7 @@ static void test_caps(void)
|
|||
hel_caps.ddsOldCaps.dwCaps, hel_caps.ddsCaps.dwCaps);
|
||||
|
||||
todo_wine ok(!hal_caps.ddsCaps.dwCaps, "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(hel_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
ok(!(hel_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
todo_wine_if(no3d) ok(!(~hel_caps.ddsCaps.dwCaps & caps_always),
|
||||
"Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(hel_caps.ddsCaps.dwCaps & caps_hal), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
|
|
|
@ -16358,12 +16358,12 @@ static void test_caps(void)
|
|||
no3d = !(hal_caps.ddsCaps.dwCaps & DDSCAPS_3DDEVICE);
|
||||
if (hal_caps.ddsCaps.dwCaps)
|
||||
{
|
||||
todo_wine ok(!(hal_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
ok(!(hal_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine_if(no3d) ok(!(~hal_caps.ddsCaps.dwCaps & caps_always),
|
||||
"Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(~hal_caps.ddsCaps.dwCaps & caps_hal), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
}
|
||||
todo_wine ok(!(hel_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
ok(!(hel_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
todo_wine_if(no3d) ok(!(~hel_caps.ddsCaps.dwCaps & caps_always),
|
||||
"Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(hel_caps.ddsCaps.dwCaps & caps_hal), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
|
@ -16388,7 +16388,7 @@ static void test_caps(void)
|
|||
"Got unexpected caps %#x, expected %#x.\n",
|
||||
hel_caps.ddsOldCaps.dwCaps, hel_caps.ddsCaps.dwCaps);
|
||||
|
||||
todo_wine ok(!(hal_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
ok(!(hal_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine_if(no3d) ok(!(~hal_caps.ddsCaps.dwCaps & caps_always),
|
||||
"Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(~hal_caps.ddsCaps.dwCaps & caps_hal), "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
|
@ -16414,7 +16414,7 @@ static void test_caps(void)
|
|||
hel_caps.ddsOldCaps.dwCaps, hel_caps.ddsCaps.dwCaps);
|
||||
|
||||
todo_wine ok(!hal_caps.ddsCaps.dwCaps, "Got unexpected caps %#x.\n", hal_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(hel_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
ok(!(hel_caps.ddsCaps.dwCaps & caps_never), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
todo_wine_if(no3d) ok(!(~hel_caps.ddsCaps.dwCaps & caps_always),
|
||||
"Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
todo_wine ok(!(hel_caps.ddsCaps.dwCaps & caps_hal), "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
|
|
|
@ -2192,15 +2192,12 @@ HRESULT CDECL wined3d_get_device_caps(const struct wined3d *wined3d, unsigned in
|
|||
caps->ddraw_caps.ssb_color_key_caps = ckey_caps;
|
||||
caps->ddraw_caps.ssb_fx_caps = fx_caps;
|
||||
|
||||
caps->ddraw_caps.dds_caps = WINEDDSCAPS_ALPHA
|
||||
| WINEDDSCAPS_BACKBUFFER
|
||||
caps->ddraw_caps.dds_caps = WINEDDSCAPS_BACKBUFFER
|
||||
| WINEDDSCAPS_FLIP
|
||||
| WINEDDSCAPS_FRONTBUFFER
|
||||
| WINEDDSCAPS_OFFSCREENPLAIN
|
||||
| WINEDDSCAPS_PALETTE
|
||||
| WINEDDSCAPS_PRIMARYSURFACE
|
||||
| WINEDDSCAPS_SYSTEMMEMORY
|
||||
| WINEDDSCAPS_VISIBLE;
|
||||
| WINEDDSCAPS_PRIMARYSURFACE;
|
||||
|
||||
caps->shader_double_precision = d3d_info->shader_double_precision;
|
||||
caps->viewport_array_index_any_shader = d3d_info->viewport_array_index_any_shader;
|
||||
|
|
Loading…
Reference in a new issue