Michael Stefaniuc
c1eeeec2d2
d3d8: Use unsafe_impl_from_IDirect3DIndexBuffer8 for an app provided iface.
2011-07-05 13:47:35 +02:00
Michael Stefaniuc
d615be8eea
d3d8: COM cleanup for the IDirect3DSurface8 iface.
2011-07-05 13:47:30 +02:00
Michael Stefaniuc
cce8294f39
d3d8: Use unsafe_impl_from_IDirect3DSurface8 for app provided ifaces.
2011-07-05 13:47:26 +02:00
Michael Stefaniuc
bdd8459a53
d3d8: Avoid an unsafe IDirect3DSurface8 to object cast.
2011-07-05 13:47:22 +02:00
Henri Verbeet
ddc29c40e6
wined3d: Make D3DRS_ZBIAS work.
...
D3DRS_ZBIAS is poorly defined, but it makes sense that the bias should be
format independent. Looking at application behaviour, it seems to include a
slope scale factor as well. This fixes a couple of regressions introduced by
96b758f7b3
, although it was broken before as
well, just in a different way.
2011-07-05 13:46:07 +02:00
Henri Verbeet
c461d312ba
wined3d: Request per-surface palettes in the client libs.
2011-06-24 08:49:48 -05:00
Henri Verbeet
b296f181dd
wined3d: Explicitly set surface alignment in the client libs.
...
Instead of using dxVersion.
2011-06-24 08:49:42 -05:00
Henri Verbeet
330ffc83f2
d3d8: Implement IDirect3DVolume8 private data handling on top of wined3d_resource.
2011-06-23 09:47:34 +02:00
Henri Verbeet
f6bfdd47c9
d3d8: Implement IDirect3DSurface8 private data handling on top of wined3d_resource.
2011-06-22 11:25:22 +02:00
Henri Verbeet
792060d67f
d3d8: Implement IDirect3DVolumeTexture8 private data handling on top of wined3d_resource.
2011-06-20 11:28:40 +02:00
Henri Verbeet
5b077584d2
d3d8: Implement IDirect3DTexture8 private data handling on top of wined3d_resource.
2011-06-20 11:28:36 +02:00
Henri Verbeet
ccf2ff7089
d3d8: Implement IDirect3DCubeTexture8 private data handling on top of wined3d_resource.
2011-06-20 11:28:32 +02:00
Stefan Dösinger
ae5ca837d5
d3d8: Don't print the ResourceManagerDiscardBytes fixme when Bytes == 0.
2011-06-17 15:37:38 +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
Andrew Nguyen
174b03cad8
d3d8: Increment the reference count of the IDirect3D8 parent when creating a device.
2011-06-06 21:49:19 +02:00
Henri Verbeet
c866eab730
d3d8: Just return the resource type in IDirect3DResource8::GetType() implementations.
...
There's no need to ask wined3d, since it's constant for a given
implementation.
2011-06-06 16:19:04 +02:00
Henri Verbeet
708d94212b
wined3d: Don't clamp vertex depth values.
...
Since we report D3DPMISCCAPS_CLIPTLVERTS.
2011-06-06 16:18:33 +02:00
Andrew Nguyen
eef74e5e4b
d3d8/tests: Avoid a shift overflow in render_state_test_data_init.
2011-05-31 18:32:59 +02:00
Stefan Dösinger
d8224118ab
d3d: Make the INTZ test more reliable.
2011-05-25 12:23:24 +02:00
Henri Verbeet
022db68080
d3d8/tests: Fix the depth clamping test.
2011-05-24 11:54:45 +02:00
Stefan Dösinger
6a43986e12
d3d8/tests: Use float literals.
2011-05-19 10:08:42 +02:00
Henri Verbeet
3032b40c80
wined3d: Get rid of the IWineD3DDeviceParent interface.
2011-05-19 10:06:21 +02:00
Stefan Dösinger
6867393614
d3d8: Stream indices are WORDs.
2011-05-18 16:42:08 +02:00
Stefan Dösinger
e55b3bef0f
d3d8: Add a float to DWORD cast.
2011-05-18 16:42:03 +02:00
Henri Verbeet
8d4ca1f815
wined3d: Remove COM from the device implementation.
2011-05-17 10:06:18 +02:00
Henri Verbeet
979e3744f7
wined3d: Remove state management methods from the IWineD3DDevice interface.
2011-05-17 10:06:15 +02:00
Henri Verbeet
00a5f38595
wined3d: Remove object creation methods from the IWineD3DDevice interface.
2011-05-11 14:56:48 +02:00
Stefan Dösinger
7b1e081515
d3d8: Map ZBIAS values to a smaller depth range.
2011-05-10 14:04:55 +02:00
Henri Verbeet
a4b032fd31
d3d8/tests: Add a volume texture test to test_reset().
2011-05-05 11:45:17 +02:00
Henri Verbeet
693fb6d56c
d3d8: Check for D3DPOOL_DEFAULT resources before doing a Reset().
2011-05-04 17:26:46 +02:00
Henri Verbeet
7db1ebb853
d3d8/tests: Add a Reset test.
...
This is based on the equivalent d3d9 test.
2011-05-04 17:26:46 +02:00
Henri Verbeet
b20a2703e4
d3d8/tests: Fix some failure messages in test_depth_stencil_size().
2011-05-04 17:26:46 +02:00
Henri Verbeet
7b44caa752
d3d8/tests: Add a test for window styles on device creation.
2011-05-03 14:38:06 +02:00
Henri Verbeet
1c1de920e3
wined3d: Remove COM from the surface implementation.
2011-04-29 16:52:13 +02:00
Stefan Dösinger
e140077cc7
d3d8: Add more tests for NULL render targets.
2011-04-26 16:17:45 +02:00
Stefan Dösinger
463162b414
d3d8: Don't reapply the old DS if SetDepthStencilSurface failed.
2011-04-26 16:17:43 +02:00
Stefan Dösinger
96b758f7b3
d3d: Map D3DRS_ZBIAS to WINED3DRS_DEPTHBIAS.
...
ZBIAS was removed in d3d9 and replaced with DEPTHBIAS. Currently
wined3d implements both independently which will cause trouble if we
want to set the depthbias value depending on the depth stencil format.
2011-04-22 17:51:29 +02:00
Henri Verbeet
2c450571e5
wined3d: Remove COM from the volume implementation.
2011-04-15 10:07:57 +02:00
Henri Verbeet
3ec19590d5
wined3d: Remove COM from the swapchain implementation.
2011-04-14 17:13:57 +02:00
Henri Verbeet
d2e665230a
wined3d: Get rid of the swapchain destroy callback.
2011-04-13 14:13:51 +02:00
Henri Verbeet
4e56a4fe79
d3d8: Get rid of the implicit swapchain refcounting hacks.
2011-04-11 23:54:13 +02:00
Henri Verbeet
dd2c7d0d8c
wined3d: Don't free D3D swapchains until the wined3d swapchain is destroyed.
...
This will allow us the get rid of the swapchain refcounting hacks in d3d9 in
particular. This is similar to the way we handle resources that are still in
use by a stateblock, but aren't referenced anywhere by the application.
2011-04-08 14:40:48 +02:00
Henri Verbeet
826c91c5e0
d3d8/tests: Add a test for partial depth buffer copies.
2011-04-05 11:13:51 +02:00
Henri Verbeet
f8f83ff2f7
wined3d: Remove COM from the shader implementation.
2011-03-31 12:37:46 +02:00
Henri Verbeet
3d4fe0b750
wined3d: Get rid of IWineD3DPixelShader.
2011-03-30 12:18:03 +02:00
Henri Verbeet
49725ba583
wined3d: Get rid of IWineD3DVertexShader.
2011-03-30 12:17:51 +02:00
Henri Verbeet
fd8e18bd2b
wined3d: Remove COM from the texture implementation.
2011-03-28 17:08:52 +02:00
Henri Verbeet
b8c40f3a7e
wined3d: Get rid of IWineD3DCubeTexture.
2011-03-18 15:59:04 +01:00
Michael Stefaniuc
d71d1cf703
d3d8: COM cleanup for the IDirect3DVolumeTexture8 iface.
2011-03-17 17:45:02 +01:00
Henri Verbeet
f1ec3820d7
wined3d: Get rid of IWineD3DTexture.
2011-03-17 10:40:52 +01:00
Henri Verbeet
ed0037854a
wined3d: Get rid of IWineD3DVolumeTexture.
2011-03-16 14:14:21 +01:00
Henri Verbeet
235dbbb5d7
d3d8: Fix IDirect3DCubeTexture8Impl_GetLOD().
2011-03-16 14:14:21 +01:00
Michael Stefaniuc
bc6786d0e5
d3d8: COM cleanup in shader.c.
2011-03-15 17:14:07 +01:00
Henri Verbeet
4a10bbc76d
wined3d: Generalize AddDirtyRect() / AddDirtyBox() to AddDirtyRegion().
2011-03-15 17:14:07 +01:00
Henri Verbeet
e409b83bcb
wined3d: Get rid of IWineD3DVolumeTexture::Unmap().
2011-03-15 17:14:06 +01:00
Henri Verbeet
4c3d55f10e
wined3d: Get rid of IWineD3DVolumeTexture::Map().
2011-03-15 17:14:06 +01:00
Stefan Dösinger
a6424b9445
d3d8: Test depth stencil size mismatches.
2011-03-14 13:10:32 +01:00
Stefan Dösinger
ee2ac1ca6b
d3d8: Use a proper window class for the device test.
2011-03-14 13:10:28 +01:00
Stefan Dösinger
a80579b2f3
d3d8: Destroy the windows after the test.
2011-03-14 13:10:13 +01:00
Stefan Dösinger
733f81ef74
d3d8: Disallow z buffers smaller than the color buffer.
2011-03-14 13:10:08 +01:00
Henri Verbeet
3494106d77
wined3d: Get rid of IWineD3DCubeTexture::Unmap().
2011-03-14 12:39:27 +01:00
Henri Verbeet
3ac924a2da
wined3d: Get rid of IWineD3DCubeTexture::Map().
2011-03-14 12:39:27 +01:00
Henri Verbeet
13b05b9dbe
wined3d: Get rid of IWineD3DTexture::Unmap().
2011-03-14 12:39:27 +01:00
Henri Verbeet
b77a661515
wined3d: Get rid of IWineD3DTexture::Map().
2011-03-14 12:39:27 +01:00
Henri Verbeet
adb1e10979
wined3d: Get rid of wined3d_buffer_get_desc().
2011-03-11 11:40:47 +01:00
Henri Verbeet
5f73f41f35
wined3d: Get rid of IWineD3DVolume::GetDesc().
2011-03-11 11:40:37 +01:00
Henri Verbeet
2b18192e7a
wined3d: Get rid of IWineD3DSurface::GetDesc().
2011-03-11 11:40:31 +01:00
Henri Verbeet
4fd03150f6
wined3d: Get rid of IWineD3DBaseTexture::GetSubResourceDesc().
2011-03-10 12:53:13 +01:00
Henri Verbeet
8809ebdf79
wined3d: Generalize GetSurfaceLevel() / GetVolumeLevel() to GetSubResource().
2011-03-10 12:53:04 +01:00
Henri Verbeet
63b72d789d
wined3d: Move the GetLevelDesc() functions to the IWineD3DBaseTexture interface.
2011-03-09 12:29:04 +01:00
Henri Verbeet
756fdb7c5a
wined3d: Merge the various resource desc structures.
2011-03-09 12:28:58 +01:00
Henri Verbeet
b9fae5e9a8
wined3d: Don't require container parents for IWineD3DDeviceParent methods to be COM objects.
2011-03-08 12:27:41 +01:00
Henri Verbeet
a27ee75ed2
wined3d: Remove COM from the buffer implementation.
2011-03-04 16:25:58 +01:00
Austin English
98678879af
d3d8/tests: Remove win9x hack.
2011-02-28 13:11:28 +01:00
Peter Urbanec
a02195a148
d3d8/tests: Use primary monitor screen size to perform tests.
2011-02-11 17:40:37 +01:00
Henri Verbeet
5765632d9f
wined3d: Remove COM from the vertex declaration.
2011-02-03 13:15:17 +01:00
Henri Verbeet
36d4268e3c
wined3d: Remove COM from IWineD3D.
2011-02-02 12:22:42 +01:00
Henri Verbeet
ebf66c1061
d3d8/tests: Release doesn't return a HRESULT (LLVM/Clang).
2011-02-01 12:01:00 +01:00
Michael Stefaniuc
8bf1940c62
d3d8: COM cleanup for the IDirect3DTexture8 iface.
2011-01-31 13:01:09 +01:00
Michael Stefaniuc
8a13f059ea
d3d8: COM cleanup for the IDirect3DCubeTexture8 iface.
2011-01-31 13:01:09 +01:00
Michael Stefaniuc
75cc89857e
d3d8: Remove the unused struct IDirect3DResource8Impl.
...
The rest was removed in cdb7a94ae2
.
2011-01-31 13:01:09 +01:00
Michael Stefaniuc
8ec3238b5e
d3d8: COM cleanup for the IDirect3DSwapChain8 iface.
2011-01-31 13:01:08 +01:00
Michael Stefaniuc
05b6032fb6
d3d8: COM cleanup for the IDirect3DVolume8 iface.
2011-01-31 13:01:08 +01:00
Henri Verbeet
4b109ff1f8
wined3d: Remove COM from the stateblock.
2011-01-31 12:24:58 +01:00
Michael Stefaniuc
7f184144ff
d3d8: COM cleanup for the IWineD3DDeviceParent_iface.
2011-01-28 11:59:45 +01:00
Michael Stefaniuc
54a61ae734
d3d8: Finish the COM cleanup of the IDirect3DDevice8 iface.
2011-01-28 11:59:39 +01:00
Michael Stefaniuc
dec337acac
d3d8: Use impl_from_IDirect3DDevice8() instead of the iface to object cast.
2011-01-28 11:59:34 +01:00
Henri Verbeet
71b46689bc
d3d8/tests: Add a test for the NULL format.
2011-01-27 14:13:59 +01:00
Michael Stefaniuc
bb6ae095d4
d3d8: Pass an object instead of an iface to an internal function.
2011-01-26 15:00:13 +01:00
Henri Verbeet
ccba04e58e
d3d8: Remove a useless ERR (LLVM/Clang).
2011-01-26 15:00:11 +01:00
Michael Stefaniuc
6ad10335a0
d3d8: COM cleanup for the IDirect3D8 iface.
2011-01-24 14:43:24 +01:00
Henri Verbeet
3d64b44c8c
d3d8/tests: Fix test_ApplyStateBlock() (Valgrind).
2011-01-20 12:18:54 +01:00
Greg Geldorp
c1736fed2d
d3d8/tests: Skip tests if not running in the foreground.
2011-01-12 14:56:20 +01:00
Austin English
b98c8ce556
d3d8/d3d9: Fix compiler warnings on non x86/x86_64.
2010-12-03 16:08:55 +01:00
Henri Verbeet
f683fe313b
d3d8/tests: Add a test for 0 width / height surface creation.
2010-11-18 12:37:44 +01:00
Henri Verbeet
d2f23ff61e
d3d8/tests: Fix some failure messages.
2010-11-17 14:01:15 +01:00
Henri Verbeet
f024e2372f
d3d8: Fix some return values.
2010-11-16 13:48:54 +01:00
Henri Verbeet
7e3985e1fe
ddraw: Setup the device window in SetCooperativeLevel().
2010-11-08 13:30:54 +01:00
Henri Verbeet
feaf81f60d
wined3d: Use SetWindowPos() to make the focus window active.
2010-11-05 17:15:37 +01:00