Commit Graph

903 Commits

Author SHA1 Message Date
Rico Schüller 396af0dac3 d3dx9: Optimize set_matrix(). 2012-08-29 11:43:20 +02:00
Rico Schüller 77632f0880 d3dx9: Avoid desc copy in ID3DXConstantTable::GetSamplerIndex(). 2012-08-28 20:24:35 +02:00
Rico Schüller edb802a847 d3dx9: Remove min() in set_matrix_array(), uses always the desc value. 2012-08-28 20:24:34 +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 a4dde8151b d3dx9: Improve set_matrix_array(). 2012-08-28 20:24:33 +02:00
Rico Schüller 97ef9f9322 d3dx9: Add some traces to D3DXLoadSurfaceFromMemory(). 2012-08-28 20:24:18 +02:00
Jacek Caban 434b696c46 Fixed remaining wrong iface call helpers. 2012-08-28 14:41:12 +02:00
Rico Schüller 42d28e0d34 d3dx9/tests: Fix typo. 2012-08-27 13:42:31 +02:00
Rico Schüller 8c8b4c356c d3dx9: Remove "too many constants" fixme. 2012-08-27 13:42:31 +02:00
Rico Schüller 3dc48141d1 d3dx9: Add debug helper function for RegisterSet. 2012-08-27 13:42:30 +02:00
Rico Schüller 24ab70906b d3dx9: Use debug_d3dxparameter_class/type in traces. 2012-08-27 13:42:30 +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
Rico Schüller 053e5b59ec d3dx9: Fix RegisterCount calculation. 2012-08-27 11:33:11 +02:00
Rico Schüller 4d59b503de d3dx9: Implement ID3DXConstantTable::GetConstantElement(). 2012-08-27 11:32:52 +02:00
Rico Schüller fa7422bc4e d3dx9: Improve ID3DXConstantTable::GetConstantDesc(). 2012-08-27 11:32:47 +02:00
Rico Schüller ea4f402164 d3dx9: Improve ID3DXConstantTable::GetConstant(). 2012-08-27 11:32:42 +02:00
Rico Schüller 2204986797 d3dx9: Improve ID3DXConstantTable::GetConstantByName(). 2012-08-27 11:32:38 +02:00
Rico Schüller 1278843643 d3dx9: Improve is_valid_constant(). 2012-08-24 11:13:52 +02:00
Rico Schüller b565e8fb4f d3dx9: Parse structs and sub constants in ID3DXConstantTable. 2012-08-24 11:12:43 +02:00
Rico Schüller 8f83681723 d3dx9: Don't use an index as variable handle, it's not useable for subvariables. 2012-08-24 11:12:36 +02:00
Rico Schüller 0968331524 d3dx9: Add a fixme for flags in D3DXGetShaderConstantTableEx(). 2012-08-24 10:26:08 +02:00
Rico Schüller 6676a729b4 d3dx9: Remove ctab_constant typedef. 2012-08-24 10:26:04 +02:00
Francois Gouget e282d418e3 d3dx9_36: Add a trailing '\n' to a couple of Wine traces. 2012-08-21 17:47:49 +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 edbd09fb45 d3dx9: Implement ID3DXConstantTable::SetMatrixTransposeArray. 2012-08-21 17:47:39 +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 77993a610e d3dx9: Avoid TRUE : FALSE conditional expression. 2012-08-21 17:32:11 +02:00
Rico Schüller becf83fd86 d3dx9: Remove not needed TRACE. 2012-08-21 17:32:02 +02:00
Rico Schüller 892308fdb6 d3dx9: Identify D3DTSS_CONSTANT and FVF states. 2012-08-21 17:31:58 +02:00
Rico Schüller f9a4a9db1b d3dx9: Don't double check the technique. 2012-08-21 17:31:54 +02:00
Rico Schüller 98d196a808 d3dx9/tests: Add variable name test. 2012-08-20 14:58:45 +02:00
Rico Schüller c1193ab79b d3dx9: Move technique name handling to technique handle validation. 2012-08-20 14:58:39 +02:00
Rico Schüller 05818a3056 d3dx9: Use a separate function for the technique name. 2012-08-20 14:58:34 +02:00
Rico Schüller 9c1c964139 d3dx9: Silence missing function handling in the effect interface. 2012-08-20 14:58:30 +02:00
Rico Schüller 24ee16de09 d3dx9: Make annotation handling more generic for techniques and passes. 2012-08-20 14:58:22 +02:00
Rico Schüller 607c76a165 d3dx9: Improve check for empty braces for elements. 2012-08-20 14:58:10 +02:00
Rico Schüller 07ae14ad4c d3dx9: Return NULL if name is not given. 2012-08-20 14:58:05 +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 c2c9959bb8 d3dx9: Implement ID3DXConstantTable::SetValue. 2012-08-16 19:36:54 +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 d2bbbc712e d3dx9: Implement ID3DXConstantTable::SetBool. 2012-08-16 19:36:28 +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 fea0b7dcbe d3dx9: Implement ID3DXConstantTable::SetDefaults. 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
Józef Kucia e67920f12f d3dx9: Introduce a helper function for setting float shader constants. 2012-08-14 12:47:59 +02:00
Józef Kucia c9f9025633 d3dx9: Introduce helper functions to operate on constant handles. 2012-08-14 12:47:59 +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 17d92f3b8f d3dx9: Implement rendering to cube textures in ID3DXRenderToEnvMap. 2012-08-13 17:28:05 +02:00
Józef Kucia 8c4adc0617 d3dx9: Introduce separate functions for restoring and capturing device state. 2012-08-13 17:28:00 +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 c7bf5e09d5 d3dx9_36: Add more traces. 2012-07-23 12:33:25 +02:00
Nozomi Kodama 3c278d7ec3 d3dx9_36: Add some traces. 2012-07-20 13:59:04 +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 e8bfaf1727 d3dx9: Use structure to pass volume size to pixel format conversion functions. 2012-07-16 16:56:08 +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
Rico Schüller 9428317336 d3dx9: Implement ID3DXBaseEffect::GetMatrixTransposePointerArray(). 2012-07-10 11:16:24 -05:00
Rico Schüller d0fd8f4d88 d3dx9: Implement ID3DXBaseEffect::GetMatrixPointerArray(). 2012-07-10 11:16:16 -05:00
Józef Kucia b267cc2927 d3dx9: Implement D3DXLoadVolumeFromFile. 2012-07-09 15:44:17 -04:00
Józef Kucia f5fd7fe3e1 d3dx9/tests: Add tests for D3DXLoadVolumeFromFileInMemory. 2012-07-09 15:44:08 -04:00
Józef Kucia 18a2dde127 d3dx9: Implement D3DXLoadVolumeFromFileInMemory. 2012-07-09 15:44:01 -04:00
Józef Kucia 83c7fed1b0 d3dx9: Fix D3DXLoadVolumeFromVolume so it works for subsets of volumes. 2012-07-09 15:43:50 -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
Rico Schüller 929c669b4f d3dx9: Implement ID3DXBaseEffect::SetMatrixTransposePointerArray(). 2012-07-03 14:56:08 +02:00
Rico Schüller e5953b6b17 d3dx9: Implement ID3DXBaseEffect::SetMatrixPointerArray(). 2012-07-03 14:56:01 +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 fde802a04d d3dx9: Forward D3DXCreateVolumeTextureFromFile functions to D3DXCreateVolumeTextureFromFileInMemoryEx. 2012-07-02 11:59:24 +02:00
Józef Kucia 07b0f25404 d3dx9: Implement D3DXCreateVolumeTextureFromFileInMemoryEx. 2012-07-02 11:59:13 +02:00
Józef Kucia 9e262e1a9b d3dx9: Implement D3DXLoadVolumeFromVolume. 2012-07-02 11:58:53 +02:00
Józef Kucia 09519eece1 d3dx9/tests: Add tests for D3DXLoadVolumeFromMemory. 2012-07-02 11:58:45 +02:00
Józef Kucia ee44f33e85 d3dx9: Implement D3DXLoadVolumeFromMemory. 2012-07-02 11:58:21 +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
Józef Kucia caf1c1a775 d3dx9: Get rid of ID3DXFontImpl. 2012-06-19 11:12:02 +02:00
Nozomi Kodama 5523820b81 d3dx9_36: Recognize A8B8G8R8 format. 2012-06-18 10:57:04 +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
Francois Gouget bebcce32b0 d3dx9_36/tests: Make a couple of test functions static. 2012-06-12 11:11:36 +02:00
Józef Kucia 0e532633e3 d3dx9/tests: Use inline functions instead of check_pixel_{1bpp, 2bpp, 4bpp} macros. 2012-06-11 12:37:40 +02:00
Józef Kucia cda4738f52 d3dx9/tests: Improve test failure messages for check_{ref, release}. 2012-06-11 12:37:30 +02:00
Józef Kucia 35c13b0879 d3dx9: Add ID3DXRenderToEnvMap interface stub. 2012-06-11 12:37:22 +02:00
Józef Kucia f072404f61 d3dx9/tests: Add tests for D3DXCreateRenderToEnvMap. 2012-06-11 12:37:16 +02:00
Józef Kucia cda45bca92 d3dx9/tests: Add tests for device state changes for ID3DXRenderToSurface interface. 2012-06-07 21:42:49 +02:00
Józef Kucia bccda19e8f d3dx9/tests: Add tests for ID3DXRenderToSurface interface. 2012-06-07 21:42:43 +02:00
Józef Kucia c0e583af6d d3dx9: Implement ID3DXRenderToSurface::BeginScene and ID3DXRenderToSurface::EndScene. 2012-06-07 21:42:36 +02:00
Józef Kucia de1f2ffd52 d3dx9: Implement ID3DXRenderToSurface::GetDevice. 2012-06-06 11:56:18 +02:00
Józef Kucia 0ed3eb0120 d3dx9: Implement ID3DXRenderToSurface::GetDesc. 2012-06-06 11:56:14 +02:00
Józef Kucia 5c6438e834 d3dx9: Add ID3DXRenderToSurface interface stub. 2012-06-06 11:56:09 +02:00
Józef Kucia 4200198355 d3dx9/tests: Add basic tests for D3DXCreateRenderToSurface. 2012-06-06 11:55:56 +02:00
Józef Kucia ad5a00b7f8 d3dx9: Add stub for D3DXCreateRenderToSurface. 2012-06-06 11:55:41 +02:00
Józef Kucia 6953865e8d d3dx9/tests: Fix indentation. 2012-06-06 11:55:01 +02:00
Józef Kucia 6fe841edde d3dx9/tests: Add tests for loading surfaces from non-lockable render targets. 2012-06-06 11:54:54 +02:00
Józef Kucia cbb9002aa6 d3dx9/tests: Add tests for DDS header handling. 2012-06-04 10:34:26 +02:00
Henri Verbeet 176d27e889 d3dx9: Use wine_dbgstr_rect() in some more places. 2012-06-01 17:46:44 +02:00
Józef Kucia 13b2a3b9bc d3dx9/tests: Add tests for D3DXSaveTextureToFileInMemory. 2012-05-31 12:37:27 +02:00
Józef Kucia 38b8949fea d3dx9: Implement D3DXSaveTextureToFileInMemory. 2012-05-31 12:37:26 +02:00
Józef Kucia dfc5ab140c d3dx9: Forward D3DXSaveTextureToFile to D3DXSaveTextureToFileInMemory. 2012-05-31 12:37:25 +02:00
Józef Kucia 70b1bff695 d3dx9: Implement D3DXSaveSurfaceToFileInMemory. 2012-05-31 12:37:25 +02:00
Rico Schüller f658aabfd5 d3dx9: Crop the input in ID3DXBaseEffect::SetBool(). 2012-05-30 17:17:57 +02:00
Henri Verbeet 372984e053 d3dx9: Don't use HEAP_ZERO_MEMORY if we're going to overwrite the memory anyway. 2012-05-25 16:24:03 +02:00
Józef Kucia ada5152650 d3dx9: Add support for luminance pixel formats. 2012-05-23 18:25:07 +02:00
Józef Kucia 3a94473802 d3dx9: Add a WARN to get_image_info_from_dds about too short DDS files. 2012-05-23 18:25:07 +02:00
Józef Kucia d313e4f9d3 d3dx9: Fix the expected_length computation for non-square DDS files. 2012-05-23 18:25:07 +02:00
Michael Stefaniuc 7446af76f4 d3dx9_36/tests: Check the correct return value. 2012-05-22 17:44:02 +02:00
Józef Kucia 5bd0070a1d d3dx9/tests: Remove d3d9 test from d3dx9 tests. 2012-05-22 17:43:58 +02:00
Józef Kucia e46d650d3f d3dx9/tests: Mark broken behavior of the debug version of d3d9. 2012-05-21 11:33:59 +02:00
Józef Kucia 8061bec3af d3dx9/tests: Do not release a texture when it wasn't created. 2012-05-21 11:33:58 +02:00
Józef Kucia 4d462adef9 d3dx9/tests: Use more common formats for surfaces in DXTn tests. 2012-05-21 11:33:58 +02:00
Józef Kucia 0da94d4985 d3dx9/tests: Add a test for D3DXLoadSurfaceFromSurface. 2012-05-21 11:33:58 +02:00
Józef Kucia d7a633a438 d3dx9/tests: Add more tests for D3DXFilterTexture. 2012-05-21 11:33:57 +02:00
Józef Kucia 480e4e5bfc d3dx9: Correctly check if a cube texture is dynamic in D3DXCreateCubeTextureFromFileInMemoryEx. 2012-05-21 11:33:57 +02:00
Józef Kucia eb55412f66 d3dx9: Correctly check if a texture is dynamic in D3DXCreateTextureFromFileInMemoryEx. 2012-05-21 11:33:56 +02:00
Józef Kucia 1a4f1edf32 d3dx9: Use actual level count for computing the number of loaded mipmaps. 2012-05-21 11:33:56 +02:00
Józef Kucia 7d07f1f2f6 d3dx9: Correctly handle D3DUSAGE_AUTOGENMIPMAP in D3DXCheckVolumeTextureRequirements. 2012-05-21 11:33:56 +02:00
Józef Kucia dfc085b684 d3dx9: Correctly handle D3DUSAGE_AUTOGENMIPMAP in D3DXCheckTextureRequirements. 2012-05-21 11:33:55 +02:00
Józef Kucia 091a4269ef d3dx9/tests: Fix messed up parameters. 2012-05-17 17:44:27 +02:00
Józef Kucia 5ab8c2fdf8 d3dx9/tests: Do not release a cube texture if it wasn't created. 2012-05-17 17:44:27 +02:00
Francois Gouget fac36c55e9 Assorted typo, spelling, wording and case fixes. 2012-05-15 16:26:43 +02:00
Józef Kucia 3728a88231 d3dx9: Properly check if a texture is lockable in D3DXCreateTextureFromFileInMemoryEx. 2012-05-14 17:52:23 +02:00
Józef Kucia b47c92bae3 d3dx9: Add traces. 2012-05-14 17:52:04 +02:00
Józef Kucia adc694b831 d3dx9/tests: Add tests for compressed pixel formats support in D3DXLoadSurface functions. 2012-05-14 17:51:53 +02:00
Józef Kucia 37ae580b84 d3dx9: Add DDS support in D3DXLoadSurfaceFromFile functions. 2012-05-14 17:51:40 +02:00