Zebediah Figura
5b97dbdb58
d3d10core/tests: Mark a test as no longer todo.
...
This was fixed by ef2908462d
.
I misremembered when writing that commit's message; we don't actually invalidate
STATE_SAMPLER when binding an SRV. Hence the code was not just "fragile" but in
fact already broken.
2023-12-05 21:24:37 +01:00
Zebediah Figura
37845b0e41
d3d10core/tests: Use slightly different values in test_sample_c_lz().
...
For some arcane reason the native AMD driver on Windows seems to fail to clear (or read from?) layer 0. Work around that by using 0.0 there.
2023-11-07 11:05:41 +01:00
Zebediah Figura
10334ab457
d3d10core/tests: Do not test GSInvocations in test_pipeline_statistics_query().
2023-11-07 11:05:41 +01:00
Alexandre Julliard
acad49573a
makefiles: Always use the global SOURCES variable for .c files.
2023-11-01 22:44:03 +01:00
Alexandre Julliard
7ccb5df0fc
makefiles: Always use the global SOURCES variable for .rc files.
2023-11-01 22:43:56 +01:00
Alex Henrie
b99ea51331
d3d10core/tests: Use CRT allocation functions.
2023-10-31 18:48:06 +01:00
Zebediah Figura
e50b5ce778
d3d10core/tests: Avoid POINT sampling exactly halfway between two mip levels.
...
This gives different results on llvmpipe.
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=53213
2023-10-23 07:37:17 -05:00
Zebediah Figura
ae1e5ec35c
d3d10core/tests: Test performing a full clear after a draw.
2023-09-20 22:15:29 +02:00
Alexandre Julliard
e441577a59
d3d10core/tests: Use nameless unions/structs.
2023-08-15 18:56:45 +02:00
Jeff Smith
162a8e1217
d3d10core/tests: Use compare_uint() in compare_float() instead of abs().
...
The result of abs(INT_MIN) is INT_MIN, which breaks the ulps comparison.
2023-08-10 09:52:34 +09:00
Zebediah Figura
44168cf4cb
d3d10core/tests: Mark test failures specific to the Vulkan or GL renderers.
2023-07-05 17:03:31 +02:00
Zebediah Figura
9f2cf25c2d
d3d10core/tests: Read back directly from the mipmap texture in test_generate_mips().
...
This is far simpler than drawing with it.
The immediate motivation here is that the DXGI_FORMAT_R8G8B8A8_UINT test causes
a validation error when drawing, since the shader declares its resource as a
float4 texture, which does not match the UINT view format. This could be fixed
by using a different shader, but it seems more prudent to just simplify the test
to not draw at all.
2023-06-27 11:58:17 +02:00
Zebediah Figura
58a791b7f9
d3d10core/tests: Add a regression test for mismatch of layered framebuffer attachments.
2023-04-07 17:05:52 +02:00
Zebediah Figura
2763e5b70f
d3d10core/tests: Add a broken() case for WARP in test_occlusion_query().
...
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=53252
2023-03-29 22:29:37 +02:00
Zebediah Figura
bb82bc78f4
wined3d: Use a string channel desc to initialize typed formats.
...
Avoid the need for manually set type attributes, and initialize the component
count for all such formats.
This fixes use of R11G11B10_FLOAT as a vertex attribute format with the GL
backend. Since it has no corresponding typeless format, prior to this commit the
component count was uninitialized and hence use of the format would result in a
GL error.
This fixes a GL error with Dark Souls Remastered. I did not immediately observe
any corresponding rendering errors, however.
2023-01-24 18:17:41 +01:00
Zebediah Figura
e705c822a3
d3d10core/tests: Add a basic test for vertex formats.
2023-01-24 18:17:41 +01:00
Francois Gouget
5f0b7390e9
d3d10core/tests: Fix the spelling of a comment.
2022-10-20 20:58:06 +02:00
Zebediah Figura
cd7a9386ec
d3d10core/tests: Ignore random WARP failures in test_pipeline_statistics_query.
...
This is the d3d10core counterpart to d741742e32
.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
2022-09-21 21:26:05 +02:00
Zebediah Figura
34bd0dd070
d3d10core/tests: Use a pixel shader that consumes SV_Position in test_pipeline_statistics_query().
...
Some drivers (AMD Radeon RX 6700 XT, with radeonsi from Mesa 22.2.0-rc3) emit
less than one invocation per pixel, presumably because they detect that the
shader control flow is uniform for all pixels. Having the control flow depend on
SV_Position avoids this test failure.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
2022-09-21 21:26:01 +02:00
Eric Pouech
6ba6f54f56
d3d10core/tests: Introduce a clear_backbuffer_rtv() helper.
...
This fixes warnings with gcc 12.2.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-15 22:33:40 +02:00
Eric Pouech
ae890d5442
d3d10core/tests: Fix erroneous color parameter.
...
(Spotted by warnings emitted by GCC 12.2).
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-15 22:33:37 +02:00
Zebediah Figura
0b51ef9f03
d3d10core/tests: Build without -DWINE_NO_LONG_TYPES.
2022-07-05 12:34:03 +02:00
Eric Pouech
fc128f661d
d3d10core: Enable compilation with long types.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-30 12:32:48 +02:00
Zebediah Figura
67b893ac09
d3d10core/tests: Add a regression test for writing to the stencil buffer after clearing it.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-03 21:53:10 +02:00
Nikolay Sivov
3dd9a78a1a
d3d11: Always initialize out shader pointer in CreatePixelShader().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-05-27 23:16:55 +02:00
Nikolay Sivov
ec8f304bcf
d3d11: Always initialize out shader pointer in CreateGeometryShader().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-05-27 23:16:55 +02:00
Nikolay Sivov
be4a332e47
d3d11: Always initialize out shader pointer in CreateVertexShader().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-05-27 23:16:55 +02:00
Zebediah Figura
f371ae8f26
d3d10core/tests: Add a test for 2D partial RTV slices of a 3D texture.
...
This succeeds with the Vulkan renderer.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-24 12:17:32 +02:00
Zebediah Figura
364aed6829
d3d10core/tests: Don't run the 32-bit tests multithreaded.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-07 17:31:33 +01:00
Nikolay Sivov
a3c65a329e
d3d11: Always initialize out view pointer in CreateDepthStencilView().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-01 20:35:09 +01:00
Nikolay Sivov
db6d549837
d3d11: Always initialize out view pointer in CreateShaderResourceView().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-01 20:35:04 +01:00
Alexandre Julliard
f0cd33c69e
include: Add support for defining Win32 types as 'long' where possible.
...
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Zebediah Figura
9206277105
d3d11: Report D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER.
...
This fixes a black screen in The Unfinished Swan.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-24 21:44:51 +01:00
Zebediah Figura
59636714e7
d3d11: Report D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-24 21:44:51 +01:00
Stefan Dösinger
b7808643c5
d3d10core/tests: Run test_generate_mips separately.
...
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-12 20:27:32 +01:00
Stefan Dösinger
623f8ec0b2
d3d10core/tests: Run test_instanced_draw() separately.
...
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-11 21:59:51 +01:00
Nikolay Sivov
df8ef3a54f
d3d11: Always initialize out view pointer in CreateRenderTargetView().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51195
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-10 21:32:29 +01:00
Michael Stefaniuc
0b9ec86c26
d3d10core/tests: Don't test stencil_ref again if it wasn't touched.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-28 17:23:30 +01:00
Andrey Gusev
b006a4c5ac
wined3d: Add WINED3DFMT_R11G11B10_FLOAT vertex format.
...
Used by Dark Souls: Remastered.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-17 18:33:57 +01:00
Andrey Gusev
4f3d189f53
wined3d: Add WINED3DFMT_R16_FLOAT vertex format.
...
Fixes rendering glitches in Batman: Arkham Knight.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-19 18:31:38 +01:00
Nikolay Sivov
c536da7fe0
d3d10core/tests: Add a test for DXGI_FORMAT_R8G8_UINT support in vertex buffers.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-17 16:04:42 +01:00
Nikolay Sivov
f266c87bc9
d3d11: Correctly handle optional arguments in OMGetBlendState().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-02 20:32:51 +01:00
Nikolay Sivov
3b860a0378
d3d11: Correctly handle optional arguments in OMGetDepthStencilState().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-19 20:53:37 +02:00
Zebediah Figura
2b30a5b47e
d3d10core/tests: Test deleting a stream output buffer immediately after drawing into it.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-19 20:53:24 +02:00
Matteo Bruni
9290f16797
d3d10core/tests: Use test contexts in test_stream_output().
...
Sneaked in a couple small changes: add a simpler gap test case, move a
gap test in the proper place.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-06 20:29:35 +02:00
Zebediah Figura
2ece80c300
d3d10core/tests: Add a stress test for dynamic buffer maps.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-27 20:38:24 +02:00
Alexandre Julliard
088a787a2c
makefiles: Make -mno-cygwin the default.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-20 22:45:48 +02:00
Nikolay Sivov
b1b49b5863
d3d10core/tests: Test 2D texture creation with mutually exclusive sharing modes.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-04 21:48:27 +02:00
Francois Gouget
5e065c3c70
d3d10core/tests: Increase the tolerance in test_texture_compressed_3d().
...
This fixes failures on Nvidia GeForce GTX 560 graphics cards.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51340
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-29 15:31:57 +02:00
Henri Verbeet
2aeab85c27
wined3d: Add decompression information for BC4_UNORM.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-22 17:57:47 +02:00