Commit Graph

4083 Commits

Author SHA1 Message Date
Henri Verbeet 23bfdecd8b wined3d: Verify all render states have a handler. 2010-04-02 10:36:17 +02:00
Henri Verbeet 1289842da3 wined3d: Move handling of the unimplemented WINED3DRS_STIPPLEPATTERN states to ddraw. 2010-04-02 10:36:06 +02:00
Henri Verbeet 2e5976a8c5 wined3d: Move handling of the unimplemented WINED3DRS_BORDERCOLOR state to ddraw. 2010-04-02 10:35:54 +02:00
Henri Verbeet af9510f400 wined3d: Remove some unused render states. 2010-04-02 10:35:44 +02:00
Henri Verbeet e62771f7f7 wined3d: Add a state handler for WINED3DRS_ZVISIBLE. 2010-04-02 10:35:37 +02:00
Henri Verbeet ef34b0ba06 wined3d: Verify state representatives represent themselves.
This ensures there's no multilevel indirection in the state table.
2010-04-02 10:35:30 +02:00
Henri Verbeet a2344e7288 wined3d: Remove some superfluous white space and braces from the card selection functions. 2010-04-01 18:12:55 +02:00
Henri Verbeet 8afeb34559 wined3d: Add a state table entry for WINED3DRS_INDEXEDVERTEXBLENDENABLE. 2010-04-01 18:12:42 +02:00
Henri Verbeet f4330add39 wined3d: Verify each state table entry has either a handler or a representative. 2010-04-01 18:12:42 +02:00
Henri Verbeet 57cfd613a5 wined3d: Explicitly set the state handler to NULL for states with a representative.
We should never call the handler for states that have a rep.
2010-04-01 18:12:42 +02:00
Henri Verbeet f70193b915 wined3d: Use the rep instead of the apply function to determine if a state is used. 2010-04-01 18:12:42 +02:00
Henri Verbeet 03c472bff0 wined3d: Don't call directly into the state table. 2010-04-01 18:12:42 +02:00
Henri Verbeet a298f37a9a wined3d: Add a state table entry for WINED3DRS_TWEENFACTOR. 2010-03-31 16:32:57 +02:00
Henri Verbeet 6e1ed1c167 wined3d: Print a FIXME/WARN for all unsupported vertex blend flags. 2010-03-31 16:32:52 +02:00
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 dc918d4394 wined3d: Use FBOs when the onscreen depth stencil format isn't suitable.
This allows proper support of float depth buffers when rendering to onscreen surfaces.
2010-03-31 16:12:32 +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
Stefan Dösinger a4b0bedc30 wined3d: Split out offscreen rendering concerns from FindContext. 2010-03-31 16:12:31 +02:00
Roderick Colenbrander c6f0ddcb1a wined3d: Remove some unneeded source rectangle calculations from BltOverride. 2010-03-31 16:12:30 +02:00
Roderick Colenbrander 87b5b2f738 wined3d: Remove the last use of the WINED3DRECT destination rectangle in BltOverride. 2010-03-31 16:12:30 +02:00
Roderick Colenbrander 40f3f0b041 wined3d: Use RECT instead of WINED3DRECT in fb_copy_to_texture_hwstretch. 2010-03-31 16:12:29 +02:00
Roderick Colenbrander 7f1f61e28e wined3d: Use RECT instead of WINED3DRECT in fb_copy_to_texture_direct. 2010-03-31 16:12:28 +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
Henri Verbeet 2533860114 wined3d: Initialization functions don't allocate. 2010-03-30 14:49:31 +02:00
Roderick Colenbrander c864ae6348 wined3d: Disable flipping through the source rectangle in BltOverride. 2010-03-30 14:10:45 +02:00
Roderick Colenbrander 334fea7d79 wined3d: Fix a destination flipping bug using the destination rectangle. 2010-03-30 14:10:37 +02:00
Roderick Colenbrander a91f844a3d wined3d: Use RECT instead of WINED3DRECT in more parts of BltOverride. 2010-03-30 13:54:45 +02:00
Roderick Colenbrander 682c969e9a wined3d: Add a helper function for getting a valid rectangle. 2010-03-30 13:54:35 +02:00
Roderick Colenbrander a7d3b616c4 wined3d: Add color_fill to blit_shader. 2010-03-30 13:54:24 +02:00
Roderick Colenbrander 9a1fd552d2 wined3d: Introduce a helper function which converts a color from the surface format to ARGB. 2010-03-30 13:54:12 +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
Henri Verbeet f69d0fa00d wined3d: GL errors aren't FIXMEs. 2010-03-29 15:51:21 +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 941c7da08e wined3d: Don't warn about independent color write masks when the masks are all the same. 2010-03-26 10:29:34 +01:00
Henri Verbeet 4651dd86bf wined3d: Implement independent color write masks. 2010-03-26 10:29:29 +01:00
Henri Verbeet 13a57c81f0 wined3d: Add support for EXT_draw_buffers2. 2010-03-26 10:29:23 +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 8cf63f0aee wined3d: Add GL locking to match_fbo_tex_update(). 2010-03-26 10:29:13 +01:00
Stefan Dösinger f74de3ab65 wined3d: Don't advertise float formats as supported by WGL. 2010-03-26 10:28:52 +01:00
Stefan Dösinger 7b43cb1877 wined3d: Don't check WGL depth stencil limitations with FBOs. 2010-03-26 10:28:48 +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