Commit Graph

95 Commits

Author SHA1 Message Date
Nikolay Sivov db1361ebb0 d3dx9/tests: Add some tests for constant descriptions in texture shaders.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-27 11:36:10 +02:00
Nikolay Sivov e3d42ca303 d3dx9: Implement ID3DXTextureShader::GetFunction().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-15 18:31:38 +02:00
Henri Verbeet 9bcb1f5195 d3dx9/tests: Introduce compare_uint().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-30 23:10:07 +02:00
Paul Gofman 0b03d21c8f d3dx9: Use check_texture_requirements() in D3DXCheckVolumeTextureRequirements() with correct resource type.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-30 11:30:02 +01:00
Paul Gofman a0840773f7 d3dx9: Don't pass usage flags for staging texture in D3DXCreateCubeTextureFromFileInMemoryEx().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47974
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-30 11:26:02 +01:00
Christian Costa f6f90daa31 d3dx9: Correctly align texture dimensions to block size in D3DXCheckTextureRequirements().
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-02 23:48:29 +02:00
Matteo Bruni f934ef1a14 d3dx9: Compute the correct source rect in D3DXLoadSurfaceFromFileInMemory().
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-27 22:43:07 +02:00
Matteo Bruni a838e144dc d3dx9: Implement DXTn compression for offset destination rect.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-27 22:43:02 +02:00
Matteo Bruni a9c158b72a d3dx9: Move the source rect alignment check into the condition for simple copy.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-27 22:42:57 +02:00
Matteo Bruni d2f3fc03cb d3dx9/tests: Improve tests to check for DXTn fallback formats.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-26 21:04:44 +02:00
Matteo Bruni 376182062f d3dx9: Handle compressed surfaces in D3DXLoadSurfaceFromMemory.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=24983
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-26 21:04:39 +02:00
Matteo Bruni 5472b8b983 d3dx9/tests: Add even more tests for misaligned block textures.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-26 21:03:23 +02:00
Matteo Bruni b7656110e6 d3dx9/tests: Add a test with a larger DXT5 texture.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-24 22:42:04 +02:00
Matteo Bruni 426d6776cf d3dx9/tests: Add a test for loading a texture smaller than the block size.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-24 22:42:01 +02:00
Paul Gofman 61e7e6ec1b d3dx9/tests: Add test for D3DXFillVolumeTexture() with default pool texture.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-23 16:31:38 +01:00
Paul Gofman 4e44d74afb d3dx9: Use temporary surface in D3DXFillTexture() for unmappable textures.
Fixes a regression triggered by commit 949dbbd31f.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46453
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-23 16:31:31 +01:00
Matteo Bruni ae519aff95 d3dx9/tests: Add a few missing surface Release() calls.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-13 20:58:09 +01:00
Matteo Bruni 9682095a3b d3dx9/tests: Fix checking for D3DUSAGE_AUTOGENMIPMAP support.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-13 20:58:09 +01:00
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
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
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
Stefan Dösinger 7109bebd02 wined3d: Move volume DXTn handling to apply_format_fixups. 2015-04-27 15:07:42 +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 770eaec561 d3dx9: Properly evaluate fallbacks for luminance texture formats in D3DXCheckTextureRequirements. 2014-08-25 22:02:21 +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 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
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 df3c573f63 d3dx9: Allow loading DDS volume textures into 2D textures. 2014-03-03 17:53:53 +01:00
Matteo Bruni 190877422e d3dx9: Enforce minimum texture dimensions for block-based pixel formats. 2014-02-17 20:16:21 +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
Henri Verbeet 3e5dd54971 d3dx9/tests: Use explicit A calls. 2013-10-31 09:58:44 +01: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
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 792e2ee248 d3dx9_36: Add DIB file support to D3DXLoadSurfaceFromFileInMemory. 2013-04-25 20:25:07 +02: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
Francois Gouget f963f93964 Assorted spelling fixes. 2013-01-07 11:10:40 +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
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
Detlef Riekenberg a695062447 d3dx9_36/tests: Fix copy & paste error in ok messages. 2012-09-26 10:59:00 +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 2c1968aef9 d3dx9: Allow D3DX_DEFAULT to be passed as srclevel to D3DXFilterTexture. 2012-07-23 14:55:45 +02:00
Józef Kucia ffe36a3894 d3dx9: Implement volume texture filtering in D3DXFilterTexture. 2012-07-16 16:56:17 +02:00