Commit Graph

418 Commits

Author SHA1 Message Date
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 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
Stefan Dösinger 2936e4ac54 wined3d: Remove wined3d_backbuffer_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 feb35006f5 wined3d: Remove wined3d_device_get_back_buffer. 2015-09-03 21:11:08 +09:00
Stefan Dösinger c4e4647ca5 d3d9: Validate swap effect and backbuffer count. 2015-08-27 21:43:46 +09:00
Henri Verbeet 3ccac1a71f d3d9: Update the backbuffer D3DPRESENT_PARAMETERS after a successful reset. 2015-04-14 17:26:44 +09:00
Henri Verbeet c78312ad08 d3d9: Merge most of d3d9_device_Reset() and d3d9_device_ResetEx(). 2015-04-14 17:26:42 +09:00
Stefan Dösinger d25cc9695b d3d9: Correct ColorFill validation. 2015-03-13 21:57:33 +09:00
Henri Verbeet ea534c9ab4 wined3d: Allow initial texture contents to be specified with wined3d_texture_create(). 2015-01-05 20:15:35 +01:00
Stefan Dösinger aa9bc4c509 d3d9: Refuse to reset a lost device. 2014-12-02 13:05:48 +01:00
Stefan Dösinger 8b6a7a9c02 d3d9: Only one fullscreen swapchain is allowed. 2014-11-25 19:49:30 +01:00
Henri Verbeet 97856bcfee wined3d: Replace wined3d_surface_update_desc() with wined3d_texture_update_desc(). 2014-09-29 10:37:35 +02:00
Henri Verbeet 74ab8e8ce9 wined3d: Do not increment the reference count of the returned buffer in wined3d_device_get_stream_source().
None of the other getters increment the reference count either.
2014-09-18 13:06:32 +02:00
Henri Verbeet 736b9e1c1c wined3d: Get rid of wined3d_device_color_fill(). 2014-08-22 12:53:26 +02:00
Henri Verbeet 07985a8c38 wined3d: Use rendertarget views for depth/stencil buffers instead of surfaces.
I don't think the difference between d3d10 depth/stencil and rendertarget
views is large enough to justify a separate type. Unfortunately that does make
the name "wined3d_rendertarget_view" slightly awkward.
2014-08-22 12:53:11 +02:00
Henri Verbeet b005ad6f90 wined3d: Use rendertarget views for color output instead of surfaces. 2014-08-21 12:24:42 +02:00
Henri Verbeet 888b278096 d3d9: wined3d_device_get_available_texture_mem() returns a UINT. 2014-08-18 12:47:10 +02:00
Henri Verbeet d1d48d3194 d3d9: The "forwardReference" field in struct d3d9_surface is always a texture, if set. 2014-08-18 12:47:01 +02:00
Henri Verbeet c5e8115ee2 d3d9: Volumes are always part of a texture. 2014-08-15 17:04:10 +02:00
Henri Verbeet ff694bf47d d3d9: Return E_OUTOFMEMORY on HeapAlloc() failure in device_parent_surface_created(). 2014-08-15 17:04:03 +02:00
Henri Verbeet ae25b1eca5 d3d9: Improve d3d9_device_CheckDeviceState() a little. 2014-06-30 22:04:53 +02:00
Henri Verbeet d50350886a d3d9: Check the device status in present calls. 2014-06-27 10:37:39 +02:00
Henri Verbeet 09fda3b805 d3d9: Improve d3d9_device_TestCooperativeLevel(). 2014-06-27 10:37:36 +02:00
Stefan Dösinger 96a74e0cf7 d3d9: Introduce a resource structure. 2014-03-24 20:20:15 +01:00
Stefan Dösinger 7f675174c8 d3d9: Make ResetEx and PresentEx hookable. 2014-03-03 17:46:52 +01:00
Frédéric Delanoy 91f2435469 Assorted spelling fixes. 2014-01-09 17:39:59 +01:00
Stefan Dösinger b91973daa7 wined3d: Merge wined3d_surface_set_mem into wined3d_surface_update_desc . 2014-01-08 20:02:22 +01:00
Stefan Dösinger 58f16ddd4e d3d9: shared_handle must be NULL in non-ex d3d9. 2013-12-10 17:32:22 +01:00
Stefan Dösinger 62df35c312 d3d9: Implement user memory for offscreen plain surfaces. 2013-12-10 17:32:15 +01:00
Stefan Dösinger 96c7a4d6ca d3d9: Buffers do not support user memory. 2013-12-10 17:32:09 +01:00
Stefan Dösinger d9bd9a9a87 d3d9: Volume and cube textures do not support user memory. 2013-12-10 17:32:03 +01:00
Stefan Dösinger b7b0b7d2e1 d3d9/tests: Test user memory with D3DPOOL_SCRATCH. 2013-12-10 17:31:56 +01:00
Henri Verbeet 15c1a26b55 wined3d: Create volumes inside wined3d. 2013-12-06 13:14:52 +01:00
Henri Verbeet 4b3db52b53 wined3d: Merge the texture creation functions. 2013-11-27 11:30:15 +01:00
Henri Verbeet afc3d2ab70 wined3d: Create surfaces inside wined3d. 2013-11-15 12:00:26 +01:00
Michael Müller edad7dea7e d3d9: Partial implementation of IDirect3DSwapChain9Ex. 2013-09-20 17:03:20 +02:00
Henri Verbeet 1a78667862 wined3d: Allow the first render target to be set to NULL.
Note that it still isn't necessarily safe to render in this case, because
there are places where we assume the first render target is always non-NULL in
order to determine e.g. framebuffer dimensions. It's now the responsibility of
the caller to ensure that doesn't happen.
2013-09-12 10:59:18 +02:00
Stefan Dösinger b7b028ca4b d3d9/tests: Test blocked texture creation restrictions. 2013-09-06 17:25:08 +02:00
Stefan Dösinger ac871305f8 wined3d: Store the mipmap level in the volume. 2013-08-22 20:15:18 +02:00
Henri Verbeet d0c9dbe763 d3d9: Always create textures for surfaces. 2013-08-20 11:50:34 +02:00
Henri Verbeet 4de77fa23f wined3d: Allow a custom pitch to be specified in wined3d_surface_set_mem(). 2013-06-14 11:46:20 +02:00
Henri Verbeet 93b76d9a9c d3d9: Create textures for swapchain surfaces. 2013-06-06 11:47:22 +02:00
Henri Verbeet d6bc4fe71a wined3d: Allow surface flags to be passed to texture creation functions. 2013-06-06 11:47:19 +02:00
Henri Verbeet 13a38e8d5e wined3d: Pass a wined3d_resource_desc structure to device_parent_create_swapchain_surface(). 2013-06-04 10:14:28 +02:00
Henri Verbeet a4d2660c9b wined3d: Pass a wined3d_resource_desc structure to device_parent_create_texture_surface(). 2013-06-04 10:14:26 +02:00
Michael Stefaniuc d86ecd4bb4 d3d9: Remove ERR() on HeapAlloc failure for small sizes known at compile time. 2013-02-07 15:48:20 +01:00
Stefan Dösinger 149a85c2e7 d3d: Remove high level patch support.
No Windows driver ever exposed this, and no game uses this. The
only application that used this feature is a DirectX 8 SDK sample.
2013-01-25 11:29:41 +01:00
Stefan Dösinger c57511ce4a d3d9: Return D3D_OK from the palette setters. 2013-01-14 17:29:59 +01:00
Stefan Dösinger f3f172ce81 d3d9: Use dynamic buffers for DrawIndexedPrimitiveUP. 2012-12-19 12:53:23 +01:00