Commit Graph

1024 Commits

Author SHA1 Message Date
Matteo Bruni 276216360e d3d9: Remove D3DFMT_R8G8B8 special handling. 2011-11-15 19:37:37 +01:00
Stefan Dösinger 7eefed1410 wined3d: YUY2 and UYVY are block based. 2011-11-07 14:32:16 +01:00
Stefan Dösinger 7fd752047d d3d9/tests: Test partial block locks. 2011-11-07 14:27:24 +01:00
Stefan Dösinger f1d98aed70 d3d9/tests: Move the double unlock test into a separate test, test other pools. 2011-11-03 13:52:15 +01:00
Matteo Bruni 095a9a6893 wined3d: Refuse to create a shader unsupported by the backend. 2011-10-26 12:41:35 +02:00
Matteo Bruni 7254f5e661 wined3d: Return only the shader major version. 2011-10-26 12:41:34 +02:00
Matteo Bruni 6e6a917617 d3d9: Limit VS/PS reported version. 2011-10-26 12:41:34 +02:00
Henri Verbeet 6e8273177a wined3d: Reject multisampled readbacks in wined3d_surface_get_render_target_data(). 2011-10-24 11:16:33 +02:00
Henri Verbeet 002447357c d3d9/tests: Add a small test for IDirect3DDevice9::SetCursorPosition(). 2011-10-21 12:09:40 +02:00
Henri Verbeet 12a99309d9 d3d9/tests: Add a small test for multisampled GetRenderTargetData(). 2011-10-20 11:03:15 +02:00
Henri Verbeet d607586d62 wined3d: Make the present_parameters parameter to wined3d_device_reset() const. 2011-10-19 12:24:36 +02:00
Austin English c3f6f96df4 d3d9/tests: Only skip the visual tests if d3d cannot be initialized on Windows. 2011-10-18 16:24:45 +02:00
Stefan Dösinger 4365d2905c d3d9: Remove the palette implementation methods. 2011-10-11 13:37:49 +02:00
Henri Verbeet 1226ffe062 d3d9/tests: Add a test for IDirect3DDevice9::GetRenderTarget(). 2011-10-10 13:39:42 +02:00
Henri Verbeet 739a9d9805 wined3d: Return WINED3DERR_NOTFOUND if the render target is NULL in wined3d_device_get_render_target().
This is similar to how wined3d_device_get_depth_stencil() works.
2011-10-10 13:39:39 +02:00
André Hentschel 3c9aa22289 d3d9/tests: Don't test function directly when reporting GetLastError(). 2011-09-26 18:15:12 +02:00
Stefan Dösinger e1d92059ea d3d9: Implement FPUSETUP for msvc. 2011-09-26 17:59:41 +02:00
Matteo Bruni f87483c307 d3d9/tests: Test creating shaders with wrong type or version. 2011-09-26 17:57:55 +02:00
Matteo Bruni 2a146448f4 wined3d: When creating a new shader, check shader type and version. 2011-09-26 17:57:48 +02:00
Stefan Dösinger 7759729fc7 d3d9/Tests: State getters don't work with PUREDEVICEs. 2011-09-16 17:23:10 +02:00
Stefan Dösinger 6bf2eb76bb d3d9/tests: Add a slop to the fog tests for X1600 GPUs. 2011-09-16 17:23:09 +02:00
Stefan Dösinger f3644a513f d3d9/tests: Fix the depth stencil size tests on AMD. 2011-09-16 17:23:09 +02:00
Stefan Dösinger f708da1c1c d3d9/tests: Range fog is not used with table fog. 2011-09-15 15:41:41 +02:00
Stefan Dösinger c2cefe5584 d3d9: Add a LIT 0.0^0.0 test. 2011-09-12 10:09:40 +02:00
Matteo Bruni e46378c764 d3d9/tests: Add unbound cube/volume texture tests. 2011-08-29 12:08:19 +02:00
Frédéric Delanoy 760faf01a9 tests: Assorted spelling fixes. 2011-08-04 18:27:37 +02:00
Henri Verbeet 7e3ecd683c wined3d: Move rectangle validation from surface_cpu_blt() to wined3d_surface_blt().
This fixes some tests because these were getting skipped for the BltOverride() path.
2011-08-04 09:04:39 +02:00
Henri Verbeet 2256a7e804 wined3d: wined3d_device_evict_managed_resources() doesn't need a return value. 2011-07-29 12:09:39 +02:00
Matteo Bruni afd1fe4389 d3d9/tests: Add a couple of fog tests. 2011-07-28 11:29:05 +02:00
Matteo Bruni 9a790806bd d3d9/tests: Fix some messages. 2011-07-27 11:53:14 +02:00
Matteo Bruni 85e729cf5d d3d9/tests: Rename a variable. 2011-07-27 11:53:09 +02:00
Henri Verbeet 44e109debe wined3d: Unbind resources inside wined3d_device_reset(). 2011-07-25 21:25:15 +02:00
Henri Verbeet 0739cae273 wined3d: Pass "reset_enum_callback" directly to wined3d_device_reset().
It would have been nice if we could do all of this inside wined3d, but we need
to determine what resources are in use by d3d8/d3d9, not wined3d. This is
mostly an issue for "implicit" resources like swapchain render targets and the
depth / stencil surface. The fact that we're having this problem probably
means we're doing it wrong. Since these implicit resources should only be
referenced by wined3d, we could probably just destroy and recreate the
swapchain, instead of the little updateSurfaceDesc() dance we currently do.
2011-07-25 21:25:01 +02:00
Michael Stefaniuc 4e31d28cff d3d9: COM cleanup for the IDirect3DSurface9 iface. 2011-07-07 12:32:19 +02:00
Michael Stefaniuc a7530e7892 d3d9: Use unsafe_impl_from_IDirect3DSurface9 for app provided ifaces. 2011-07-07 12:32:16 +02:00
Matteo Bruni 9d3cc8b012 wined3d: Make dummy textures black. 2011-07-06 19:38:46 +02:00
Matteo Bruni 8d39a85e18 d3d9/tests: Fix alpha component in the unbound sampler tests.
Spotted by Sean Sube.
2011-07-06 19:38:19 +02:00
Michael Stefaniuc 17eccaffbf d3d9: COM cleanup for the IDirect3DVertexBuffer9 iface. 2011-07-06 16:49:10 +02:00
Michael Stefaniuc 2b3a364e9a d3d9: Use unsafe_impl_from_IDirect3DVertexBuffer9 for app provided ifaces. 2011-07-06 16:49:04 +02:00
Michael Stefaniuc bb4f750592 d3d9: COM cleanup for the IDirect3DVertexShader9 iface. 2011-07-06 16:49:00 +02:00
Michael Stefaniuc f12cbfb509 d3d9: Use unsafe_impl_from_IDirect3DVertexShader9 for an app provided iface. 2011-07-06 16:48:56 +02:00
Michael Stefaniuc b09078b016 d3d9: COM cleanup for the IDirect3DPixelShader9 iface. 2011-07-05 14:30:42 +02:00
Michael Stefaniuc 704f0efe0c d3d9: Use unsafe_impl_from_IDirect3DPixelShader9 for an app provided iface. 2011-07-05 14:30:38 +02:00
Michael Stefaniuc db1dd90225 d3d9: COM cleanup for the IDirect3DIndexBuffer9 iface. 2011-07-05 14:30:33 +02:00
Michael Stefaniuc 875d6900c6 d3d9: Use unsafe_impl_from_IDirect3DIndexBuffer9 for an app provided iface. 2011-07-05 14:30:31 +02:00
Marcus Meissner 8e5c79e439 d3d9: Remove superflous NULL checks (Coverity). 2011-06-27 13:28:13 -05: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 52fd36b68b d3d9: Implement IDirect3DVolume9 private data handling on top of wined3d_resource. 2011-06-23 09:47:34 +02:00
Henri Verbeet 0dd6b20af6 d3d9: Implement IDirect3DSurface9 private data handling on top of wined3d_resource. 2011-06-22 11:25:15 +02:00
Henri Verbeet ffb58ed445 d3d9: Implement IDirect3DVolumeTexture9 private data handling on top of wined3d_resource. 2011-06-20 11:28:29 +02:00
Henri Verbeet a989afe364 d3d9: Implement IDirect3DTexture9 private data handling on top of wined3d_resource. 2011-06-20 11:28:26 +02:00
Henri Verbeet 732338ab35 d3d9: Implement IDirect3DCubeTexture9 private data handling on top of wined3d_resource. 2011-06-20 11:28:22 +02:00
Henri Verbeet a5ee9f1938 d3d9: Implement IDirect3DIndexBuffer9 private data handling on top of wined3d_resource. 2011-06-17 11:02:32 +02:00
Henri Verbeet 469eba24c0 d3d9: Implement IDirect3DVertexBuffer9 private data handling on top of wined3d_resource. 2011-06-17 11:02:28 +02:00
Henri Verbeet 11bf170ce0 d3d9/tests: Add some tests for IDirect3DDevice9::UpdateSurface(). 2011-06-16 11:16:22 +02:00
Andrew Nguyen 94785ab4d5 d3d9: Increment the reference count of the IDirect3D9 parent when creating a device. 2011-06-06 21:49:19 +02:00
Henri Verbeet dbc0e72d17 d3d9: Just return the resource type in IDirect3DResource8::GetType() implementations. 2011-06-06 16:19:08 +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
Sean Sube 301c6ef4e5 d3d9/tests: Added unbound sampler test for pixel shaders. 2011-06-03 13:41:48 +02:00
Andrew Nguyen a826503737 d3d9: Match temporary variables with UINT return types and fix a return value. 2011-05-31 18:32:59 +02:00
Andrew Nguyen c4a6c25378 d3d9: Drop a superfluous cast in IDirect3DDevice9Impl_CreateOffscreenPlainSurface. 2011-05-31 18:32:59 +02:00
Andrew Nguyen 14e199ff6b d3d9/tests: Avoid a shift overflow in render_state_test_data_init. 2011-05-31 18:32:59 +02:00
Rico Schüller 480259ca2c d3d9/tests: Fix some ok() messages in the visual tests. 2011-05-25 17:54:38 +02:00
Stefan Dösinger cf757a6361 d3d9: Use a pixel shader for the vs 3.0 input test. 2011-05-25 12:23:32 +02:00
Stefan Dösinger d8224118ab d3d: Make the INTZ test more reliable. 2011-05-25 12:23:24 +02:00
Henri Verbeet ea34d7aaba d3d9/tests: Add a test for unwritten pixel shader outputs. 2011-05-25 11:49:27 +02:00
Henri Verbeet 6d31824a6e d3d9/tests: Fix the depth clamping test. 2011-05-25 11:48:29 +02:00
Stefan Dösinger e7c55939c4 d3d9: Drop the fixed function varying test.
Windows drivers return different values, some don't even draw. I don't know
any app that depends on this.
2011-05-24 12:47:28 +02:00
Stefan Dösinger f6b30a17b3 d3d9: AMD cards don't clip transformed vertices. 2011-05-24 12:47:28 +02:00
Stefan Dösinger 9e19cb076f d3d9: AMD drivers return D3D_OK when reading data from an unfinished query. 2011-05-24 12:47:28 +02:00
Stefan Dösinger 77c1454cf6 d3d9: Skip the YUV tests when the driver confuses the U and V channels. 2011-05-20 10:34:37 +02:00
Stefan Dösinger 803bad0959 d3d9: Account for another different behavior in the viewport test. 2011-05-20 10:34:30 +02:00
Stefan Dösinger 5107796fc7 d3d9: Disable the zero instance test.
It fails on modern Nvidia cards (Win7, Geforce 9600).
2011-05-19 10:09:08 +02:00
Stefan Dösinger 387d5d74ce d3d9: Use a DWORD to read render states. 2011-05-19 10:08:55 +02:00
Henri Verbeet 3032b40c80 wined3d: Get rid of the IWineD3DDeviceParent interface. 2011-05-19 10:06:21 +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
Francois Gouget 5920de5ffb Assorted spelling and case fixes. 2011-05-09 12:09:27 +02:00
Francois Gouget bfbc015854 d3d9/tests: Add a '\n' to a skip() call. 2011-05-09 12:09:15 +02:00
Henri Verbeet ed3f5081a3 d3d9/tests: Check if formats are supported for render targets in pixelshader_blending_test(). 2011-05-06 14:23:46 +02:00
Adam Martinson 62b5d12c0e d3d9: Use D3DQUERYTYPE instead of HRESULT in IDirect3DQuery9Impl_GetType(). 2011-05-05 11:45:35 +02:00
Henri Verbeet 4a7ff5fc35 d3d9/tests: Add a volume texture test to test_reset(). 2011-05-05 11:45:13 +02:00
Henri Verbeet 99092e8a0a d3d9: Simplify reset_enum_callback().
Note that the existing code wouldn't work for volumes, since volumes aren't
proper resources in d3d9.
2011-05-05 11:45:10 +02:00
John Edmonds d9f8cba50f wined3d: Turn off message filtering temporarily in the Reset() method to allow certain messages (e.g. WM_ACTIVATEAPP) through. 2011-05-04 20:42:34 +02:00
John Edmonds 1772a043db d3d9/tests: Added a test for resetting an invisible, inactive window to fullscreen mode. 2011-05-04 20:42:34 +02:00
Henri Verbeet d06873443d d3d9/tests: Avoid leaking a device in the Reset test. 2011-05-04 17:26:46 +02:00
Henri Verbeet d2479406e8 d3d9/tests: Add a test for window styles on device creation. 2011-05-04 17:26:46 +02:00
Henri Verbeet 02f0d82d24 d3d9/tests: Destroy the window after we're done with it in test_reset(). 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
Michael Stefaniuc d5739cd2c3 d3d9: Finish the COM cleanup of the IDirect3DDevice9Ex iface. 2011-04-25 11:40:35 +02:00
Michael Stefaniuc 5f57cc1451 d3d9: Pass an object instead of an iface to IDirect3DDevice9Impl_CreateSurface(). 2011-04-25 11:40:32 +02:00
Michael Stefaniuc e798c72cf4 d3d9: Use impl_from_IDirect3DDevice9Ex instead of casting iface to object. 2011-04-25 11:40:30 +02:00
Henri Verbeet c852200b03 wined3d: Get rid of IWineD3DSurface::GetType(). 2011-04-22 10:44:28 +02:00
Michael Stefaniuc a3e77bfe59 d3d9: COM cleanup for the IDirect3DVolumeTexture9 iface. 2011-04-20 16:34:01 +02:00
Michael Stefaniuc aab2d427e3 d3d9: COM cleanup for the IDirect3DVolume9 iface. 2011-04-20 16:33:55 +02:00
Michael Stefaniuc 31bea55ef4 d3d9: COM cleanup for the IDirect3DTexture9 iface. 2011-04-20 16:33:42 +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