Commit Graph

528 Commits

Author SHA1 Message Date
Paul Gofman ad7ec2ec14 d3dx9: Add test for preshader in effect.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-23 11:28:54 +09:00
Francois Gouget 8fda75fe4a d3dx9/tests: Add a trailing '\n' to an ok() call.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-18 22:20:01 +09:00
Paul Gofman fda55a3fdf d3dx9: Fix D3DXIntersectTri function.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-15 12:26:10 +09:00
Henri Verbeet a9506bf952 d3dx9/tests: Get rid of some redundant NULL checks in D3DXCreateTextTest().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-13 15:41:48 +09:00
Henri Verbeet d708f309c8 d3dx9/tests: Get rid of a redundant NULL check in test_effect_states().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-13 15:41:45 +09:00
Paul Gofman 1da5af9364 d3dx9: Support setting texture through SetValue in effect.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-09 18:40:34 +09:00
Michael Stefaniuc bb79ca5b54 d3dx9/tests: Use SetRectEmpty() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 18:42:05 +09:00
Michael Stefaniuc 46b6f60de1 d3dx9/tests: Avoid using an empty rect for a test.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 18:41:57 +09:00
Paul Gofman c1487eee3e d3dx9: Implement state save and restore in effect.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 11:35:33 +09:00
Paul Gofman 3aa22f47a8 d3dx9: Implement sampler and texture effect states application.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 11:35:31 +09:00
Paul Gofman ec6124f15d d3dx9: Implement shader constants effect states application.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 11:35:28 +09:00
Paul Gofman 6df87a6647 d3dx9: Implement light and material effect states application.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 11:35:25 +09:00
Paul Gofman 91c5f11537 d3dx9: Implement simple effect states application.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 11:35:22 +09:00
Paul Gofman 6a5a4f9b12 d3dx9: Add test for basic effect state management.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 11:35:17 +09:00
Michael Stefaniuc 020b86b0be d3dx9/tests: Avoid a TRUE:FALSE conditional expression.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 12:05:57 +09:00
Frédéric Delanoy 2d9659d311 d3dx9/tests: Use todo_wine_if() in tests.
Signed-off-by: Frédéric Delanoy <frederic.delanoy@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 12:05:57 +09:00
Paul Gofman 215e2d7fed d3dx9: D3DXQuaternionToAxisAngle should not crash on NULLs in output parameters.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-25 23:52:23 +09:00
Andrey Gusev 37cbe0b882 d3dx9: Fix a typo.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-26 14:48:25 +09:00
Nikolay Sivov 7b38f20458 d3dx9/tests: Fix some test failures.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-20 14:49:10 +09:00
Alistair Leslie-Hughes 2b0278c703 d3dx9/tests: DDS magic isn't part of the DDS header.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-18 14:08:44 +09:00
Alistair Leslie-Hughes 6097695d4b d3dx9/tests: Add D3DXCreateAnimationController tests.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-18 14:08:41 +09:00
Christian Costa d2307b1ffc d3dx9: Improve generated DDS file header.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-08 21:37:32 +09:00
Alistair Leslie-Hughes 54ebbfdc63 d3dx9/tests: Add D3DXSaveSurfaceToFileInMemory DDS header tests.
Also update the structure dds_header to be the same as d3dx9_36/surface.c.
Use (DDS_CAPS_TEXTURE | DDSCAPS_ALPHA) with a todo.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-08 21:37:20 +09:00
Alistair Leslie-Hughes 418a7c6c73 d3dx9: Don't always fail if an ID3DXAnimationController pointer is passed to D3DXLoadMeshHierarchyFromXInMemory.
D3DXLoadMeshHierarchyFromXInMemory will only return an AnimationController
when the xfile has an AnimationSet.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-03 21:49:21 +09:00
Nikolay Sivov 67738a41c4 d3dx9_36/tests: Use proper printf format (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 22:31:31 +09:00
Andrey Gusev d3177504b1 Assorted spelling and typos fixes. 2015-08-31 20:18:46 +09:00
Józef Kucia ece3af7855 d3dx9: Use D3DFMT constants instead of MAKEFOURCC codes. 2015-08-25 16:57:55 +09:00
Józef Kucia 520deb14d2 d3dx9/tests: Add tests for DDS file format size validation. 2015-08-25 16:57:55 +09:00
Józef Kucia a0a8556fd1 d3dx9/tests: Fix HFONT leaks. 2015-08-07 23:50:49 +09:00
Józef Kucia 567ab59c79 d3dx9: Correctly handle whitespace character in D3DXCreateText. 2015-08-07 23:50:48 +09:00
Józef Kucia 9361832863 d3dx9/tests: Add tests for normals computation. 2015-07-31 12:06:12 +02:00
Józef Kucia 55ef5afbda d3dx9/tests: Use new_test_context() to create device in mesh tests. 2015-07-31 12:05:37 +02:00
Stefan Dösinger 7109bebd02 wined3d: Move volume DXTn handling to apply_format_fixups. 2015-04-27 15:07:42 +09:00
Michael Stefaniuc ceef3a844a d3dx9_36/tests: Actually test retrieve_device_state calls (PVS-Studio). 2015-01-13 19:54:03 +01:00
Alistair Leslie-Hughes e5d7982c4d d3dx9: Make ID3DXFont_PreloadCharacters return S_OK. 2014-12-12 11:07:26 +01:00
André Hentschel 09761309ad d3dx9_36/tests: Remove unused function (Clang). 2014-12-01 11:00:19 +01:00
André Hentschel 67ee1faba2 d3dx9_36/tests: Remove unused functions (Clang). 2014-11-25 19:49:37 +01:00
Sebastian Lackner b69038e3d9 d3dx9_36: Allow NULL pointer for optional arguments of D3DXIntersectTri. 2014-11-14 14:16:41 +09:00
Sebastian Lackner fc0392a24e d3dx9_36/tests: Remove code to skip test which should never fail. 2014-11-11 16:20:05 +09:00
Sebastian Lackner b8814764aa d3dx9_36/tests: Add tests for D3DXCreatePolygon.
Based on a patch by David Adam.
2014-11-11 16:20:02 +09:00
Matteo Bruni 1569698d9e d3dx9: Use an alpha-capable format when creating textures with a color key. 2014-11-11 14:21:07 +09:00
Matteo Bruni fb9c01f1dc d3dx9: Handle GUID_WICPixelFormat8bppGray format. 2014-11-11 14:21:00 +09:00
Matteo Bruni c87901d3f8 d3dx9/tests: Create the asm shader test files under the temporary files directory. 2014-08-25 22:03:28 +02:00
Matteo Bruni bc8d913199 d3dx9/tests: Add a test for an include path containing '/'. 2014-08-25 22:03:06 +02:00
Matteo Bruni 770eaec561 d3dx9: Properly evaluate fallbacks for luminance texture formats in D3DXCheckTextureRequirements. 2014-08-25 22:02:21 +02:00
Marcus Meissner 20ef8d2991 d3dx9_36: Fixed typo in HeapAlloc return checking (Coverity). 2014-07-22 12:08:07 +02:00
Gediminas Jakutis fe802d92bb d3dx9: Implement D3DXCreateTorus() + tests. 2014-07-10 12:40:34 +02:00
Matteo Bruni c1bf61e56c d3dx9/tests: Take MaxVolumeExtent into account in some tests. 2014-05-01 20:36:40 +02:00
Matteo Bruni 2a8dae52aa d3dx9/tests: Fix expected values when mipmaps on cube maps are not supported. 2014-05-01 20:36:37 +02:00
Matteo Bruni 8ca7617d4d d3dx9/tests: Don't fail a test if volume textures are not supported. 2014-05-01 20:36:34 +02:00