Jan Sikorski
0ceabaae80
d3d8: Don't grab wined3d lock in vertex/indexbuffer AddRef/Release().
...
Signed-off-by: Jan Sikorski <jsikorski@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-19 22:51:34 +02:00
Jan Sikorski
154f612cd9
d3d8: Don't grab wined3d lock for wined3d_resource_map/unmap().
...
Signed-off-by: Jan Sikorski <jsikorski@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-19 22:51:29 +02:00
Alexandre Julliard
d2521ce33f
d3d8: Build with msvcrt.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-02 10:00:29 +02:00
Matteo Bruni
7dfc56937d
d3d8: Always allow read and write map access to non-DEFAULT buffers.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-14 20:13:59 +02:00
Matteo Bruni
873178c03a
d3d8: Release system memory wined3d buffer only after the draw buffer is destroyed.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46371
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-28 21:37:30 +01:00
Matteo Bruni
10061d591e
d3d8: Don't allow map read access to D3DUSAGE_WRITEONLY buffers.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-31 18:13:18 +01:00
Matteo Bruni
7003ba4489
d3d8: Take usage flags into account when assigning map flags.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-31 00:13:00 +01:00
Józef Kucia
b51bc84338
wined3d: Move wined3d_bit_scan() to public header.
...
wine/port.h is required for ffs().
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>
2019-01-25 23:09:07 +01:00
Paul Gofman
f6896e062d
d3d8: Fix crash in d3d8_indexbuffer_Release().
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-20 20:19:16 +01:00
Paul Gofman
90bd6dc3ee
d3d8: Fix crash in d3d8_vertexbuffer_Release().
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-20 20:19:14 +01:00
Matteo Bruni
695dbca9d3
d3d8: Support drawing from D3DPOOL_SYSTEMMEM index buffers.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-17 22:35:22 +01:00
Matteo Bruni
75b7ff6056
d3d8: Support drawing from D3DPOOL_SYSTEMMEM vertex buffers.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-17 22:35:22 +01:00
Józef Kucia
4dcba35b88
d3d8: Remove dead code from indexbuffer_init() (Coverity).
...
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>
2018-11-30 19:36:51 +01:00
Henri Verbeet
b9d50242a6
d3d8: Disallow rendertarget and depth/stencil usage on index buffers.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-21 17:06:29 +01:00
Henri Verbeet
55092b5c9d
d3d8: Disallow rendertarget and depth/stencil usage on vertex buffers.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-21 17:06:16 +01:00
Henri Verbeet
28324c5be9
d3d8: Disallow index buffers in the scratch pool.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-20 16:26:04 +01:00
Henri Verbeet
7cba915710
wined3d: Pass correct bind flags to texture creation functions.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-31 16:17:36 +01:00
Henri Verbeet
6ca15e9c13
wined3d: Split WINED3D_RESOURCE_ACCESS_MAP into WINED3D_RESOURCE_ACCESS_MAP_R and WINED3D_RESOURCE_ACCESS_MAP_W.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 13:43:52 +01:00
Henri Verbeet
8a1a94cd20
d3d8: Explicitly translate resource map flags.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-16 14:25:01 +01:00
Henri Verbeet
02dc04bcc9
wined3d: Do not implicitly set WINED3D_RESOURCE_ACCESS_MAP for dynamic resources.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-14 09:06:51 +01:00
Henri Verbeet
2cf1db59ee
d3d8: Set WINED3D_RESOURCE_ACCESS_MAP on buffers.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-12 15:33:09 +01:00
Henri Verbeet
4b08687757
d3d8: Use the global memory allocation helpers.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 09:42:06 +01:00
Henri Verbeet
5fc8b43c8a
d3d8: Use wined3d_buffer_create() in vertexbuffer_init().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 09:42:01 +01:00
Henri Verbeet
9801f09b57
d3d8: Use wined3d_buffer_create() in indexbuffer_init().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 12:58:58 +01:00
Henri Verbeet
9275b06cc0
wined3d: Replace the pool in struct wined3d_resource_desc with resource access flags.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-02 18:36:45 +01:00
Henri Verbeet
2abf1dd323
wined3d: Get rid of WINED3D_POOL_SCRATCH.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-29 20:29:00 +01:00
Henri Verbeet
743a47d3c4
d3d8: Use wined3d_resource_unmap() in d3d8_indexbuffer_Unlock().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-29 17:55:23 +09:00
Henri Verbeet
9a82f0efa2
d3d8: Use wined3d_resource_map() in d3d8_indexbuffer_Lock().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-29 17:55:22 +09:00
Henri Verbeet
9853b59cd7
d3d8: Use wined3d_resource_unmap() in d3d8_vertexbuffer_Unlock().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-29 17:55:20 +09:00
Henri Verbeet
53b21e0e9c
d3d8: Use wined3d_resource_map() in d3d8_vertexbuffer_Lock().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-29 17:55:18 +09:00
Henri Verbeet
53165034ba
wined3d: Unify resource preloads.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-11 12:08:58 +09:00
Stefan Dösinger
cf11933701
wined3d: Remove wined3d_buffer_set/get_priority.
2014-07-16 16:10:01 +02:00
Stefan Dösinger
1db2bdcf8a
d3d8: Use the private store api for buffers.
2014-03-21 17:36:20 +01:00
Stefan Dösinger
97b5525888
d3d8: Introduce a resource structure.
2014-03-21 17:36:17 +01:00
Jacek Caban
1524cc2ab7
d3d8: Use proper helpers for iface calls.
2012-08-27 19:45:59 +02:00
Henri Verbeet
1993727ee7
d3d8: Get rid of IDirect3DVertexBuffer8Impl.
2012-05-22 18:07:05 +02:00
Henri Verbeet
27ca37dbe0
d3d8: Get rid of IDirect3DIndexBuffer8Impl.
2012-05-21 21:31:13 +02:00
Henri Verbeet
9b085a9260
d3d8: Get rid of IDirect3DDevice8Impl.
2012-05-21 21:31:10 +02:00
Henri Verbeet
83761d20a8
d3d8: Get rid of IDirect3DBaseTexture8Impl.
2012-04-19 12:01:47 +02:00
Henri Verbeet
e53a277305
wined3d: Get rid of the WINED3DPOOL typedef.
2012-01-18 12:37:38 +01:00
Henri Verbeet
ef9be113e2
d3d8: Don't expose wined3d internal flags to the application.
2012-01-11 17:47:13 +01:00
Michael Stefaniuc
9ab233ea24
d3d8: COM cleanup for the IDirect3DVertexBuffer8 iface.
2011-07-08 14:45:14 +02:00
Michael Stefaniuc
aa8e4dd81b
d3d8: Use unsafe_impl_from_IDirect3DVertexBuffer8 for app provided ifaces.
2011-07-08 14:45:09 +02:00
Michael Stefaniuc
638cf80c4f
d3d8: COM cleanup for the IDirect3DIndexBuffer8 iface.
2011-07-05 13:47:38 +02:00
Michael Stefaniuc
c1eeeec2d2
d3d8: Use unsafe_impl_from_IDirect3DIndexBuffer8 for an app provided iface.
2011-07-05 13:47:35 +02:00
Henri Verbeet
37d70103a1
d3d8: Implement IDirect3DIndexBuffer8 private data handling on top of wined3d_resource.
2011-06-17 11:02:43 +02:00
Henri Verbeet
dc6581ce5e
d3d8: Implement IDirect3DVertexBuffer8 private data handling on top of wined3d_resource.
2011-06-17 11:02:36 +02:00
Henri Verbeet
8d4ca1f815
wined3d: Remove COM from the device implementation.
2011-05-17 10:06:18 +02:00
Henri Verbeet
00a5f38595
wined3d: Remove object creation methods from the IWineD3DDevice interface.
2011-05-11 14:56:48 +02:00
Henri Verbeet
adb1e10979
wined3d: Get rid of wined3d_buffer_get_desc().
2011-03-11 11:40:47 +01:00