Stefan Dösinger
09d0a35872
ddraw: Add some overlay tests.
2008-09-02 15:05:59 +02:00
Stefan Dösinger
ddec94bf0f
ddraw: Pass proper parameters to CheckDeviceFormat.
2008-09-02 14:56:45 +02:00
Stefan Dösinger
c1eabc2ce7
ddraw: Catch attempts to opengl-render to the desktop window.
2008-09-02 14:56:35 +02:00
Stefan Dösinger
d5f05c59c7
ddraw: Beware of the surface type when checking for format support.
2008-09-02 14:56:26 +02:00
Stefan Dösinger
3b48660f43
wined3d: Implement YV12 support for emulated overlays.
...
This is the prefered format of many codecs, and for some codecs this
is the only supported output format. As usual I try to handle all the
conversion in the GPU and keep the CPU involvement minimal to gain the
full performance of PBO transfers.
2008-09-02 14:55:50 +02:00
Stefan Dösinger
ec4955630e
wined3d: Silence some format spam.
2008-08-28 11:24:49 +02:00
Stefan Dösinger
58ac095d9d
ddraw: Don't destroy the application's window.
2008-08-26 12:07:40 +02:00
David Adam
bb67a925d6
ddraw: Only ddraw checks wether one can give a null pointer to SetMaterial.
2008-08-22 11:32:09 +02:00
Alexander Dorofeyev
e718eae9e2
ddraw/tests: Skip cubemap tests when cubemap isn't supported.
2008-08-21 13:35:12 +02:00
Stefan Dösinger
a950d3a10e
ddraw: Set the bitdepth on YUV formats.
2008-08-20 12:33:33 +02:00
Stefan Dösinger
90e2a676e8
ddraw: Do not set the rendertarget flag just because of the backbuffer flag.
...
There are also overlay backbuffers, which aren't render targets. The
primarysurface and d3ddevice cap flags should be enough here.
2008-08-20 12:32:42 +02:00
Stefan Dösinger
e10302d952
ddraw: Implement IDirectDraw7::GetFourCCCodes.
2008-08-19 12:25:37 +02:00
Stefan Dösinger
c1bbab7c54
ddraw: Send the ddraw output to the clipper window, if any.
2008-08-19 12:25:31 +02:00
Stefan Dösinger
376944ebe4
wined3d: Remove the device-global fullscreen flag.
2008-08-19 12:24:57 +02:00
Stefan Dösinger
34b37fe241
d3d: Remove IWineD3DDevice::SetHwnd.
2008-08-19 12:22:05 +02:00
Stefan Dösinger
e178ddd9e1
wined3d: Use a swapchain for GDI surfaces.
...
This is a long-needed cleanup aimed at removing the ddraw_primary,
ddraw_window, ddraw_width and ddraw_height members from
IWineD3DDeviceImpl, which just do not belong there. Destination
window and screen handling is supposed to be done by swapchains.
2008-08-19 12:21:32 +02:00
Stefan Dösinger
851dd7339e
wined3d: Implement overlay flipping.
2008-08-05 14:09:36 +02:00
Stefan Dösinger
e795d842ec
wined3d: Implement overlay position tracking.
2008-08-05 14:09:36 +02:00
Stefan Dösinger
a47e7badb9
ddraw: Set ddraw caps in wined3d.
...
Currently the ddraw capabilities were almost static, except of D3D
support. When overlay support is added, the caps depend on certain
settings in WineD3D or capabilities available from OpenGL and Xv. So
set those caps in wined3d as well.
2008-08-04 13:10:11 +02:00
Tobias Jakobi
69797d7f3d
ddraw: Fix typo in copy_mipmap_chain.
2008-07-28 14:25:09 +02:00
Alexander Dorofeyev
e2ff077697
ddraw: Improve IDirect3DDevice7_Load implementation.
...
Copies palette and colorkey earlier in the helper function, before
copying image, also skips UpdateSurface when palette is missing. This
prevents unnecessary surface (re)loads in wined3d, and gets rid of
some wined3d palette error messages in Sacrifice.
2008-07-22 15:20:33 +02:00
Alexander Dorofeyev
2be93ce6b0
ddraw/tests: Add tests for surface caps memory flags.
2008-07-17 11:21:48 +02:00
Alexander Dorofeyev
59fc5a75e0
ddraw: Force surfaces without memory flags to video memory on creation.
...
Also removes now redundant setting of vidmem flag on rendertargets, prevents
adding vidmem flag when sysmem flag is present. Fixes missing textures in Forsaken.
2008-07-17 11:21:39 +02:00
Alexandre Julliard
79c64acc7b
tests: Don't depend on the static uuid libraries in the tests.
...
This avoids trouble with the broken MingW libraries when
cross-compiling the tests.
2008-07-08 17:51:45 +02:00
James Hawkins
11e31e580c
ddraw: Fix a failing test for broken drivers.
2008-07-02 12:05:08 +02:00
James Hawkins
8830dbcca8
ddraw: Fix a failing test for broken drivers.
2008-07-02 12:04:56 +02:00
Alexander Dorofeyev
cb5e06c944
ddraw: Implement FPU mode fixup in d3d7 device.
...
As documented in DirectX7 SDK, d3d7 devices set FPU mode (control word) on every
call and restore it back to original state before returning, if created in
DDSCL_FPUPRESERVE cooperative mode. This allows games to work with FPU in a
possibly incompatible mode and avoid resetting it all the time.
2008-06-23 19:59:33 +02:00
Michael Karcher
606186d4c5
ddraw: Ensure to load wined3d before attempting to create a clipper.
2008-06-23 14:11:58 +02:00
James Hawkins
5dcec4de49
ddraw: Reset the viewport data before each test.
2008-06-18 13:51:46 +02:00
Dmitry Timoshkov
2cf47c00f2
ddraw: Avoid a not needed address-of operator.
2008-06-06 10:29:09 +02:00
James Hawkins
7352978713
ddraw: Delete the temporarily attached surface.
2008-06-02 12:35:14 +02:00
Francois Gouget
476cb96b75
ddraw: Remove trailing spaces in Wine traces.
2008-05-30 10:01:11 +02:00
Alexander Dorofeyev
940ef7a9ff
ddraw: Do not return modes differing only by refresh rate without DDEDM_REFRESHRATES.
2008-05-29 12:09:19 +02:00
Jens Albretsen
a2b645128f
ddraw: Test for IDirect3DTexture_Load of Texture into itself.
2008-05-28 19:31:35 +02:00
Jens Albretsen
46ef2e06fc
ddraw: IDirect3DTextureImpl_Load failed when texture was loading onto itself.
2008-05-28 19:31:29 +02:00
Paul Vriens
f076d79c6c
ddraw/tests: Don't crash on win9x.
2008-05-28 11:32:24 +02:00
Francois Gouget
8019c55cc6
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2008-05-21 11:36:39 +02:00
Andrew Talbot
5bf9e88cce
ddraw: Memory allocation size fix.
2008-05-13 10:40:00 +02:00
Alexander Dorofeyev
17dacf90b2
ddraw: Fix some code unprotected by ddraw lock.
2008-05-12 19:41:46 +02:00
Alexander Dorofeyev
ebf1f4e6bb
ddraw/tests: Add KEYSRCOVERRIDE test in p8_primary_test.
2008-05-09 11:19:43 +02:00
Andrew Talbot
a6746b9e7b
ddraw: Indentation fix.
2008-05-07 12:24:04 +02:00
Francois Gouget
42a61d7ed7
Assorted spelling fixes.
2008-05-06 16:10:20 +02:00
Alexander Dorofeyev
c4d75213ab
ddraw/tests: Add tests for IDirect3DDevice7_Load.
2008-05-06 11:26:24 +02:00
Alexander Dorofeyev
d6ecf5d14d
ddraw: Return DDERR_NOCOLORKEY when there is no colorkey.
2008-05-06 11:26:15 +02:00
Alexander Dorofeyev
7e8be9ecc0
ddraw: Add full implementation of IDirect3DDevice7_Load.
2008-05-06 11:26:10 +02:00
Alexander Dorofeyev
30221f7bcd
ddraw: Fix some texture blending modes.
2008-05-05 19:55:30 +02:00
Alexander Dorofeyev
8f72961e50
ddraw: Move handling of D3DRENDERSTATE_TEXTUREMAPBLEND from d3ddevice2 to d3ddevice3.
2008-05-05 19:55:13 +02:00
Alexander Dorofeyev
edaaf63bd6
ddraw: Move handling of D3DRENDERSTATE_TEXTUREHANDLE from d3ddevice7 to d3ddevice3.
...
As supported by tests, there is no reason for this state to be handled by
d3ddevice7, and moving it to d3ddevice3 prepares for the changes in next patch
(setting TEXTUREHANDLE state can then go through SetTexture of d3ddevice3).
2008-05-05 19:55:05 +02:00
Alexander Dorofeyev
d5db7615a2
ddraw/tests: Add test for deprecated render states in d3d7.
2008-05-05 19:54:48 +02:00
Roderick Colenbrander
feb753c98d
ddraw: Enable EnableAutoDepthStencil to receive depth support.
2008-05-02 11:33:38 +02:00