Commit graph

2303 commits

Author SHA1 Message Date
Elizabeth Figura
95999accf6 wined3d: Default diffuse to 1.0 in the vertex shader. 2024-06-05 15:58:41 +02:00
Elizabeth Figura
4929e51932 wined3d: Just check the vertex declaration for colour usage.
Do not check the stream info. In practice, this amounts to a difference if the
usage is included in the vertex declaration but the corresponding stream is not
bound; however, tests show that in this case we should supply a default colour
of zero.
2024-06-05 15:58:37 +02:00
Elizabeth Figura
db63c8be29 wined3d: Just check the vertex declaration for point size usage.
Do not check the stream info. In practice, this amounts to a difference if the
usage is included in the vertex declaration but the corresponding stream is not
bound. The just-added tests show that in this case it is correct to use
per-vertex point size with a default size of one, rather than treating this case
as equivalent to if the usage was not specified in the vertex declaration.
2024-06-05 15:58:35 +02:00
Elizabeth Figura
392a724fc9 wined3d: Invalidate the vertex shader when WINED3D_FFP_PSIZE is toggled. 2024-06-05 15:58:35 +02:00
Jacek Caban
9208046048 d3d9: Use GNU assembly syntax on clang x86_64 MSVC target. 2024-05-23 13:50:37 +02:00
Jacek Caban
d30bd3a1f0 d3d9/tests: Use GNU assembly syntax on clang x86_64 MSVC target.
Also fix unused dummy_object_vtbl variable warnings on targets skipping the test.
2024-05-23 13:50:34 +02:00
Elizabeth Figura
91d57e3656 d3d9/tests: Remove leftover debugging code. 2024-05-23 13:50:30 +02:00
Elizabeth Figura
040b2a9c75 d3d9/tests: Test default attribute components. 2024-05-12 16:54:15 +02:00
Elizabeth Figura
fe94c844fa d3d9/tests: Add some tests for default diffuse values. 2024-05-12 16:54:15 +02:00
Elizabeth Figura
cad144a11f d3d9/tests: Expand test_color_vertex().
Test a stream present in the vertex declaration but not provided as a buffer.
2024-05-12 16:54:13 +02:00
Elizabeth Figura
b01b5c70ea d3d9/tests: Clarify and expand point size tests. 2024-05-12 16:54:13 +02:00
Matteo Bruni
17a687a127 d3d9/tests: Test creating a texture on a NULL HWND device. 2024-04-26 23:21:57 +02:00
Matteo Bruni
a9604de26c d3d9/tests: Don't create a vertex shader in test_desktop_window() when unsupported. 2024-04-26 23:21:57 +02:00
Matteo Bruni
a518e5c98a d3d9/tests: Skip test_sample_attached_rendertarget() without pixel shaders support. 2024-04-26 23:21:57 +02:00
Matteo Bruni
03321ea66a d3d9: Don't do instanced draws in DrawPrimitive() and DrawPrimitiveUP().
On Windows this behavior is hardware dependent. Setting instance_count
to 0 makes all our d3d versions consistent in this regard and avoids
triggering the FIXME() in wined3d:draw_primitive_immediate_mode().
2024-04-26 23:21:57 +02:00
David Heidelberg
a63af560dd d3d9/tests: Replace LPDWORD cast with float_to_int function.
Borrowed from dlls/wined3d/wined3d_private.h

Signed-off-by: David Heidelberg <david@ixit.cz>
2024-03-21 22:19:58 +01:00
Pavel Ondračka
d0e37372cf d3d9/tests: Define enums outside of struct.
Co-authored-by: David Heidelberg <david@ixit.cz>
Signed-off-by: David Heidelberg <david@ixit.cz>
2024-03-21 22:19:58 +01:00
Robin Kertels
f166b298ec d3d9/tests: Skip desktop window tests if device creation fails.
Signed-off-by: Robin Kertels <robin.kertels@gmail.com>
2024-03-15 15:06:37 +01:00
Zebediah Figura
fc18e54e63 d3d9/tests: Remove a no longer accurate comment.
Fixes: 7641980a9e
2024-03-14 10:16:30 +01:00
Akihiro Sagawa
98b053a5b8 d3d9: Update presentation parameters when creating a swap chain.
Fixes regression introduced by 215a32d643.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56070
2024-01-10 10:35:00 +01:00
Akihiro Sagawa
059b3ac77f d3d9/tests: Test the presentation parameters after creating an additional swap chain. 2024-01-10 10:35:00 +01:00
Akihiro Sagawa
45ea10c71f d3d9/tests: Test the presentation parameters after creating a device. 2024-01-10 10:35:00 +01:00
Zebediah Figura
c93440b700 d3d9: Upload mapped dynamic vertex and index buffers before every draw.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55591
2023-12-04 22:10:22 +01:00
Zebediah Figura
346f783ccc d3d9/tests: Add another test for drawing from a mapped buffer. 2023-12-04 22:10:22 +01:00
Zebediah Figura
ff30b54791 d3d9: Use wined3d_texture_acquire_identity_srv(). 2023-12-01 18:45:46 +01:00
Zebediah Figura
a328728702 wined3d: Record a dirty rect in wined3d_texture_create_dc(). 2023-11-09 11:21:18 +01:00
Zebediah Figura
8fa82bd1f8 d3d9/tests: Test that GetDC() records a dirty rect. 2023-11-09 11:21:18 +01:00
Zebediah Figura
0e39cd65cb wined3d: Translate sampler states to sampler objects in wined3d_device_apply_stateblock(). 2023-11-07 20:55:09 +01:00
Zebediah Figura
4e1da07b27 d3d9/tests: Do not test sysmem textures in test_mipmap_upload().
This does not work reliably on Windows. The application in question uses a managed texture.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53743
2023-11-07 11:05:37 +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
042f9304cc d3d9/tests: Use CRT allocation functions. 2023-10-31 18:48:51 +01:00
Alex Henrie
9a5b854e2b d3d9: Use CRT allocation functions. 2023-10-31 18:48:36 +01:00
Zebediah Figura
3e51b67e31 wined3d: Pass a wined3d_stateblock_state to wined3d_device_validate_device().
Revert the use of wined3d_state_uses_depth_buffer() in this function to the
version before 8b4e07d5f3.
2023-09-20 22:15:29 +02:00
Stefan Dösinger
b059052ece d3d9/tests: Mark hidden window WM_WINDOWPOSCHANGED tests unconditionally flaky.
kwin resizes hidden windows most of the time. I see the existing flaky
markers triggered on Windows 11 occasionally.
2023-09-14 11:13:50 +02:00
Stefan Dösinger
b14d7f2fa8 d3d9/tests: Fix skipping ATI2N in test_resource_access. 2023-09-14 11:13:36 +02:00
Stefan Dösinger
ac85fa8d0f d3d9/tests: Request a 3 mip level cube texture in test_getdc().
If we let d3d9 decide we get a single-level texture on HW that does not
support mipmapped cubes, e.g. r200 GPUs. By explicitly requesting the 3
levels we need we'll skip the test.

The test demonstrates that only one subresource can be locked / have a
DC, so it makes sense to show that this applies to the whole texture and
not just one level.
2023-09-14 11:13:33 +02:00
Stefan Dösinger
da264c4d00 d3d9/tests: Zero stride tests crash on Windows XP, r200 GPU. 2023-09-14 11:13:33 +02:00
Stefan Dösinger
49e1d2ea21 d3d9/tests: Don't check messages when doing the minimization workaround dance. 2023-09-08 11:29:18 +02:00
Stefan Dösinger
4bc8b73cf3 d3d9/tests: Don't fail test_reset_fullscreen if the WM resizes us.
fvwm does that for two independent reasons. The important thing is that
we don't receive a WM_SIZE during the reset call itself.
2023-09-08 11:29:16 +02:00
Stefan Dösinger
08177b1b5e d3d9/tests: Don't fail d3d9ex if the window manager restores focus too soon. 2023-09-08 11:05:15 +02:00
Stefan Dösinger
1356f253b9 d3d9/tests: Skip big test_query loops if the d3d implementation is too slow. 2023-09-05 15:20:39 +02:00
Alexandre Julliard
20afe43832 Remove unused NONAMELESS defines. 2023-08-15 18:56:45 +02:00
Alexandre Julliard
43d4956c27 d3d9/tests: Use nameless unions/structs. 2023-08-15 18:56:45 +02:00
Jeff Smith
a6d828b367 d3d9/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:40 +09:00
Zebediah Figura
5323042f7a wined3d: Add helpers to retrieve shader constants from a wined3d_stateblock. 2023-07-27 11:54:21 +09:00
Alistair Leslie-Hughes
fb4d36c661 d3d9: Remove DECLSPEC_HIDDEN usage. 2023-07-11 22:39:35 +02:00
Zebediah Figura
221f110bbd wined3d: Remove no longer used arguments from wined3d_texture_update_desc().
Limit it to updating user memory and pitch.
2023-06-29 12:04:37 +02:00
Zebediah Figura
ebaa0a9426 wined3d: Recreate swapchain textures in wined3d_swapchain_resize_buffers().
Instead of using wined3d_texture_update_desc(). This is safe, because:

* ddraw never exposes wined3d textures directly, and always retrieves them
  directly from wined3d when rendering.

* d3d8 and d3d9 (non-extended) will only resize buffers during a reset, and
  resetting is forbidden if the application holds any references to the
  backbuffers. RTVs are also replaced during a reset, so there is no concern
  about retrieving the old RTVs from the device state.

* d3d9ex allows resetting while holding references to the backbuffers, but tests
  (fixed by this patch) show that the backbuffers should in fact be recreated.

* dxgi forbids holding references to back buffers during ResizeBuffers(),
  including indirect references via command lists or device contexts.
2023-06-29 12:04:35 +02:00
Zebediah Figura
f97163f4ea d3d9: Hold a reference to the wined3d swapchain from d3d9 swapchain surfaces. 2023-05-10 17:08:48 +02:00