wined3d: Always report WINEDDSCAPS_TEXTURE, WINEDDSCAPS_ZBUFFER and WINEDDSCAPS_MIPMAP.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1500693828
commit
5eca371a6c
|
@ -12894,7 +12894,6 @@ static void test_caps(void)
|
|||
DDCAPS hal_caps, hel_caps;
|
||||
IDirectDraw *ddraw;
|
||||
HRESULT hr;
|
||||
BOOL no3d;
|
||||
|
||||
caps_never = DDSCAPS_RESERVED1
|
||||
| DDSCAPS_ALPHA
|
||||
|
@ -12945,17 +12944,14 @@ static void test_caps(void)
|
|||
"Got unexpected caps %#x, expected %#x.\n",
|
||||
hel_caps.ddsOldCaps.dwCaps, hel_caps.ddsCaps.dwCaps);
|
||||
|
||||
no3d = !(hal_caps.ddsCaps.dwCaps & DDSCAPS_3DDEVICE);
|
||||
if (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);
|
||||
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);
|
||||
}
|
||||
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);
|
||||
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);
|
||||
|
||||
IDirectDraw_Release(ddraw);
|
||||
|
@ -12979,8 +12975,7 @@ static void test_caps(void)
|
|||
hel_caps.ddsOldCaps.dwCaps, hel_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);
|
||||
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, "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
|
||||
|
@ -13005,8 +13000,7 @@ static void test_caps(void)
|
|||
|
||||
todo_wine ok(!hal_caps.ddsCaps.dwCaps, "Got unexpected caps %#x.\n", hal_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);
|
||||
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);
|
||||
|
||||
IDirectDraw_Release(ddraw);
|
||||
|
|
|
@ -13771,7 +13771,6 @@ static void test_caps(void)
|
|||
IDirectDraw2 *ddraw;
|
||||
IDirectDraw *ddraw1;
|
||||
HRESULT hr;
|
||||
BOOL no3d;
|
||||
|
||||
caps_never = DDSCAPS_RESERVED1
|
||||
| DDSCAPS_ALPHA
|
||||
|
@ -13822,17 +13821,14 @@ static void test_caps(void)
|
|||
"Got unexpected caps %#x, expected %#x.\n",
|
||||
hel_caps.ddsOldCaps.dwCaps, hel_caps.ddsCaps.dwCaps);
|
||||
|
||||
no3d = !(hal_caps.ddsCaps.dwCaps & DDSCAPS_3DDEVICE);
|
||||
if (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);
|
||||
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);
|
||||
}
|
||||
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);
|
||||
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);
|
||||
|
||||
IDirectDraw2_Release(ddraw);
|
||||
|
@ -13859,8 +13855,7 @@ static void test_caps(void)
|
|||
hel_caps.ddsOldCaps.dwCaps, hel_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);
|
||||
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, "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
|
||||
|
@ -13888,8 +13883,7 @@ static void test_caps(void)
|
|||
|
||||
todo_wine ok(!hal_caps.ddsCaps.dwCaps, "Got unexpected caps %#x.\n", hal_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);
|
||||
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);
|
||||
|
||||
IDirectDraw2_Release(ddraw);
|
||||
|
|
|
@ -16332,7 +16332,6 @@ static void test_caps(void)
|
|||
IDirectDraw4 *ddraw;
|
||||
IDirectDraw *ddraw1;
|
||||
HRESULT hr;
|
||||
BOOL no3d;
|
||||
|
||||
caps_never = DDSCAPS_RESERVED1
|
||||
| DDSCAPS_ALPHA
|
||||
|
@ -16383,17 +16382,14 @@ static void test_caps(void)
|
|||
"Got unexpected caps %#x, expected %#x.\n",
|
||||
hel_caps.ddsOldCaps.dwCaps, hel_caps.ddsCaps.dwCaps);
|
||||
|
||||
no3d = !(hal_caps.ddsCaps.dwCaps & DDSCAPS_3DDEVICE);
|
||||
if (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);
|
||||
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);
|
||||
}
|
||||
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);
|
||||
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);
|
||||
|
||||
IDirectDraw4_Release(ddraw);
|
||||
|
@ -16420,8 +16416,7 @@ static void test_caps(void)
|
|||
hel_caps.ddsOldCaps.dwCaps, hel_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);
|
||||
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, "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
|
||||
|
@ -16449,8 +16444,7 @@ static void test_caps(void)
|
|||
|
||||
todo_wine ok(!hal_caps.ddsCaps.dwCaps, "Got unexpected caps %#x.\n", hal_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);
|
||||
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);
|
||||
|
||||
IDirectDraw4_Release(ddraw);
|
||||
|
|
|
@ -16304,7 +16304,6 @@ static void test_caps(void)
|
|||
DDCAPS hal_caps, hel_caps;
|
||||
IDirectDraw7 *ddraw;
|
||||
HRESULT hr;
|
||||
BOOL no3d;
|
||||
|
||||
caps_never = DDSCAPS_RESERVED1
|
||||
| DDSCAPS_ALPHA
|
||||
|
@ -16355,17 +16354,14 @@ static void test_caps(void)
|
|||
"Got unexpected caps %#x, expected %#x.\n",
|
||||
hel_caps.ddsOldCaps.dwCaps, hel_caps.ddsCaps.dwCaps);
|
||||
|
||||
no3d = !(hal_caps.ddsCaps.dwCaps & DDSCAPS_3DDEVICE);
|
||||
if (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);
|
||||
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);
|
||||
}
|
||||
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);
|
||||
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);
|
||||
|
||||
IDirectDraw7_Release(ddraw);
|
||||
|
@ -16389,8 +16385,7 @@ static void test_caps(void)
|
|||
hel_caps.ddsOldCaps.dwCaps, hel_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);
|
||||
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, "Got unexpected caps %#x.\n", hel_caps.ddsCaps.dwCaps);
|
||||
|
||||
|
@ -16415,8 +16410,7 @@ static void test_caps(void)
|
|||
|
||||
todo_wine ok(!hal_caps.ddsCaps.dwCaps, "Got unexpected caps %#x.\n", hal_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);
|
||||
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);
|
||||
|
||||
IDirectDraw7_Release(ddraw);
|
||||
|
|
|
@ -4372,10 +4372,7 @@ static void adapter_gl_get_wined3d_caps(const struct wined3d_adapter *adapter, s
|
|||
const struct wined3d_gl_info *gl_info = &adapter->gl_info;
|
||||
|
||||
caps->ddraw_caps.dds_caps |= WINEDDSCAPS_3DDEVICE
|
||||
| WINEDDSCAPS_MIPMAP
|
||||
| WINEDDSCAPS_TEXTURE
|
||||
| WINEDDSCAPS_VIDEOMEMORY
|
||||
| WINEDDSCAPS_ZBUFFER;
|
||||
| WINEDDSCAPS_VIDEOMEMORY;
|
||||
caps->ddraw_caps.caps |= WINEDDCAPS_3D;
|
||||
|
||||
if (gl_info->supported[ARB_FRAMEBUFFER_OBJECT] || gl_info->supported[EXT_FRAMEBUFFER_OBJECT])
|
||||
|
|
|
@ -298,10 +298,7 @@ static void adapter_vk_get_wined3d_caps(const struct wined3d_adapter *adapter, s
|
|||
BOOL sampler_anisotropy = limits->maxSamplerAnisotropy > 1.0f;
|
||||
|
||||
caps->ddraw_caps.dds_caps |= WINEDDSCAPS_3DDEVICE
|
||||
| WINEDDSCAPS_MIPMAP
|
||||
| WINEDDSCAPS_TEXTURE
|
||||
| WINEDDSCAPS_VIDEOMEMORY
|
||||
| WINEDDSCAPS_ZBUFFER;
|
||||
| WINEDDSCAPS_VIDEOMEMORY;
|
||||
caps->ddraw_caps.caps |= WINEDDCAPS_3D;
|
||||
|
||||
caps->Caps2 |= WINED3DCAPS2_CANGENMIPMAP;
|
||||
|
|
|
@ -2197,7 +2197,10 @@ HRESULT CDECL wined3d_get_device_caps(const struct wined3d *wined3d, unsigned in
|
|||
| WINEDDSCAPS_FRONTBUFFER
|
||||
| WINEDDSCAPS_OFFSCREENPLAIN
|
||||
| WINEDDSCAPS_PALETTE
|
||||
| WINEDDSCAPS_PRIMARYSURFACE;
|
||||
| WINEDDSCAPS_PRIMARYSURFACE
|
||||
| WINEDDSCAPS_TEXTURE
|
||||
| WINEDDSCAPS_ZBUFFER
|
||||
| WINEDDSCAPS_MIPMAP;
|
||||
|
||||
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 New Issue