Commit Graph

500 Commits

Author SHA1 Message Date
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
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 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 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
Józef Kucia 13b2a3b9bc d3dx9/tests: Add tests for D3DXSaveTextureToFileInMemory. 2012-05-31 12:37:27 +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
Józef Kucia ada5152650 d3dx9: Add support for luminance pixel formats. 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 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
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 adc694b831 d3dx9/tests: Add tests for compressed pixel formats support in D3DXLoadSurface functions. 2012-05-14 17:51:53 +02:00
Józef Kucia 97987bed70 d3dx9: Add DDS support in D3DXCreateTextureFromFile functions. 2012-05-14 17:51:32 +02:00
Józef Kucia 69b94181f2 d3dx9: Implement D3DXCreateCubeTextureFromFileInMemoryEx. 2012-05-14 17:51:22 +02:00
Józef Kucia e91300a318 d3dx9: Check the size of a DDS file in D3DXGetImageInfoFromFileInMemory. 2012-05-14 17:50:08 +02:00
Józef Kucia 42dd957c50 d3dx9: Add missing pixel formats. 2012-05-14 17:49:53 +02:00
Józef Kucia cf89638685 d3dx9/tests: Move tests for texture functions from surface.c to texture.c. 2012-05-11 15:51:08 +02:00
Józef Kucia ecb1c602f4 d3dx9/tests: Use consistent naming for DDS defines. 2012-05-08 09:41:21 +02:00
Józef Kucia 8b17b0f5c6 d3dx9/tests: Add tests for D3DXSaveSurfaceToFile. 2012-05-07 17:20:25 +02:00
Francois Gouget 8036abe4da d3dx9_36/tests: Add a trailing '\n' to an ok() call. 2012-05-04 18:08:34 +02:00
Michael Mc Donnell 081b06c012 d3dx9: Added D3DXOptimizeFaces test. 2012-05-03 20:44:14 +02:00
Józef Kucia d3068976e5 d3dx9: Implement conversion from DDS pixel format to D3DFORMAT. 2012-05-01 14:46:59 +02:00
Józef Kucia b157bc7cfa d3dx9/tests: Add DDS pixel format tests for D3DXGetImageInfoFromFileInMemory. 2012-04-25 17:21:02 +02:00
Rico Schüller b09d195bf3 d3dx9/tests: Add tests for ID3DXBaseEffect::G/SetValue(). 2012-04-18 17:40:13 +02:00
Józef Kucia f8015cd235 d3dx9/tests: Add tests for D3DXCreateVolumeTextureFromFileInMemory. 2012-03-26 18:15:43 +02:00
Józef Kucia 7f3f5dd1eb d3dx9/tests: Add tests for D3DXCreateCubeTextureFromFileInMemory. 2012-03-26 18:15:42 +02:00
Józef Kucia 3a210af107 d3dx9/tests: Test the DDS support in the D3DXGetImageInfo functions. 2012-03-26 18:15:41 +02:00
Christian Costa a7692beb61 d3dx9_36: Make D3DXVec3Unproject support omission of world matrix + test. 2012-03-14 12:59:08 +01:00