Henri Verbeet
91db9f8bd3
wined3d: Remove a redundant initialization in IWineD3DDeviceImpl_UpdateSurface().
2010-03-31 16:32:41 +02:00
Henri Verbeet
3af0909693
wined3d: Get rid of some mostly useless local variables in IWineD3DDeviceImpl_UpdateSurface().
2010-03-31 16:32:35 +02:00
Henri Verbeet
61ca407151
wined3d: Cleanup variable naming in IWineD3DDeviceImpl_UpdateSurface().
2010-03-31 16:32:29 +02:00
Stefan Dösinger
19b6f5ca75
wined3d: Control the onscreen depth stencil format in the swapchain.
...
This allows the swapchain to know what depth format its window contexts have to see if the
requested depth format is compatible or a FBO fallback is needed, and it will be needed to
set the onscreen format to the requested auto depth stencil format instead of the
let's-hope-it-fits D24_UNORM_S8_UINT format.
2010-03-31 16:12:31 +02:00
Roderick Colenbrander
ae26d9defd
wined3d: Use RECT instead of WINED3DRECT in stretch_rect_fbo.
2010-03-31 16:12:27 +02:00
Henri Verbeet
72be7fe3a5
wined3d: Get rid of destFormat and srcFormat in IWineD3DDeviceImpl_UpdateSurface().
2010-03-30 14:49:32 +02:00
Henri Verbeet
eced5fe8ec
wined3d: Calculate "offset" in the appropriate path in IWineD3DDeviceImpl_UpdateSurface().
2010-03-30 14:49:32 +02:00
Henri Verbeet
bb94bc3823
wined3d: Add more general support for partial updates of compressed surfaces to IWineD3DDeviceImpl_UpdateSurface().
2010-03-30 14:49:31 +02:00
Henri Verbeet
88a2decc49
wined3d: Source and destination formats should match in IWineD3DDeviceImpl_UpdateSurface().
2010-03-30 14:49:31 +02:00
Henri Verbeet
0eae42ddc6
wined3d: Use GL_UNPACK_ROW_LENGTH for partial updates of regular surfaces in IWineD3DDeviceImpl_UpdateSurface().
2010-03-30 14:49:31 +02:00
Roderick Colenbrander
f724843f14
wined3d: Move argb_to_fmt to utils.c as a helper function to be used in more places.
2010-03-30 13:53:54 +02:00
Michael Stefaniuc
6997c8d70c
wined3d: Remove superfluous cast of zero.
2010-03-29 11:49:58 +02:00
Henri Verbeet
eb064db083
wined3d: Add support for partial updates of compressed surfaces to IWineD3DDeviceImpl_UpdateSurface().
2010-03-26 10:29:39 +01:00
Henri Verbeet
d5ff1e640c
wined3d: glColorMask() changes the write mask for all render targets.
2010-03-26 10:29:17 +01:00
Henri Verbeet
9866125e23
wined3d: Just mark the color write mask dirty in IWineD3DDeviceImpl_ClearSurface().
2010-03-25 10:01:59 +01:00
Henri Verbeet
9eb5ba435e
wined3d: Use the same order of operations for depth clears as for stencil clears.
2010-03-25 10:01:54 +01:00
Henri Verbeet
2e7e118899
wined3d: Just mark the stencil write mask dirty in IWineD3DDeviceImpl_ClearSurface().
2010-03-25 10:01:49 +01:00
Henri Verbeet
1c4e9e6a0e
wined3d: Disable two-sided stencil when doing stencil clears.
2010-03-25 10:01:44 +01:00
Stefan Dösinger
1181762f99
wined3d: Implement manual buffer fencing.
2010-03-23 12:31:15 +01:00
Henri Verbeet
3aaa6ee6e7
wined3d: Rename GlPixelFormatDesc to wined3d_format_desc.
2010-03-19 14:31:47 +01:00
Henri Verbeet
7c930589bc
wined3d: Avoid some common invalid context accesses.
...
Unfortunately there are plenty of other places left. Perhaps we should
consider creating our own window when the context becomes invalid and making
the context current on that instead.
2010-03-18 10:25:09 +01:00
Henri Verbeet
914c8cb8ea
ddraw: Acquire/release the focus window from the correct location.
2010-03-18 10:24:15 +01:00
Henri Verbeet
0838d0ab64
wined3d: Make the focus window also the foreground window.
2010-03-18 10:24:05 +01:00
Henri Verbeet
4e48ae2629
ddraw: Implement IDirectDrawImpl_GetSurfaceFromDC().
...
This is a pretty naive implementation, should that become a performance
problem it's easy enough to speed up with a search tree of some kind.
2010-03-17 10:06:25 +01:00
Henri Verbeet
7b52c2fbed
wined3d: Cleanup IWineD3DDeviceImpl_SetFrontBackBuffers().
2010-03-17 10:06:21 +01:00
Henri Verbeet
e9dbd5bff8
wined3d: Don't change the draw buffer in IWineD3DDeviceImpl_SetFrontBackBuffers().
...
This should be handled by the context's draw buffer management.
2010-03-17 10:06:18 +01:00
Henri Verbeet
509b038cf5
wined3d: Simplify the IWineD3DDeviceImpl_ClearSurface() surface loading code.
2010-03-17 10:06:15 +01:00
Henri Verbeet
cd9a8b74b9
wined3d: Store the device window in the swapchain.
...
The swapchain's current window might be changed by SetDestWindowOverride().
2010-03-16 11:45:11 +01:00
Henri Verbeet
aa819fe888
wined3d: Simplify a comparison in IWineD3DDeviceImpl_Reset().
2010-03-16 11:45:06 +01:00
Henri Verbeet
d6bbe90b85
wined3d: The swapchain should always have a window handle.
2010-03-16 11:45:01 +01:00
Henri Verbeet
7b0b16fafe
wined3d: Use the context's window handle in stretch_rect_fbo().
2010-03-16 11:44:50 +01:00
Henri Verbeet
18ec2525a4
wined3d: Store the swapchain instead of the surface in the context.
2010-03-16 11:44:44 +01:00
Henri Verbeet
4b671f4d54
wined3d: Move device context array functions to device.c.
2010-03-15 15:55:57 +01:00
Henri Verbeet
8a107bc63a
wined3d: Kill pbuffer offscreen rendering support.
...
Our pbuffer support is broken, nobody cares.
2010-03-15 15:55:38 +01:00
Roderick Colenbrander
c0ef7a1a93
wined3d: Move the 8-bit palette shader code over to the blit_shader backend.
2010-03-03 12:53:51 +01:00
Henri Verbeet
f97565191c
wined3d: Drop buffer objects from the stream info as well when PreLoad drops them.
2010-02-16 10:47:56 +01:00
Henri Verbeet
3df59ef0d5
wined3d: Get rid of the now redundant max_ffp_texture_stages device field.
2010-02-05 10:06:12 +01:00
Henri Verbeet
576ea95803
wined3d: Remove the unused device type parameter from the shader backend's get_caps() function.
2010-02-04 13:39:27 +01:00
Henri Verbeet
497386dc5c
wined3d: Remove the unused device type parameter from the fragment pipe's get_caps() function.
...
On the subject of actually supporting software devices, we should probably
implement those by creating a software or reference adapter with appropriate
gl_info and pipe implementations and creating a device based on that.
2010-02-04 13:39:26 +01:00
Henri Verbeet
84913109f6
wined3d: Explicitly load and modify the surface in color_fill_fbo().
2010-02-03 13:54:02 +01:00
Henri Verbeet
5f3dccddb4
wined3d: Do not depend on context_attach_surface_fbo() to load the surface in stretch_rect_fbo().
2010-02-03 13:54:02 +01:00
Henri Verbeet
040452ad90
wined3d: Update the stream info before applying states.
2010-02-03 13:54:02 +01:00
Henri Verbeet
31d51fb175
wined3d: Preload textures before applying states.
2010-02-03 13:54:02 +01:00
Henri Verbeet
7ff576bbab
wined3d: Select the blitter during adapter initialization.
2010-02-03 13:54:02 +01:00
Henri Verbeet
cee8e9d881
wined3d: Select the shader backend during adapter initialization.
2010-02-02 14:11:02 +01:00
Henri Verbeet
fb21551b2d
wined3d: Select the fragment pipeline during adapter initialization.
2010-02-02 14:10:56 +01:00
Henri Verbeet
93c49f1777
wined3d: Update the swapchain's present parameters when changing the backbuffer.
...
This fixes a bug exposed by commit b5907e23cc
.
2010-02-02 14:10:52 +01:00
Henri Verbeet
97700f05a9
wined3d: TRACE IWineD3DDeviceImpl_CreateSurface() parameters.
2010-02-02 14:10:44 +01:00
Henri Verbeet
a3e1a6f2ee
wined3d: Use correct texture stage limits in a couple of places.
2010-01-28 11:08:14 +01:00
Henri Verbeet
ce42470138
wined3d: Ensure draw ordering across contexts.
2010-01-28 11:07:59 +01:00