Commit Graph

23 Commits

Author SHA1 Message Date
Henri Verbeet 1b9a6fb4e9 d3d9: Fix some sign compare warnings. 2009-03-09 14:44:09 +01:00
Henri Verbeet 664b58dc6f d3d: Make sure the device is properly released when exiting the tests. 2008-12-29 12:16:35 +01:00
Chris Robinson 0bdab5f80c d3d9: Use the correct size for D3DFVF_XYZW. 2008-12-29 11:49:54 +01:00
Henri Verbeet 4adb342327 wined3d: Remove GetFVF() and SetFVF() from IWineD3DDevice. 2008-12-17 14:02:03 +01:00
Huw Davies 12b9d37120 d3d9/tests: Skip tests if we can't create the D3D9 object. 2008-12-04 12:51:20 +01:00
Stefan Dösinger b554cdbb5a d3d: D3DDECLTYPE_UNUSED is not valid in vertex declarations. 2008-07-24 11:55:42 +02:00
Dmitry Timoshkov 1c8994247e d3d9: Avoid a not needed address-of operator. 2008-06-06 10:29:18 +02:00
Stefan Dösinger 998426e6b7 d3d9: Accept D3DDEVTYPE_REF devices in the vertex declaration test. 2007-12-21 13:44:21 +01:00
Stefan Dösinger 8ff517eeb9 wined3d: Vertex attributes are 4 byte aligned. 2007-12-21 13:43:58 +01:00
Stefan Dösinger 725f4bfeb1 d3d9: Rework the converted vertex declaration management.
Instead of creating a converted declaration each time SetFVF is
called, exactly one declaration is created for each FVF(on demand) and
stored for the lifetime of the device. This avoids memory leaks and
makes keeping track of converted declarations easier. Wether a
declaration is converted from a fvf or not is now a static information
inside the declaration. Those declarations are not destroyed in
VertexDeclaration::Release, they stay for the lifetime of the
device. This keeps us free from tracking the declaration through
stateblocks
2007-04-18 13:13:45 +02:00
Stefan Dösinger c4eb3de8d8 d3d9: Fix vertex decl test. 2007-04-13 11:42:24 +02:00
Ivan Gyurdiev 9580c3f6c3 d3d9: Add a test for the converted vertex decl. 2007-04-12 16:11:39 +02:00
Ivan Gyurdiev 46c5d223ff d3d9: Break out two helper functions from test_fvf_to_decl. 2007-04-12 16:11:13 +02:00
Francois Gouget 354b9e7aae d3d9/tests: Warn that tests were skipped if we could not load d3d9.dll.
But report a failed test if a mandatory function is missing from it.
Also warn if the hardware capabilities force us to skip some tests.
2007-01-12 11:25:24 +01:00
Louis Lenders c1cc17d827 d3d9: Fix failing tests on windows, when no 3d hardware acceleration is available. 2007-01-02 13:24:08 +01:00
Ivan Gyurdiev 365852c083 d3d9/tests: Printf format fixes for d3d9 tests. 2006-10-09 20:26:09 +02:00
Ivan Gyurdiev 1309844913 wined3d: Implement FVF to DECL9 conversion (with tests). 2006-07-06 16:07:38 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
H. Verbeet 75ac954cf5 d3d9: Use an invisible window for tests. 2006-02-10 14:52:10 +01:00
H. Verbeet 9aa0d88c95 d3d9: Add a test for IDirect3DVertexDeclaration9_GetDeclaration. 2006-02-07 12:27:23 +01:00
H. Verbeet d8d70370dd d3d9: Reorganise the vertexdeclaration tests.
- Split the test for getting and setting vertexdeclaration into one
  for creating the declaration and one for the actual getting and
  setting.
- Add traces for when creating the device or vertexdeclaration fails.
2006-02-07 12:26:59 +01:00
Paul Vriens 27462d1d40 d3d9: Don't treat missing d3d9.dll as a failure. 2005-12-15 10:25:06 +01:00
H. Verbeet fa40b77ad7 d3d9: Add a test for Get/SetVertexDeclaration refcounts. 2005-12-14 11:29:38 +01:00