Paul Gofman
cd024a263f
d3dx9: Improve performance and memory usage in preshader constants setting.
...
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-06-15 17:11:52 +09:00
Matteo Bruni
c614f0b1b4
d3dx9: Turn an ERR into a WARN.
...
It can potentially happen if the application passes broken effect data.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-15 17:11:52 +09:00
Andrey Gusev
d8641197c0
d3dx9_36: Fix typos in comments.
...
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-06-03 23:31:03 +09: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
fe1a89d14f
d3dx9: Implement IsParameterUsed function 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-05-31 11:31:26 +09:00
Paul Gofman
dca016d7dc
d3dx9: Add is_param_type_sampler() helper 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-27 00:14:41 +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
Matteo Bruni
9d725b1778
d3dx9: Free old object data when reusing effect object.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-19 13:44:51 +09:00
Matteo Bruni
e7021c6a03
d3dx9: Don't complain when overwriting effect object id 0.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-18 15:07:10 +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
a67b43c1be
d3dx9: Get rid of redundant temporary variable in D3DXQuaternionInverse.
...
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:09 +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
b76ee0c7f8
d3dx9: Implement preshaders disassembly dump.
...
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-07 00:59:56 +09:00
Paul Gofman
9b3e942ffc
d3dx9: Implement preshader parsing.
...
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-07 00:59:56 +09:00
Paul Gofman
8eeeb4d1e1
d3dx9: Introduce preshaders 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-29 10:36:47 +09:00
Józef Kucia
eb7fc363f8
d3dx9: Avoid '\n' in middle of TRACE() message.
...
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-03-28 16:26:50 +09:00
Francois Gouget
f030fbe0a2
d3dx9_36: Make d3dx_set_shader_const_state() 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>
2016-03-23 11:28: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
Matteo Bruni
4d1192ad89
d3dx9: Cleanup header includes.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-15 14:12:29 +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
Henri Verbeet
20f7abf667
d3dx9: "param" should never be NULL in free_parameter().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-13 15:41:41 +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
Matteo Bruni
9bfacd24d2
d3dx9: Trace the parameter passed to IsParameterUsed().
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-08 11:13:16 +09:00
Paul Gofman
ea13805e83
d3dx9: IsParameterUsed stub should return TRUE.
...
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-08 11:13:10 +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
afcb6dc891
d3dx9: Implement CommitChanges 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:36 +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
Paul Gofman
546c55a09d
d3dx9: Don't pass usage flags when creating temporary texture
...
Some usage flags require D3DPOOL_DEFAULT (and not D3DPOOL_SYSTEMMEM),
and the usage of texture being created is overall not related to
intermediate buffer texture usage. If texture being created has
D3DUSAGE_AUTOGENMIPMAP, updating it from non autogenerated mipmap should
be fine according to MSDN (IDirect3DDevice9::UpdateTexture).
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:24:14 +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
Alistair Leslie-Hughes
94cc44883f
d3dx9: Implement GetMaxNum* functions.
...
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:39 +09:00
Christian Costa
16eaf69526
d3dx9: Implement D3DXCreateAnimationController with a stubbed ID3DXAnimationController interface.
...
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:33 +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
af4ece26d2
d3dx9: Add D3DXConvertMeshSubsetToSingleStrip stub.
...
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-05 11:52:04 +01:00
Matteo Bruni
d71970f658
d3dx9: Don't take the fastpath when converting between texture formats of different type.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-30 23:16:49 +09:00
Nikolay Sivov
236d97fed9
d3dx9: Use proper enum member (Clang).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-27 20:53:31 +09:00
Stefan Dösinger
1e78257109
d3dx9_36: Replace powf(2, unsigned int) with (1u << unsigned int).
...
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-25 12:57:29 +09:00
Marcus Meissner
d17341dbd0
d3dx9_36: Remove unneeded vertex_remap variable (Coverity).
...
Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-04 14:41:38 +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
Gediminas Jakutis
329fb2f728
d3dx9: Add adjacency generation for D3DXCreateCylinder().
...
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-27 21:42:14 +09:00
Frédéric Delanoy
3cdea7e50e
d3dx9_36: Simplify conditional expression (PVS-Studio).
...
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>
2015-10-16 13:22:45 +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
853be6e1d8
d3dx9: Fix miplevels handling for DDS file format.
2015-08-25 16:57:55 +09:00
Józef Kucia
ba53012fcf
d3dx9: Fix typo in DDS_WIDTH define.
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
8eca2df900
d3dx9: Implement D3DXComputeNormals().
2015-07-31 12:06:04 +02:00
Józef Kucia
4346b79c2f
d3dx9: Partially implement D3DXComputeTangentFrameEx().
2015-07-31 12:05:57 +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
Alistair Leslie-Hughes
d55fe1f9ce
d3dx9_36: Add D3DXCreateFragmentLinker, D3DXCreateFragmentLinkerEx stubs.
2015-07-31 12:05:14 +02:00
Alistair Leslie-Hughes
0bd896f0f8
d3dx9_36: Add D3DXTessellateNPatches stub ( try 2).
2015-07-31 12:04:44 +02:00
Christian Costa
b82fab89a1
d3dx9_36: Add stub for D3DXIntersect.
2015-07-21 16:33:24 +02:00
Christian Costa
05390ccc65
d3dx9_36: Add stub for D3DXComputeTangentFrameEx.
2015-07-21 16:33:23 +02:00
Stefan Dösinger
7109bebd02
wined3d: Move volume DXTn handling to apply_format_fixups.
2015-04-27 15:07:42 +09:00
Andrey Gusev
07630a9eae
d3dx9_36: Assorted spelling and typos fixes.
2015-03-31 00:04:42 +09:00
Francois Gouget
3266ff8ab2
d3dx9_36: Make d3dx_decltype_size[] static.
2015-03-17 14:18:35 +09:00
Francois Gouget
f572279576
d3dx9_36: Remove unneeded NONAMELESSXXX directives.
2015-03-06 12:54:01 +09:00
Christian Costa
27c72ae986
d3dx9_36: Fix d3dx9_skin_info_ConvertToIndexedBlendedMesh stub.
2015-03-05 21:41:58 +09:00
Austin English
c19876ed4e
d3dx9_36: Add D3DXDisassembleShader stub.
2015-02-16 23:22:04 +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
Sebastian Lackner
0cde50d223
d3dx9_36: Implement D3DXCreatePolygon.
...
Based on a patch by David Adam.
2014-11-11 16:19:44 +09:00
Matteo Bruni
beb72c91af
d3dx9: Improve the scoring for fallback formats.
2014-11-11 14:21:12 +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
5aeb834dd4
d3dx9: Allow implicit conversions in D3DXCreateTextureFromFileInMemoryEx.
...
They should be generally supported by the existing code.
Specific missing format conversions are caught and reported by
D3DXLoadSurfaceFromMemory(), which is called directly or indirectly
from here.
2014-08-27 19:24:41 +02:00
Matteo Bruni
807c01727c
d3dx9: Avoid reading outside of the allocated surface memory (Valgrind).
2014-08-27 19:23:06 +02:00
Matteo Bruni
78e02675ab
d3dx9: Correctly handle out of memory conditions while reallocating children array.
2014-08-26 18:48:42 +02:00
Matteo Bruni
bd4fcdbde5
d3dx9: Remove stray hunk.
2014-08-26 16:44:58 +02:00
Matteo Bruni
7c2c242b2e
d3dx9: Release child mesh objects (Valgrind).
2014-08-26 16:44:54 +02: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
ec364eaa4f
d3dx9: Account for include paths mixing '/' and '\'.
...
Include pathnames are passed unchanged to ID3DInclude objects so e.g.
if a file is included as "path/file.h" the full pathname will have
mixed slashes.
2014-08-25 22:02:41 +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
Thomas Faber
5bd5c89596
d3dx9_36: Do not omit mandatory argument to WriteFile.
2014-07-14 17:22:38 +02:00
Gediminas Jakutis
fe802d92bb
d3dx9: Implement D3DXCreateTorus() + tests.
2014-07-10 12:40:34 +02:00
Gediminas Jakutis
dc115a2c91
d3dx9: Add adjacency generation for D3DXCreateSphere().
2014-07-03 11:41:48 +02:00
Frédéric Delanoy
95ae71f3ab
Assorted spelling/grammar fixes.
2014-07-01 13:09:13 +02:00
Matteo Bruni
d64ec66b41
d3dx9: Correctly set parent_data for direct includes from the main file.
2014-06-26 20:02:13 +02:00
Nikolay Sivov
9475dc58d1
d3dx9: Trace out parameters as pointers (Valgrind).
2014-06-16 09:30:33 +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
Matteo Bruni
b3c5d2ccda
d3dx9: Skip the AddRef/Release calls if the new texture is the same as the old one.
2014-04-17 19:06:08 +02:00
Matteo Bruni
96b0b91752
d3dx9: Copy the entire vector at once if there is no need of type conversions.
2014-04-17 13:53:06 +02:00
Stefan Dösinger
ed3b1037f9
d3dx9_36/tests: Initialize some test values.
2014-04-01 20:58:01 +02:00
Matteo Bruni
5cfca92c53
d3dx9: Copy the entire matrix at once if there is no need of type conversions.
2014-03-18 11:39:40 +01:00
Matteo Bruni
1e2fbcc99b
d3dx9: Split out set_matrix_transpose from set_matrix.
2014-03-18 11:39:37 +01:00
Matteo Bruni
babf0dca03
d3dx9: Parse "usage 2" effect resources.
2014-03-18 11:39:34 +01:00
Matteo Bruni
0e0b613192
d3dx9: Store pointers to referenced parameters for "usage 1" resources.
2014-03-18 11:39:31 +01:00
Matteo Bruni
aef52a1d13
d3dx9: Create shaders and strings.
2014-03-18 11:39:26 +01:00
Matteo Bruni
7617951dfd
d3dx9: Correctly handle empty parameter data.
2014-03-13 20:22:19 +01: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
Matteo Bruni
db4bf1e1d4
d3dx9: Fix a WARN.
2014-03-13 20:22:14 +01:00
Rico Schüller
9809a3670c
d3dx9/tests: Check if D3DFMT_X1R5G5B5 is supported.
2014-03-11 19:39:27 +01:00
Henri Verbeet
c91c8ca92d
d3dx9: Use a 1x1x1 unit box in D3DXCreateBox().
2014-03-07 11:34:00 +01:00
Matteo Bruni
83c3f8c9ed
d3dx9: Free string data.
2014-03-05 19:18:20 +01:00
Matteo Bruni
596557a57a
d3dx9: Support skipping mip levels in D3DXCreateTextureFromFileInMemoryEx.
2014-03-05 19:18:17 +01:00
Matteo Bruni
7788161c91
d3dx9: Introduce a handle table for parameters to make lookup faster.
2014-03-05 19:18:11 +01:00
Matteo Bruni
db8e1df742
d3dx9: Fix an error trace.
2014-03-05 19:17:12 +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
9008971bde
d3dx9: Improve a number of WARN messages.
2014-03-03 17:53:50 +01:00
Matteo Bruni
8b5cd9edbc
d3dx9: Always use type->Rows as D3DXPC_MATRIX_ROWS parameters size.
2014-03-03 17:53:37 +01:00
Matteo Bruni
c6fefc20a6
d3dx9: Turn D3DXCreateEffectEx FIXME into a TRACE, improve it a bit.
2014-03-03 17:53:34 +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
8226a187d6
d3dx9: Don't call CoUninitialize if CoInitializeEx failed.
2014-02-25 14:18:07 -06:00