Francois Gouget
6e92cdacf1
d3dx9_36/tests: Make test_texture_shader() static.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-09 20:49:11 +01:00
Nikolay Sivov
0054621b70
d3dx9/tests: Remove dead assignment.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-05 14:49:59 -05:00
Józef Kucia
61de927355
d3dx9/tests: Fix compilation when the INFINITY macro is not available.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-05 14:49:58 -05:00
Matteo Bruni
a7a89b8b00
d3dx9/tests: Add a test for texture shaders.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-05 14:49:12 -05:00
Paul Gofman
571119a585
d3dx9/tests: Add test for IsParameterUsed 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-05-31 11:31:29 +09:00
Paul Gofman
4786f53ef8
d3dx9: Add d3ds_dotswiz opcode to preshader.
...
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-05-27 00:10:04 +09:00
Paul Gofman
be4c5f5022
d3dx9/tests: Extend effect preshader test.
...
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-05-20 12:52:59 +09:00
Paul Gofman
a5fcc4d2a2
d3dx9: Add test for 0 * INF preshader operation.
...
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-05-04 01:03:30 +09:00
Paul Gofman
2925d6e6ec
d3dx9: Add 'exp' preshader opcode.
...
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-05-04 01:03:30 +09:00
Francois Gouget
fcf0829b60
d3dx9_36/tests: Spelling fixes for mesh and xfile ok() messages.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-02 12:27:35 +09:00
Paul Gofman
ab78cffea7
d3dx9/tests: Add test for D3DXSHMultiply3 arguments aliasing.
...
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-04-19 23:29:47 +09:00
Paul Gofman
dd79394ccc
d3dx9: D3DXQuaternionSquadSetup should support arguments aliasing.
...
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-04-19 23:29:31 +09:00
Paul Gofman
453d9f7bce
d3dx9: Implement setting named shader constants 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-04-19 23:29:25 +09:00
Francois Gouget
a6745afc54
d3dx9_36/tests: Fix an unknown spelling error in the shader tests.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-18 15:06:44 +09:00
Paul Gofman
61b09f3fc7
d3dx9: Add test for D3DXVec2TransformCoord arguments aliasing.
...
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-04-18 15:06:14 +09:00
Paul Gofman
bb9a2e6714
d3dx9: D3DXVec2Transform should support arguments aliasing.
...
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-04-18 15:06:12 +09:00
Paul Gofman
97bbf747c0
d3dx9: Add test for D3DXPlaneFromPointNormal arguments aliasing.
...
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-04-18 15:06:07 +09:00
Paul Gofman
4620bb80b0
d3dx9: Implement array selectors 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-04-18 15:05:30 +09:00
Paul Gofman
58d80d90a5
d3dx9: Add basic opcodes to preshader.
...
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-04-18 15:05:23 +09:00
Paul Gofman
43208b6348
d3dx9: Implement fxlc constants (expressions) 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-04-18 15:05:15 +09:00
Paul Gofman
1ba9cfb5c3
d3dx9: D3DXVec3Transform should support input and output parameter overlap.
...
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-04-14 13:13:55 +09:00
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
Matteo Bruni
96e9a70661
d3dx9/tests: Release the device when skipping some tests.
2014-05-01 20:36:31 +02:00
Frédéric Delanoy
2e5cb7aac8
Assorted spelling/grammar fixes.
2014-04-30 18:34:20 +02:00
Stefan Dösinger
ed3b1037f9
d3dx9_36/tests: Initialize some test values.
2014-04-01 20:58:01 +02:00
Matteo Bruni
9295ee0c0b
d3dx9/tests: Mark a test todo_wine when DXTn textures aren't supported by the GL driver.
2014-03-13 20:22:18 +01:00
Matteo Bruni
d6a919af89
d3dx9/tests: Skip a test if DXTn texture formats are not supported.
2014-03-13 20:22:17 +01:00
Matteo Bruni
d96d0af83d
d3dx9/tests: Skip some volume tests if loading the texture fails.
2014-03-13 20:22:16 +01:00
Rico Schüller
9809a3670c
d3dx9/tests: Check if D3DFMT_X1R5G5B5 is supported.
2014-03-11 19:39:27 +01:00
Matteo Bruni
596557a57a
d3dx9: Support skipping mip levels in D3DXCreateTextureFromFileInMemoryEx.
2014-03-05 19:18:17 +01:00
Matteo Bruni
e32672f2d7
d3dx9/tests: Replace a test giving inconsistent results on Windows.
2014-03-03 17:53:55 +01:00
Matteo Bruni
df3c573f63
d3dx9: Allow loading DDS volume textures into 2D textures.
2014-03-03 17:53:53 +01:00
Matteo Bruni
8b5cd9edbc
d3dx9: Always use type->Rows as D3DXPC_MATRIX_ROWS parameters size.
2014-03-03 17:53:37 +01:00
Gediminas Jakutis
6749bdf66b
d3dx9/tests: Add a mesh test for D3DXCreateBox().
2014-03-03 17:46:44 +01:00
Gediminas Jakutis
cc3ec2da1a
d3dx9: Implement D3DXCreateBox().
2014-03-03 17:46:42 +01:00
Matteo Bruni
62288d02be
d3dx9: Call D3DCompile() for ASCII effects.
2014-02-25 14:17:45 -06:00
Matteo Bruni
772d660e28
d3dx9/tests: Use a valid version tag for the "empty" shader.
2014-02-20 13:25:31 +01:00
Matteo Bruni
b74fc45b81
d3dx9/tests: Add a test for constant tables in FX20 shaders.
2014-02-20 13:25:30 +01:00
Matteo Bruni
e5d9be5eaf
d3dx9/tests: Create A8L8 and DXTn textures instead of plain surfaces.
...
Creating them as plain surfaces fails on my Nvidia Win7 system.
2014-02-20 13:25:28 +01:00
Matteo Bruni
190877422e
d3dx9: Enforce minimum texture dimensions for block-based pixel formats.
2014-02-17 20:16:21 +01:00
Frédéric Delanoy
e4a0da373c
d3dx9_36/tests: Use common wine_dbgstr_guid implementation from test.h.
2014-01-28 11:44:34 +01:00
André Hentschel
28b9e1b947
d3dx9_36/tests: Avoid preprocessor checks to ensure it compiles.
2014-01-27 17:39:47 +01:00
Stefan Dösinger
f85f733c79
d3dx9_36/tests: Use a window with a non-zero size.
2014-01-16 21:04:19 +01:00
Francois Gouget
d3cf4ff569
d3dx9_36/tests: Fix compilation on systems that don't have NAN (Solaris).
2014-01-10 17:59:53 +01:00
André Hentschel
87c7c961f2
Assorted spelling fixes.
2014-01-06 17:33:24 +01:00
Stefan Dösinger
95317c33a9
d3dx9_36/tests: Use NAN.
2014-01-02 17:29:38 +01:00
Stefan Dösinger
9e3ef4abc6
d3dx9_36/tests: Fix calling convention specification.
...
Msvc wants __stdcall after the type, otherwise it generates an error.
2014-01-02 17:29:16 +01:00
Alexandre Julliard
99ef0d6ff0
makefiles: Get rid of the MAKE_TEST_RULES variable.
2014-01-02 12:13:16 +01:00
Stefan Dösinger
ebfdcc9c9a
d3dx9_36/tests: Use D3DX_PI instead of M_PI.
2014-01-01 20:45:27 +01:00
Rico Schüller
c1a0fbd146
d3dx9/tests: Fix variable names.
2013-11-11 17:06:46 +01:00
Henri Verbeet
3e5dd54971
d3dx9/tests: Use explicit A calls.
2013-10-31 09:58:44 +01:00
Michael Stefaniuc
0e681027a2
tests: Compile the tests by default with -D__WINESRC__.
2013-10-02 11:04:02 +02:00
Rico Schüller
e615c67bc7
d3dx9: Handle FX/TX blobs in D3DXFindShaderComment().
2013-09-30 20:35:03 +02:00
Rico Schüller
196766cb77
d3dx9/tests: Add matrix column register count clamp test.
2013-09-19 09:30:56 +02:00
Stefan Dösinger
7aa17eaa5c
d3dx9_36/tests: Create*TextureFromFileInMemory doesn't fail.
...
If the format is unsupported it picks a replacement format. Our d3dx9
cannot handle d3dx9 decompression yet, so mark the tests todo_wine in
this case.
2013-09-17 16:22:29 +02:00
Henri Verbeet
871967d0fb
d3dx9: Avoid LPVOID.
2013-09-04 11:37:06 +02:00
Matteo Bruni
686f0a62df
d3dx9/tests: Add some more tests for D3DX[Assemble|Preprocess]ShaderFromFile.
2013-09-03 16:58:39 +02:00
Henri Verbeet
76e35a2939
d3dx9: Avoid LPCVOID.
2013-09-03 16:58:18 +02:00
Henri Verbeet
77ee90b59f
d3dx9: Avoid LPSTR.
2013-09-03 16:58:17 +02:00
Henri Verbeet
75511e351c
d3dx9: Avoid LPCSTR.
2013-09-02 18:02:48 +02:00
Stefan Dösinger
421b7a17ad
wined3d: Enforce volume mapping restrictions.
2013-08-26 19:01:23 +02:00
Henri Verbeet
3b4b61f03a
d3dx9: Avoid LPD3DXMATRIX.
2013-08-21 12:13:56 +02:00
Rico Schüller
b9b6b0585f
d3dx9/tests: Test all registers set by the constant table.
2013-08-02 11:38:51 +02:00
Rico Schüller
a6d3883211
d3dx9/tests: Add ID3DXConstantTable big vector test.
2013-07-29 15:01:42 +02:00
Rico Schüller
faf7dd3131
d3dx9/tests: Add ID3DXConstantTable RegisterCount test for D3DXRS_INT4.
2013-07-29 15:01:40 +02:00
Rico Schüller
4dc11cc3aa
d3dx9/tests: Add ID3DXConstantTable::SetDefaults() test.
2013-07-29 15:01:36 +02:00
Rico Schüller
c76f6085b2
d3dx9/tests: Add ID3DXConstantTable struct struct test.
2013-07-29 15:01:25 +02:00
Rico Schüller
b196d0ccdc
d3dx9/tests: Add ID3DXConstantTable struct array test.
2013-07-27 11:49:27 -05:00
Rico Schüller
cf5a2b6417
d3dx9/tests: Add ID3DXConstantTable struct test.
2013-07-27 11:49:16 -05:00
Rico Schüller
6705073016
d3dx9/tests: Add ID3DXConstantTable matrix row array test.
2013-07-27 11:48:59 -05:00
Rico Schüller
4e925d7d31
d3dx9/tests: Add ID3DXConstantTable matrix row test.
2013-07-27 11:48:48 -05:00
Rico Schüller
b7702177bc
d3dx9/tests: Add ID3DXConstantTable matrix column array test.
2013-07-24 11:10:58 -05:00
Rico Schüller
2bfd3e9867
d3dx9/tests: Add ID3DXConstantTable matrix column test.
2013-07-24 11:10:51 -05:00
Rico Schüller
787707025f
d3dx9/tests: Add ID3DXConstantTable vector array test.
2013-07-24 11:10:44 -05:00
Rico Schüller
89ecbde31d
d3dx9/tests: Add ID3DXConstantTable vector test.
2013-07-24 11:10:38 -05:00
Rico Schüller
833c0ce18d
d3dx9/tests: Add ID3DXConstantTable scalar array test.
2013-07-24 11:10:32 -05:00
Rico Schüller
0a2085f502
d3dx9/tests: Add ID3DXConstantTable scalar test.
2013-07-22 17:17:29 +02:00
Rico Schüller
8231c8ef50
d3dx9: Improve ID3DXConstantTable::Set*().
2013-07-22 17:17:15 +02:00
Christian Costa
c6106428f6
d3dxof: Add support for case sensitive legacy type indexColor.
2013-06-24 11:57:52 +02:00
Christian Costa
fcb72f399d
d3dx9_36: Set compilation_errors to NULL when no error encountered + tests.
2013-06-13 17:14:06 +02:00
Christian Costa
66414c46c9
d3dxof/tests: Add test for case sensitive 'indexColor' type.
2013-06-12 12:12:10 +02:00
Nozomi Kodama
b3dff5b354
d3dx9: Fix the case output = input in D3DXVec3Cross.
2013-06-10 14:24:47 +02:00
Christian Costa
edb01d2662
d3dx9_36: Add support for D3DFMT_P8 and conversion to other ARGB formats + tests.
2013-05-23 20:51:23 +02:00
Christian Costa
635f76b085
d3dx9_36: Fix ID3DXFileDataImpl_GetName + add some tests.
2013-05-16 12:11:00 +02:00
Christian Costa
a131d714ff
d3dx9_36: Fix D3DXCheckTextureRequirements to return D3DFMT_A8R8G8B8 when d3d doesn't support D3DFMT_P8 + tests.
2013-05-14 22:00:14 +02:00
Christian Costa
aa1d24f09b
d3dx9_36: Report D3DFMT_P8 for image with indexed colors in D3DGetImageInfoFromFileInMemory.
2013-05-14 22:00:06 +02:00
Christian Costa
2fc4b953d8
d3dx9_36: Add tests for D3DXGetImageInfoFromFileInMemory with bmp with 1 to 8 bpp.
2013-05-10 17:53:09 +02:00
Christian Costa
5966a087d3
d3dx9_36/tests: Add dump function for X files.
2013-05-10 17:53:08 +02:00
Christian Costa
1bd5bfebae
d3dxof: Only parse templates for object files, but with RegisterTemplates parse the whole file.
2013-04-30 12:32:41 +02:00
Christian Costa
792e2ee248
d3dx9_36: Add DIB file support to D3DXLoadSurfaceFromFileInMemory.
2013-04-25 20:25:07 +02:00
Christian Costa
4653b839e7
d3dx9_36: Add support for DIB file in D3DXGetImageInfoFromFileInMemory.
2013-04-25 20:25:06 +02:00
Matteo Bruni
3fd07694c4
d3dx9/tests: Don't use an arbitrary number in relative_error macro.
2013-04-10 11:43:27 +02:00
Matteo Bruni
7802ab15ce
d3dx9/tests: Raise admitted error a bit in D3DXSHEvalSphericalLight tests.
2013-04-10 11:43:14 +02:00
Nozomi Kodama
574d4cfba9
d3dx9: Floatify fabs into fabsf.
2013-04-09 12:24:10 +02:00
Nozomi Kodama
6d6603b495
d3dx9: Implement D3DXSHEvalHemisphereLight.
2013-04-04 19:27:52 +02:00
Nozomi Kodama
6247dae2ac
d3dx9: Implement D3DXSHEvalSphericalLight.
2013-04-04 19:27:23 +02:00
Nozomi Kodama
9731752831
d3dx9: Do not use relative error for small numbers.
2013-04-04 19:27:06 +02:00
Nozomi Kodama
9085f1d27f
d3dx9: Implement D3DXSHEvalConeLight.
2013-03-07 17:33:13 +01:00
Nozomi Kodama
5038a7d915
d3dx9: Use const instead of CONST.
2013-02-14 17:32:22 +01:00
Michael Stefaniuc
18b2a38ba2
d3dx9_36/tests: Use assignment instead of memcpy to copy a struct.
2013-01-24 15:38:42 +01:00
Alexandre Julliard
d72394e7fa
d3dx9_36/tests: Remove useless casts.
2013-01-18 13:28:56 +01:00
Christian Costa
64a88a2d83
d3dx9_36: Make variables static in xfile tests.
2013-01-18 13:28:56 +01:00
Christian Costa
45e43dc5d0
d3dx9_36: Implement ID3DXFileDataImpl_Lock and ID3DXFileDataImpl_Unlock + tests.
2013-01-18 13:28:55 +01:00
Rico Schüller
2fb6dcb3f2
d3dx9/tests: Use D3DXFloat16To32Array() instead of a custom function.
2013-01-17 12:16:13 +01:00
Rico Schüller
25ce3a4220
d3dx9: Add support for D3DFMT_A32B32G32R32F.
2013-01-16 12:20:23 +01:00
Rico Schüller
43f30fe8d6
d3dx9: Add support for D3DFMT_A16B16G16R16F.
2013-01-11 11:58:16 +01:00
Rico Schüller
6cb4301021
d3dx9: Handle invalid byte code in D3DXGetShaderConstantTableEx().
2013-01-08 16:35:32 +01:00
Rico Schüller
a847b9dddb
d3dx9: Always set the table = NULL in D3DXGetShaderConstantTableEx().
2013-01-08 16:35:32 +01:00
Rico Schüller
bc4a4f5f3b
d3dx9: Handle invalid byte code in D3DXFindShaderComment().
2013-01-08 16:35:31 +01:00
Christian Costa
4778a5e27d
d3dx9_36: Add support for RT_BITMAP resource type since it is in DIB format D3DXIFF_DIB.
2013-01-07 19:33:09 +01:00
Francois Gouget
a41f63dfcb
d3dx9_36: Make error_dxfile_to_d3dxfile() and test_templates() static.
2013-01-07 13:38:21 +01:00
Francois Gouget
f963f93964
Assorted spelling fixes.
2013-01-07 11:10:40 +01:00
Christian Costa
b742b98c55
d3dx9_36: Implement ID3DXFileImpl_RegisterTemplates + tests.
2013-01-04 12:14:07 +01:00
Christian Costa
95433ccd3c
d3dx9_36: Implement D3DXFileCreate with stubbed ID3DXFile interface + basic tests.
2012-12-27 18:47:54 +01:00
Francois Gouget
7b2d297d3e
d3dx9_36/tests: Use software vertex processing so the tests can run on Intel GM950 graphics cards.
2012-12-14 17:37:43 +01:00
Francois Gouget
a20db48dae
d3dx9_36/tests: Skip some tests when DXT5 textures are not supported.
2012-12-14 11:49:54 +01:00
Henri Verbeet
36ac98df73
d3dx9: Avoid LPD3DXBUFFER.
2012-12-03 12:37:26 +01:00
Henri Verbeet
d856b3a6d2
d3dx9: Avoid LPD3DXLINE.
2012-12-03 12:37:20 +01:00
Detlef Riekenberg
8b98b6a532
d3dx9_36/tests: Fix broken line test.
2012-11-30 11:43:38 +01:00
Henri Verbeet
c109249445
d3dx9: Avoid LPD3DXEFFECTSTATEMANAGER.
2012-11-30 11:42:37 +01:00
Henri Verbeet
361cf636cc
d3dx9: Avoid LPD3DXSKININFO.
2012-11-28 14:42:03 +01:00
Henri Verbeet
63acbcbf8a
d3dx9: Avoid LPD3DXCONSTANTTABLE.
2012-11-23 14:40:24 +01:00
Nozomi Kodama
965e27149a
d3dx9_36: Fix the case out = in for D3DXSHRotate.
2012-11-13 19:27:04 +01:00
Józef Kucia
3e264ced0f
d3dx9: Handle NULL arguments in D3DXVec3Unproject.
2012-11-08 17:21:18 +01:00
Józef Kucia
a5d5650730
d3dx9: Handle NULL arguments in D3DXVec3Project.
2012-11-08 17:21:15 +01:00
Nozomi Kodama
c59efbed77
d3dx9_36: Add tests for D3DXSHRotateZ.
2012-11-01 19:14:53 +01:00
Józef Kucia
7bfd634286
d3dx9: Handle NULL viewport in D3DXVec3Unproject.
2012-10-29 10:47:04 +01:00
Henri Verbeet
4ba6974345
d3dx9: Avoid LPDIRECT3DDEVICE9.
2012-10-29 10:47:03 +01:00
André Hentschel
472010911d
d3dx9_36/tests: Fix sizeof to be more portable (coverity).
2012-10-24 11:33:40 +02:00
Henri Verbeet
4704e78337
d3dx9: Avoid LPDIRECT3DPIXELSHADER9.
2012-10-23 12:11:30 +02:00
Józef Kucia
0146b5568a
d3dx9/tests: Add a simple test for filling compressed textures.
2012-10-23 12:08:10 +02:00
Józef Kucia
15d642803b
d3dx9/tests: Add tests for filling floating-point textures.
2012-10-23 12:08:06 +02:00
Józef Kucia
cdc9f283fb
d3dx9/tests: Only release a texture when it was created.
2012-10-23 12:07:39 +02:00
Nozomi Kodama
80b73ffcef
d3dx9_36: Remove useless casts.
2012-10-11 21:20:27 +02:00
Nozomi Kodama
46fca31c4f
d3dx9_36/tests: Remove useless casts.
2012-10-03 13:10:46 +02:00
Nozomi Kodama
3d5c61cdcd
d3dx9_36/tests: Relax an equality between floats.
2012-10-03 13:10:45 +02:00
Nozomi Kodama
9c823d04b6
d3dx9_36/tests: Avoid a potential out of bound access.
2012-10-03 13:10:45 +02:00
Nozomi Kodama
584c24050e
d3dx9_36/tests: Speed up some tests.
2012-10-03 13:10:45 +02:00
Nozomi Kodama
b8cfe42326
d3dx9_36: Implement D3DXSHMultiply4.
2012-10-03 13:10:45 +02:00
Rico Schüller
ec9db0a11f
d3dx9: Fix D3DXMatrixAffineTransformation() and add some tests.
2012-10-01 18:49:11 +02:00
Francois Gouget
91c7dca35f
d3dx9_36/tests: Remove spaces before '\n's in ok() calls.
2012-09-26 14:40:49 +02:00
Detlef Riekenberg
a695062447
d3dx9_36/tests: Fix copy & paste error in ok messages.
2012-09-26 10:59:00 +02:00
Nozomi Kodama
1f85d64b19
d3dx9: Implement D3DXSHRotate.
2012-09-25 11:39:28 +02:00
Nozomi Kodama
c69a496461
d3dx9: Implement D3DXSHEvalDirectionalLight.
2012-09-25 11:38:53 +02:00
Christian Costa
12d11833f7
d3dx9_36: Cube texture can be loaded as a simple texture. The first face texture is taken in that case.
2012-09-24 22:27:42 +02:00
Józef Kucia
94ab09a226
d3dx9/tests: Add a more detailed test for saving a surface to a DDS file.
2012-09-24 22:27:29 +02:00
Józef Kucia
bf4201ea58
d3dx9: Implement the support for saving a surface to a DDS file.
2012-09-24 22:27:29 +02:00
Francois Gouget
ae3a919ba0
d3dx9_36/tests: Fix compilation on systems that don't support nameless structs or unions.
2012-09-24 10:03:37 +02:00
Rico Schüller
b999ab16b3
d3dx9: Fix ID3DXConstantTable::GetConstantElement() for structs.
2012-09-04 15:04:09 +02:00
Rico Schüller
b5b0520723
d3dx9: Handle D3DXPC_VECTOR in set_matrix_array().
2012-08-28 20:24:34 +02:00
Rico Schüller
42d28e0d34
d3dx9/tests: Fix typo.
2012-08-27 13:42:31 +02:00
Rico Schüller
68508ed581
d3dx9/tests: Add tests for ID3DXConstantTable::GetConstant/ByName/Element().
2012-08-27 13:42:29 +02:00
Rico Schüller
fdbcbb0c91
d3dx9/tests: Add tests for ID3DXConstantTable::GetConstantDesc().
2012-08-27 13:42:20 +02:00
Józef Kucia
cda7633775
d3dx9: Implement ID3DXConstantTable::SetMatrixTransposePointerArray.
2012-08-21 17:47:43 +02:00
Józef Kucia
9fec159abc
d3dx9: Implement ID3DXConstantTable::SetMatrixPointerArray.
2012-08-21 17:47:41 +02:00
Józef Kucia
51f4f01308
d3dx9: Implement ID3DXConstantTable::SetMatrixTranspose.
2012-08-21 17:47:40 +02:00
Józef Kucia
aaac25dc67
d3dx9: ID3DXConstantTable::SetFloat shouldn't change the value of matrix and vector constants.
2012-08-21 17:47:37 +02:00
Józef Kucia
2f73fd6ed5
d3dx9: ID3DXConstantTable::SetVector shouldn't change the value of matrix constants.
2012-08-21 17:47:36 +02:00
Józef Kucia
978971e1ac
d3dx9: ID3DXConstantTable::SetMatrix should set scalar constants.
2012-08-21 17:47:34 +02:00
Rico Schüller
98d196a808
d3dx9/tests: Add variable name test.
2012-08-20 14:58:45 +02:00
Józef Kucia
b31b9864d9
d3dx9: Fix ID3DXConstantTable::SetMatrix.
2012-08-16 19:37:09 +02:00
Józef Kucia
53ce2a240b
d3dx9: Fix ID3DXConstantTable::SetVector.
2012-08-16 19:37:04 +02:00
Józef Kucia
5fd7d9826c
d3dx9/tests: Add tests for ID3DXConstantTable::SetValue.
2012-08-16 19:37:00 +02:00
Józef Kucia
6fff4b9e87
d3dx9/tests: Add tests for setting matrix shader constants.
2012-08-16 19:36:47 +02:00
Józef Kucia
fbba743484
d3dx9: Implement ID3DXConstantTable::SetBoolArray.
2012-08-16 19:36:39 +02:00
Józef Kucia
35dd7034cf
d3dx9/tests: Add tests for ID3DXConstantTable::SetDefaults.
2012-08-14 12:48:01 +02:00
Józef Kucia
367ff5efc9
d3dx9/tests: Add tests for constant tables with default values.
2012-08-14 12:48:00 +02:00
Józef Kucia
711ee8a792
d3dx9: Correctly handle constants without default values in D3DXGetShaderConstantTableEx.
2012-08-14 12:48:00 +02:00
Detlef Riekenberg
feea459238
d3dx9_36/tests: Fix failures on vista x64.
2012-08-14 11:57:57 +02:00
Józef Kucia
dcc09efe80
d3dx9/tests: Add cube texture tests for ID3DXRenderToEnvMap.
2012-08-13 17:28:12 +02:00
Józef Kucia
5a99be321b
d3dx9/tests: Add basic tests for ID3DXRenderToEnvMap.
2012-08-13 17:28:09 +02:00
Józef Kucia
c51bf7b082
d3dx9/tests: Clean up device state after tests.
2012-08-13 17:27:54 +02:00
Rico Schüller
c178b61bb9
d3dx9/tests: Check all elements in the effect parameter value test.
2012-08-13 11:51:18 +02:00
Rico Schüller
3bd55d0b62
d3dx9/tests: Reduce effect parameter value test count.
2012-08-13 11:51:11 +02:00
Józef Kucia
2c1968aef9
d3dx9: Allow D3DX_DEFAULT to be passed as srclevel to D3DXFilterTexture.
2012-07-23 14:55:45 +02:00
Nozomi Kodama
f5714cccbd
d3dx9_36: Implementation of D3DXSHRotateZ.
2012-07-19 17:02:01 +02:00
Józef Kucia
ffe36a3894
d3dx9: Implement volume texture filtering in D3DXFilterTexture.
2012-07-16 16:56:17 +02:00
Józef Kucia
29acc31506
d3dx9: Implement point filtering for volume textures.
2012-07-16 16:55:56 +02:00
Józef Kucia
5d4bc53343
d3dx9: Implement pixel format conversion for volume textures.
2012-07-16 16:55:48 +02:00
Nozomi Kodama
c957f8a921
d3dx9_36: Implementation of D3DXSHEvalDirection.
2012-07-16 16:28:47 +02:00
Nozomi Kodama
f757f3fb7d
d3dx9: Implementation of D3DXSHMultiply2.
2012-07-16 14:33:43 +02:00
Rico Schüller
e0d5c35054
d3dx9/tests: Fix array increment in SetMatrix*PointerArray() test.
2012-07-10 11:16:44 -05:00
Rico Schüller
617a2ccee6
d3dx9/tests: Add effect parameter value GetMatrixTransposePointerArray() test.
2012-07-10 11:16:39 -05:00
Rico Schüller
a7f1d93f01
d3dx9/tests: Add effect parameter value GetMatrixPointerArray() test.
2012-07-10 11:16:33 -05:00
Józef Kucia
f5fd7fe3e1
d3dx9/tests: Add tests for D3DXLoadVolumeFromFileInMemory.
2012-07-09 15:44:08 -04:00
Józef Kucia
0ad6af9caa
d3dx9: Validate the size of a volume texture in D3DXGetImageInfoFromFile.
2012-07-09 15:43:42 -04:00
Rico Schüller
18126eeb4f
d3dx9/tests: Add effect parameter value SetMatrixTransposePointerArray() test.
2012-07-03 14:56:18 +02:00
Rico Schüller
1ae494a9bb
d3dx9/tests: Add effect parameter value SetMatrixPointerArray() test.
2012-07-03 14:56:13 +02:00
Francois Gouget
691b9b6443
d3dx9_36/tests: Add a trailing '\n' to ok() calls.
2012-07-03 12:03:42 +02:00
Józef Kucia
07b0f25404
d3dx9: Implement D3DXCreateVolumeTextureFromFileInMemoryEx.
2012-07-02 11:59:13 +02:00
Józef Kucia
09519eece1
d3dx9/tests: Add tests for D3DXLoadVolumeFromMemory.
2012-07-02 11:58:45 +02:00
Nozomi Kodama
e3888ec87c
d3dx9_36: Implementation of D3DXSHScale.
2012-06-29 20:41:47 +02:00
Nozomi Kodama
b56227cbf1
d3dx9_36: Implementation of D3DXSHDot.
2012-06-28 11:35:25 +02:00
Francois Gouget
b2e3e2e943
d3dx9_36/tests: Simplify test_D3DXSHMultiply3().
2012-06-25 10:33:30 +02:00
Józef Kucia
95b822d672
d3dx9/tests: Improve test failure messages for check_dds_pixel_format.
2012-06-19 11:12:39 +02:00
Józef Kucia
217c8b947e
d3dx9: Recognize X8B8G8R8 pixel format in DDS files.
2012-06-19 11:12:34 +02:00
Józef Kucia
720dfb9b95
d3dx9/tests: Add tests for ID3DXFont::GetGlyphData.
2012-06-19 11:12:17 +02:00
Józef Kucia
4f68916600
d3dx9/tests: Add tests for ID3DXFont::PreloadText.
2012-06-19 11:12:11 +02:00
Nozomi Kodama
60a0fb30df
d3dx9_36: Implementation of D3DXSHMultiply3.
2012-06-18 10:56:48 +02:00
Nozomi Kodama
ed7c28353d
d3dx9_36: Implementation of D3DXQuaternionSquadSetup.
2012-06-14 19:16:40 +02:00
Nozomi Kodama
4099eb8bbb
d3dx9_36: D3DXQuaternionLn computes as if the norm of the input is 1.
2012-06-13 14:50:25 +02:00