mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:50:49 +00:00
ddraw: Don't report unsupported device capabilities in d3d3_EnumDevices().
This commit is contained in:
parent
6c391ac139
commit
4f00a1f9e2
|
@ -3882,6 +3882,9 @@ static HRESULT WINAPI d3d3_EnumDevices(IDirect3D3 *iface, LPD3DENUMDEVICESCALLBA
|
|||
hal_desc.dcmColorModel = 0;
|
||||
/* RGB, RAMP and MMX devices cannot report HAL hardware flags */
|
||||
hal_desc.dwFlags = 0;
|
||||
/* RGB, REF, RAMP and MMX devices don't report hardware transform and lighting capability */
|
||||
hal_desc.dwDevCaps &= ~(D3DDEVCAPS_HWTRANSFORMANDLIGHT | D3DDEVCAPS_DRAWPRIMITIVES2EX);
|
||||
hel_desc.dwDevCaps &= ~(D3DDEVCAPS_HWTRANSFORMANDLIGHT | D3DDEVCAPS_DRAWPRIMITIVES2EX);
|
||||
|
||||
hr = callback((GUID *)&IID_IDirect3DRGBDevice, reference_description,
|
||||
device_name, &hal_desc, &hel_desc, context);
|
||||
|
@ -3906,6 +3909,8 @@ static HRESULT WINAPI d3d3_EnumDevices(IDirect3D3 *iface, LPD3DENUMDEVICESCALLBA
|
|||
| D3DPTEXTURECAPS_NONPOW2CONDITIONAL | D3DPTEXTURECAPS_PERSPECTIVE);
|
||||
/* HAL devices have a HEL dcmColorModel of 0 */
|
||||
hel_desc.dcmColorModel = 0;
|
||||
/* HAL devices report hardware transform and lighting capability, but not in hel */
|
||||
hel_desc.dwDevCaps &= ~(D3DDEVCAPS_HWTRANSFORMANDLIGHT | D3DDEVCAPS_DRAWPRIMITIVES2EX);
|
||||
|
||||
hr = callback((GUID *)&IID_IDirect3DHALDevice, wined3d_description,
|
||||
device_name, &hal_desc, &hel_desc, context);
|
||||
|
|
|
@ -15174,16 +15174,12 @@ static HRESULT WINAPI test_enum_devices_caps_callback(GUID *guid, char *device_d
|
|||
ok(hal->dwFlags == 0, "RGB Device hal caps has hardware flags %#lx\n", hal->dwFlags);
|
||||
ok(hel->dwFlags != 0, "RGB Device hel caps has hardware flags %#lx\n", hel->dwFlags);
|
||||
|
||||
todo_wine
|
||||
ok((hal->dwDevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT) == 0,
|
||||
"RGB Device hal device caps has D3DDEVCAPS_HWTRANSFORMANDLIGHT set\n");
|
||||
todo_wine
|
||||
ok((hel->dwDevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT) == 0,
|
||||
"RGB Device hel device caps has D3DDEVCAPS_HWTRANSFORMANDLIGHT set\n");
|
||||
todo_wine
|
||||
ok((hal->dwDevCaps & D3DDEVCAPS_DRAWPRIMITIVES2EX) == 0,
|
||||
"RGB Device hal device caps has D3DDEVCAPS_DRAWPRIMITIVES2EX set\n");
|
||||
todo_wine
|
||||
ok((hel->dwDevCaps & D3DDEVCAPS_DRAWPRIMITIVES2EX) == 0,
|
||||
"RGB Device hel device caps has D3DDEVCAPS_DRAWPRIMITIVES2EX set\n");
|
||||
}
|
||||
|
@ -15197,12 +15193,10 @@ static HRESULT WINAPI test_enum_devices_caps_callback(GUID *guid, char *device_d
|
|||
|
||||
ok(hal->dwDevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT,
|
||||
"HAL Device hal device caps does not have D3DDEVCAPS_HWTRANSFORMANDLIGHT set\n");
|
||||
todo_wine
|
||||
ok((hel->dwDevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT) == 0,
|
||||
"RGB Device hel device caps has D3DDEVCAPS_HWTRANSFORMANDLIGHT set\n");
|
||||
ok(hal->dwDevCaps & D3DDEVCAPS_DRAWPRIMITIVES2EX,
|
||||
"HAL Device hal device caps does not have D3DDEVCAPS_DRAWPRIMITIVES2EX set\n");
|
||||
todo_wine
|
||||
ok((hel->dwDevCaps & D3DDEVCAPS_DRAWPRIMITIVES2EX) == 0,
|
||||
"RGB Device hel device caps has D3DDEVCAPS_DRAWPRIMITIVES2EX set\n");
|
||||
}
|
||||
|
|
|
@ -16120,16 +16120,12 @@ static HRESULT WINAPI test_enum_devices_caps_callback(GUID *guid, char *device_d
|
|||
ok(hal->dwFlags == 0, "RGB Device hal caps has hardware flags %#lx\n", hal->dwFlags);
|
||||
ok(hel->dwFlags != 0, "RGB Device hel caps has hardware flags %#lx\n", hel->dwFlags);
|
||||
|
||||
todo_wine
|
||||
ok((hal->dwDevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT) == 0,
|
||||
"RGB Device hal device caps has D3DDEVCAPS_HWTRANSFORMANDLIGHT set\n");
|
||||
todo_wine
|
||||
ok((hel->dwDevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT) == 0,
|
||||
"RGB Device hel device caps has D3DDEVCAPS_HWTRANSFORMANDLIGHT set\n");
|
||||
todo_wine
|
||||
ok((hal->dwDevCaps & D3DDEVCAPS_DRAWPRIMITIVES2EX) == 0,
|
||||
"RGB Device hal device caps has D3DDEVCAPS_DRAWPRIMITIVES2EX set\n");
|
||||
todo_wine
|
||||
ok((hel->dwDevCaps & D3DDEVCAPS_DRAWPRIMITIVES2EX) == 0,
|
||||
"RGB Device hel device caps has D3DDEVCAPS_DRAWPRIMITIVES2EX set\n");
|
||||
}
|
||||
|
@ -16143,12 +16139,10 @@ static HRESULT WINAPI test_enum_devices_caps_callback(GUID *guid, char *device_d
|
|||
|
||||
ok(hal->dwDevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT,
|
||||
"HAL Device hal device caps does not have D3DDEVCAPS_HWTRANSFORMANDLIGHT set\n");
|
||||
todo_wine
|
||||
ok((hel->dwDevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT) == 0,
|
||||
"RGB Device hel device caps has D3DDEVCAPS_HWTRANSFORMANDLIGHT set\n");
|
||||
ok(hal->dwDevCaps & D3DDEVCAPS_DRAWPRIMITIVES2EX,
|
||||
"HAL Device hal device caps does not have D3DDEVCAPS_DRAWPRIMITIVES2EX set\n");
|
||||
todo_wine
|
||||
ok((hel->dwDevCaps & D3DDEVCAPS_DRAWPRIMITIVES2EX) == 0,
|
||||
"RGB Device hel device caps has D3DDEVCAPS_DRAWPRIMITIVES2EX set\n");
|
||||
}
|
||||
|
|
|
@ -19189,16 +19189,12 @@ static HRESULT WINAPI test_enum_devices_caps_callback(GUID *guid, char *device_d
|
|||
ok(hal->dwFlags == 0, "RGB Device hal caps has hardware flags %#lx\n", hal->dwFlags);
|
||||
ok(hel->dwFlags != 0, "RGB Device hel caps has hardware flags %#lx\n", hel->dwFlags);
|
||||
|
||||
todo_wine
|
||||
ok((hal->dwDevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT) == 0,
|
||||
"RGB Device hal device caps has D3DDEVCAPS_HWTRANSFORMANDLIGHT set\n");
|
||||
todo_wine
|
||||
ok((hel->dwDevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT) == 0,
|
||||
"RGB Device hel device caps has D3DDEVCAPS_HWTRANSFORMANDLIGHT set\n");
|
||||
todo_wine
|
||||
ok((hal->dwDevCaps & D3DDEVCAPS_DRAWPRIMITIVES2EX) == 0,
|
||||
"RGB Device hal device caps has D3DDEVCAPS_DRAWPRIMITIVES2EX set\n");
|
||||
todo_wine
|
||||
ok((hel->dwDevCaps & D3DDEVCAPS_DRAWPRIMITIVES2EX) == 0,
|
||||
"RGB Device hel device caps has D3DDEVCAPS_DRAWPRIMITIVES2EX set\n");
|
||||
}
|
||||
|
@ -19212,12 +19208,10 @@ static HRESULT WINAPI test_enum_devices_caps_callback(GUID *guid, char *device_d
|
|||
|
||||
ok(hal->dwDevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT,
|
||||
"HAL Device hal device caps does not have D3DDEVCAPS_HWTRANSFORMANDLIGHT set\n");
|
||||
todo_wine
|
||||
ok((hel->dwDevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT) == 0,
|
||||
"RGB Device hel device caps has D3DDEVCAPS_HWTRANSFORMANDLIGHT set\n");
|
||||
ok(hal->dwDevCaps & D3DDEVCAPS_DRAWPRIMITIVES2EX,
|
||||
"HAL Device hal device caps does not have D3DDEVCAPS_DRAWPRIMITIVES2EX set\n");
|
||||
todo_wine
|
||||
ok((hel->dwDevCaps & D3DDEVCAPS_DRAWPRIMITIVES2EX) == 0,
|
||||
"RGB Device hel device caps has D3DDEVCAPS_DRAWPRIMITIVES2EX set\n");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue