Matteo Bruni
59d405b473
d3d9/tests: Improve the shade mode test.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-13 22:54:05 +09:00
Józef Kucia
b83beb18a2
d3d9: Use wined3d_resource_{map, unmap}() instead of wined3d_texture_{map, unmap}().
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-05 22:02:23 +09:00
Riccardo Bortolato
96dd793756
wined3d: Introduce wined3d_texture_release_dc().
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 22:31:29 +09:00
Riccardo Bortolato
a2f2d238d4
wined3d: Introduce wined3d_texture_get_dc().
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 22:31:29 +09:00
Riccardo Bortolato
3e491662ba
wined3d: Introduce wined3d_rendertarget_view_create_from_sub_resource().
...
Initial usage in d3d9.
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 22:31:28 +09:00
Henri Verbeet
e855837abb
d3d9/tests: Introduce a helper function to test for WARP.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-23 20:57:47 +09:00
Riccardo Bortolato
3b02ae89a8
d3d9: Replace wined3d_surface_get_render_target_data with wined3d_texture_blt in d3d9_device_GetRenderTargetData.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-23 19:19:17 +09:00
Michael Stefaniuc
4fb840b614
d3d9/tests: Test the return value of CreateDepthStencilSurface().
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-22 23:34:48 +09:00
Riccardo Bortolato
1745c5f960
d3d9: In surface_init check for GetDC supported at texture level (avoid using a subresource).
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-22 17:31:58 +09:00
Riccardo Bortolato
46b717c509
d3d9: Avoid using a wined3d_surface in get_desc calls inside d3d9_device_StretchRect.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-22 17:31:50 +09:00
Matteo Bruni
8075101480
d3d9/tests: Extend the shadow test a bit.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 22:42:11 +09:00
Matteo Bruni
d6e4064596
d3d9/tests: Extend the INTZ test a bit.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 22:42:04 +09:00
Riccardo Bortolato
1da007e75d
d3d9: Replace wined3d_surface_blt with wined3d_texture_blt in d3d9_device_StretchRect.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 01:04:32 +09:00
Riccardo Bortolato
f3c69e40dc
d3d9: Replace wined3d_surface_get_resource with wined3d_texture_get_sub_resource in d3d9_device_ColorFill.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 01:04:32 +09:00
Riccardo Bortolato
8f03c4413b
d3d9: Replace wined3d_surface_preload with wined3d_texture_preload.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 01:04:31 +09:00
Riccardo Bortolato
6671535dc3
wined3d: Make wined3d_device_set_cursor_properties work with wined3d_texture and sub_resource_index.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 00:30:38 +09:00
Riccardo Bortolato
53f795af0a
wined3d: Make wined3d_swapchain_get_front_buffer_data work with wined3d_texture and sub_resource_idx.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 00:30:38 +09:00
Riccardo Bortolato
9875ad2cc3
d3d9: Call wined3d_swapchain_get_front_buffer_data instead of wined3d_device_get_front_buffer_data in d3d9_device_GetFrontBuffer.
...
Removed the now unused wined3d_device_get_front_buffer_data from wined3d.
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 00:30:38 +09:00
Henri Verbeet
51b9aba9cc
d3d9: Simplify d3d9_device_CheckDeviceState().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-16 17:59:52 +09:00
Stefan Dösinger
59ec72879f
wined3d: Remove wined3d_device_present.
...
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>
2015-10-15 19:20:29 +09:00
Nikolay Sivov
6c2bda6e33
d3d9/tests: Use BOOL variable for ShowCursor return value (PVS-Studio).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-14 12:47:18 +09:00
Matteo Bruni
f63386f43e
d3d9/tests: Uninitialized varyings tests.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-13 22:24:04 +09:00
Riccardo Bortolato
9b02e116bd
d3d9: Don't use a wined3d_surface in d3d9_surface_GetDesc.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 23:34:56 +09:00
Riccardo Bortolato
736ca38d11
d3d9: Make use of wined3d_texture_unmap in d3d9_surface_UnlockRect.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 23:34:56 +09:00
Riccardo Bortolato
df1101ff68
d3d9: Make use of wined3d_texture_map in d3d9_surface_LockRect.
...
Also store wined3d_texture and sub_resource_idx in d3d9_surface.
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 23:34:56 +09:00
Riccardo Bortolato
9c00f968d6
d3d8: Make use of wined3d_texture_map in d3d8_surface_LockRect.
...
Pass wined3d_texture and sub_resource idx to device_parent_surface_created callback.
Store wined3d_texture and sub_resource in d3d8_surface.
Also updated d3d9, d3d11, ddraw callbacks accordingly.
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 23:34:56 +09:00
Matteo Bruni
742d4df55b
d3d9/tests: Use the new readback helpers in test_pointsize().
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 22:09:56 +09:00
Matteo Bruni
b8225d0a6a
d3d9/tests: Add helpers to avoid multiple readbacks of the render target surface.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 22:09:56 +09:00
Matteo Bruni
171352b901
d3d9/tests: Test uninitialized texture varyings with transformed vertices.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 22:09:56 +09:00
Matteo Bruni
7ee0578019
d3d9/tests: Fix color_match().
...
Clang on OS X complains about calling abs() on an unsigned value.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 21:00:38 +09:00
Riccardo Bortolato
33bb9e9610
wined3d: Don't pass a wined3d_volume to device_volume_created callback anymore.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 21:00:07 +09:00
Riccardo Bortolato
fca636a01c
d3d9: Don't use a wined3d_volume in d3d9_volume_GetDesc.
...
finally removed the wind3d_volume pointer from d3d9_volume.
Also removed wined3d_volume_get_resource.
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 20:59:58 +09:00
Riccardo Bortolato
8dd86823fd
d3d9: Make use of wined3d_texture_unmap in d3d9_volume_UnlockBox.
...
Also removed wined3d_volume_unmap from wined3d public api.
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 20:59:46 +09:00
Riccardo Bortolato
b9cc2859fe
d3d9: Make use of wined3d_texture_map in d3d9_volume_LockBox.
...
Also removed wined3d_volume_map from wined3d public api.
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 20:59:32 +09:00
Riccardo Bortolato
9621737c8e
wined3d: Pass wined3d_texture and sub_resource idx to device_volume_created callback.
...
Store wined3d_texture and sub_resource in d3d8_volume.
Updated the d3d8_volume_LockBox to make use of wined3d_texture_map.
Also updated d3d9, d3d11, ddraw callbacks accordingly.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
2015-10-07 21:28:52 +09:00
Riccardo Bortolato
1d1487105d
wined3d: Pass a wined3d_box to wined3d_surface_map..
...
Introduced a new surface_check_block_align function that accepts a
wined3d_box, eventually the old _rect version will be completely
replaced.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
2015-10-07 21:28:51 +09:00
Stefan Dösinger
178d0030a2
d3d9/tests: Port test_flip to d3d9.
...
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
2015-10-06 19:23:32 +09:00
Andrey Gusev
425160ce85
d3d9: TRACE fixes.
2015-09-18 14:57:38 +02:00
Gerald Pfeifer
601aa570f1
d3d9: Avoid shift overflow in render_state_test_data_init.
...
Same patch as just a minute ago, alas fro d3d9 instead of d3d8.
Gerald
2015-09-08 21:59:17 +09:00
Stefan Dösinger
2936e4ac54
wined3d: Remove wined3d_backbuffer_type.
2015-09-08 21:59:16 +09:00
Stefan Dösinger
2e8e2da5ee
d3d9/tests: Test D3DBACKBUFFER_TYPE.
2015-09-08 21:59:16 +09:00
Stefan Dösinger
fa0041954f
wined3d: Return a texture from the swapchain resource creation callback.
2015-09-04 20:01:05 +09:00
Stefan Dösinger
fc987aaaf6
d3d9/tests: Add more GetBackBuffer error handling tests.
2015-09-03 21:11:08 +09:00
Stefan Dösinger
feb35006f5
wined3d: Remove wined3d_device_get_back_buffer.
2015-09-03 21:11:08 +09:00
Stefan Dösinger
f010e5d88a
wined3d: Return a texture from wined3d_swapchain_get_back_buffer.
2015-09-03 21:11:07 +09:00
Stefan Dösinger
0933332c73
d3d9/tests: Fix backbuffer read vs flip in test_vertex_blending.
2015-08-28 19:52:25 +09:00
Stefan Dösinger
9261bbb1a6
d3d9/tests: Test presentation parameter combinations.
2015-08-27 21:43:47 +09:00
Stefan Dösinger
c4e4647ca5
d3d9: Validate swap effect and backbuffer count.
2015-08-27 21:43:46 +09:00
Stefan Dösinger
961f4c0a25
d3d9/tests: Mark testbot depth bias results broken.
2015-08-06 21:04:30 +09:00
Henri Verbeet
0c8e78f80d
d3d9: Don't assert on invalid IDirect3DBaseTexture9 interfaces.
2015-08-04 12:21:58 +02:00