Commit Graph

1075 Commits

Author SHA1 Message Date
Stefan Dösinger
251f1eea7a wined3d: Do not enable the texture dimensions in BindTexture. 2006-12-20 17:05:51 +01:00
Stefan Dösinger
569a2fa7c0 wined3d: Add empty texture stage states to the state table. 2006-12-20 17:05:40 +01:00
Stefan Dösinger
1e264e5dd4 wined3d: Temporary disable nvrc junk texture skipping. 2006-12-20 17:05:11 +01:00
H. Verbeet
e4fc45e0fe wined3d: Allow wined3d to handle multiple render targets. 2006-12-20 12:32:30 +01:00
H. Verbeet
299c1e62bf wined3d: Allow the FBO code to handle multiple render targets. 2006-12-20 12:32:13 +01:00
H. Verbeet
577dbb578b wined3d: Move storing the render target from ActiveRender to SetRenderTarget.
Use the render target index rather than hardcoding 0.
2006-12-20 12:31:57 +01:00
H. Verbeet
8355b1a501 wined3d: Allow the device to store multiple render targets. 2006-12-20 12:31:40 +01:00
Stefan Dösinger
f661a8287c wined3d: Add WINED3DRS_STIPPLEPATTERNxy. 2006-12-19 16:53:44 +01:00
Stefan Dösinger
f154f543aa wined3d: Fix a function name. 2006-12-19 16:53:37 +01:00
Stefan Dösinger
ff077ec621 wined3d: Add missing render state function. 2006-12-19 16:53:30 +01:00
Stefan Dösinger
062b6ffc5c wined3d: Catch nop render state changes. 2006-12-19 16:53:18 +01:00
Stefan Dösinger
c83562af69 wined3d: Move render state applying to drawprim. 2006-12-19 16:53:07 +01:00
Stefan Dösinger
7532c759f1 wined3d: Add the state dirtification infrastructure. 2006-12-19 16:53:00 +01:00
Markus Amsler
5e0fc62135 d3d: Callback infrastructure for implicit swap chain destruction in IWineD3DDevice. 2006-12-18 12:07:26 +01:00
Markus Amsler
4ca9fccf31 wined3d: Remove IWineD3DVolume_GetContainerParent. 2006-12-18 12:02:28 +01:00
Markus Amsler
9b397ec2d5 wined3d: Remove IWineD3DSurface_GetContainerParent. 2006-12-18 12:02:17 +01:00
Markus Amsler
0bceec1be8 wined3d: Call the depth stencil destroy callback function. 2006-12-18 12:01:39 +01:00
Vitaliy Margolen
2a63a03eb1 wined3d: When changing display modes clip cursor to the requested display size. 2006-12-15 13:44:36 +01:00
Stefan Dösinger
17eabc42b3 wined3d: Clean up SetRenderState. 2006-12-15 12:18:52 +01:00
Stefan Dösinger
46028b0832 wined3d: D3DRS_ZVISIBLE is not supposed to return an error. 2006-12-15 12:18:36 +01:00
Francois Gouget
367f91fb5c Assorted spelling fixes. 2006-12-14 20:25:05 +01:00
Dmitry Timoshkov
47ffd7ae95 wined3d: Make some data const. 2006-12-14 20:11:41 +01:00
Stefan Dösinger
92460b98d1 wined3d: Move WINED3DRS_SEPARATEALPHABLENDENABLE to the state table. 2006-12-11 16:27:04 +01:00
Stefan Dösinger
8a5bf91b4e wined3d: Move SRGBWRITEENABLE to the state table. 2006-12-11 16:26:53 +01:00
Stefan Dösinger
cd0d0a7041 wined3d: Move tesselation to the state table. 2006-12-11 16:26:39 +01:00
Stefan Dösinger
3bb41771ad wined3d: Move WINED3DRS_NORMALDEGREE to the state table. 2006-12-11 16:26:25 +01:00
Stefan Dösinger
052197acb0 wined3d: Move WINED3DRS_POSITIONDEGREE to the state table. 2006-12-11 16:26:14 +01:00
Stefan Dösinger
e25edbfc66 wined3d: Make WINED3DRS_DEBUGMONITORTOKEN a nogl state. 2006-12-11 16:26:05 +01:00
Stefan Dösinger
8197470d67 wined3d: Move WINED3DRS_PATCHSEGMENTS to the state table. 2006-12-11 16:25:48 +01:00
Stefan Dösinger
e498a16124 wined3d: Move WINED3DRS_PATCHEDGESTYLE to the state table. 2006-12-11 16:25:13 +01:00
Stefan Dösinger
d7b8549963 wined3d: Move WINED3DRS_MULTISAMPLEMASK to the state table. 2006-12-11 16:25:03 +01:00
Stefan Dösinger
55a5b4ca1e wined3d: Move WINED3DRS_ANTIALIAS to the state table. 2006-12-11 16:24:52 +01:00
Stefan Dösinger
2710be0327 wined3d: Move WINED3DRS_STIPPLEDALPHA to the state table. 2006-12-11 16:24:38 +01:00
Stefan Dösinger
312be46415 wined3d: Move WINED3DRS_TEXTUREPERSPECTIVE to the state table. 2006-12-11 16:24:23 +01:00
Stefan Dösinger
30cf5e4e90 wined3d: Move WINED3DRS_DEPTHBIAS to the state table. 2006-12-11 16:24:10 +01:00
Stefan Dösinger
d7e55c2841 wined3d: Move WINED3DRS_SCISSORTESTENABLE to the state table. 2006-12-11 16:23:57 +01:00
Stefan Dösinger
0c1aba5fe2 wined3d: Move WINED3DRS_MULTISAMPLEANTIALIAS to the state table. 2006-12-11 16:23:45 +01:00
Stefan Dösinger
81dce7189d wined3d: Move WINED3DRS_WRAPx to the state table. 2006-12-11 16:23:34 +01:00
Stefan Dösinger
920225d4a4 wined3d: Move WINED3DRS_POINTSPRITEENABLE to the state table. 2006-12-11 16:23:18 +01:00
Stefan Dösinger
2b775221fd wined3d: WINED3DRS_SOFTWAREVERTEXPROCESSING is a nogl state. 2006-12-11 16:23:02 +01:00
Stefan Dösinger
c5344709b1 wined3d: Move WINED3DRS_LASTPIXEL to the state table. 2006-12-11 16:22:48 +01:00
Stefan Dösinger
580b9961f4 wined3d: Move WINED3DRS_LOCALVIEWER to the state table. 2006-12-11 16:22:35 +01:00
Stefan Dösinger
4c64b86f5b wined3d: Move WINED3DRS_COLORWRITEENABLEx to the state table. 2006-12-11 16:22:18 +01:00
Stefan Dösinger
caa371a69c wined3d: Move point scale render states to the state table. 2006-12-11 16:22:03 +01:00
Stefan Dösinger
9a0e4b5453 wined3d: Move WINED3DRS_POINTSIZE_MAX to the state table. 2006-12-11 16:21:39 +01:00
Stefan Dösinger
51b41d9981 wined3d: Move WINED3DRS_POINTSIZE_MIN to the state table. 2006-12-11 16:21:23 +01:00
Stefan Dösinger
0ec7c8b55a wined3d: Move WINED3DRS_POINTSIZE to the state table. 2006-12-11 16:20:52 +01:00
Stefan Dösinger
2ea57677d3 wined3d: Move WINED3DRS_NORMALIZENORMALS to the state table. 2006-12-11 16:20:01 +01:00
Stefan Dösinger
dd6f5a5437 wined3d: Move WINED3DRS_ZBIAS to the state table. 2006-12-11 16:19:50 +01:00
Stefan Dösinger
6a5d7df74f wined3d: Move WINED3DRS_LINEPATTERN to the state table. 2006-12-11 16:19:36 +01:00
Stefan Dösinger
81a1dce0cb wined3d: Move WINED3DRS_COLORVERTEX to the state table. 2006-12-11 16:19:19 +01:00
Stefan Dösinger
1328da09da wined3d: Set WINED3DRS_INDEXEDVERTEXBLENDENABLE to state_nogl. 2006-12-11 12:47:11 +01:00
Stefan Dösinger
3e05e133f9 wined3d: Remove the unused tween factor stateblock member. 2006-12-11 12:47:04 +01:00
Stefan Dösinger
a628b99d63 wined3d: Remove the unused stateblock vertex blend member. 2006-12-11 12:46:55 +01:00
Stefan Dösinger
e53c2a9c4c wined3d: Move wined3drs_fogdensity to the state table. 2006-12-11 12:46:41 +01:00
Stefan Dösinger
af935a2402 wined3d: Move WINED3DRS_FOGCOLOR to the state table. 2006-12-11 12:43:29 +01:00
Stefan Dösinger
f260248650 wined3d: Make WINED3DRS_RANGEFOGENABLE a nogl state. 2006-12-11 12:43:13 +01:00
Stefan Dösinger
6175273c28 wined3d: Move fog states to the state table. 2006-12-11 12:42:59 +01:00
Stefan Dösinger
8d7243192a wined3d: Move WINED3DRS_STENCILWRITEMASK to the state table. 2006-12-11 12:42:46 +01:00
Stefan Dösinger
0d9ae20883 wined3d: Move stencil states to the state table. 2006-12-11 12:42:27 +01:00
Stefan Dösinger
0772bb49e4 wined3d: Move WINED3DRS_SPECULARENABLE to the state table. 2006-12-11 12:42:14 +01:00
Stefan Dösinger
287c6247ab wined3d: Move WINED3DRS_TEXTUREFACTOR to the state table. 2006-12-11 12:42:04 +01:00
Stefan Dösinger
ac26172c2d wined3d: Move WINED3DRS_BLENDOP to the state table. 2006-12-11 12:41:51 +01:00
Stefan Dösinger
89e999ac71 wined3d: Move clipping states to the state table. 2006-12-11 12:41:21 +01:00
Stefan Dösinger
c88efeef05 wined3d: Move alpha states to the state table. 2006-12-11 12:40:27 +01:00
Stefan Dösinger
d30f1527cc wined3d: Implement IWineD3DDevice::Reset. 2006-12-11 12:40:13 +01:00
Chris Robinson
36be22a6db wined3d: Reduce the number of error messages. 2006-12-11 12:18:46 +01:00
Stefan Dösinger
1f07e4af18 wined3d: Move blending related states to the state table. 2006-12-08 12:25:53 +01:00
Stefan Dösinger
28cc3c8d6b wined3d: Move WINED3DRS_AMBIENT to the state table. 2006-12-08 12:25:28 +01:00
Stefan Dösinger
2ac48e8154 wined3d: Move WINED3DRS_ZFUNCENABLE to the state table. 2006-12-08 12:25:20 +01:00
Stefan Dösinger
8879c7d8dd wined3d: Move WINED3DRS_ZWRITEENABLE to the state table. 2006-12-08 12:25:09 +01:00
Stefan Dösinger
bb622e81bd wined3d: Move WINED3DRS_DITHERENABLE to the state table. 2006-12-08 12:24:55 +01:00
Stefan Dösinger
68f1082284 wined3d: Move WINED3DRS_SHADEMODE to the state table. 2006-12-08 12:24:45 +01:00
Stefan Dösinger
e4b4c040f0 wined3d: Move WINED3DRS_CULLMODE to the state table. 2006-12-08 12:24:31 +01:00
Stefan Dösinger
bb564dc6fa wined3d: Move WINED3DRS_ZENABLE to the state table. 2006-12-08 12:24:21 +01:00
Stefan Dösinger
53e788956a wined3d: Move WINED3DRS_LIGHTNING to the state table. 2006-12-08 12:24:14 +01:00
Stefan Dösinger
de96320421 wined3d: Move WINED3DRS_FILLMODE to the state table. 2006-12-07 21:10:54 +01:00
Stefan Dösinger
2a24e84a65 wined3d: Add render states to the state table. 2006-12-07 21:10:26 +01:00
Stefan Dösinger
c0268c7840 wined3d: Create the state table. 2006-12-07 21:10:07 +01:00
Markus Amsler
3fd04308ab d3d: Callback infrastructure for implicit depth stencil surface destruction in IWineD3DDevice. 2006-12-06 12:39:30 +01:00
Markus Amsler
50a0c21265 d3d: Callback infrastructure for implicit volume destruction in IWineD3DVolumeTexture. 2006-12-06 12:39:14 +01:00
Markus Amsler
cb8652947a d3d: Callback infrastructure for implicit render target destruction in IWineD3DSwapChain. 2006-12-06 12:39:00 +01:00
Markus Amsler
2946f7a267 d3d: Callback infrastructure for implicit surface destruction in IWineD3DCubeTexture. 2006-12-06 12:38:51 +01:00
Markus Amsler
04ae4596ff d3d: Callback infrastructure for implicit surface destruction in IWineD3DTexture. 2006-12-06 12:38:37 +01:00
Jan Zerebecki
9c58bce158 wined3d: Add err for failure case in CheckDepthStencilMatch. 2006-12-04 20:05:09 +01:00
Jan Zerebecki
ee44a19966 wined3d: Fix CreateFakeGLContext to work with a foreign context. 2006-12-04 20:00:50 +01:00
Jan Zerebecki
1075367493 wined3d: Avoid XFree on NULL in CheckDeviceType. 2006-12-04 18:53:19 +01:00
Jan Zerebecki
3d6ffee021 wined3d: Rearrange code in CheckDeviceType. 2006-12-04 18:37:59 +01:00
Jan Zerebecki
0d66f794d1 wined3d: Add warn trace for INVALIDCALL case in CheckDeviceType. 2006-12-04 18:37:23 +01:00
Markus Amsler
a60d4b2d2f d3d: Pass the superior creating object down to the callback functions. 2006-12-04 12:40:38 +01:00
Vitaliy Margolen
81c7c00bb2 wined3d/d3d9: Pitch for DXTn textures can not be 0. With tests. 2006-12-04 12:38:16 +01:00
Markus Amsler
3127eac2bd wined3d: Remove duplicated code. 2006-12-01 12:27:13 +01:00
Markus Amsler
f8e7ddd798 Revert "d3d: Remove AddRef from IWineD3DDevice_GetBackBuffer.".
This reverts commit 478a414e58.
2006-11-30 16:04:00 +01:00
Markus Amsler
b657cd5f58 Revert "d3d: Remove AddRef from IWineD3DDevice_GetRenderTarget.".
This reverts commit a7518f6f54.
2006-11-30 16:04:00 +01:00
Markus Amsler
f5204b8afe Revert "d3d: Remove AddRef from IWineD3DDevice_GetDepthStencilSurface.".
This reverts commit 18546a65e6.
2006-11-30 16:04:00 +01:00
Markus Amsler
5bec2f57a1 Revert "d3d: Remove AddRef from IWineD3DDevice_GetTexture.".
This reverts commit 274df6ef88.
2006-11-30 16:04:00 +01:00
Markus Amsler
3a270375d7 Revert "d3d: Remove AddRef from IWineD3DDevice_GetStreamSource.".
This reverts commit 16b1e046d8.
2006-11-30 16:03:59 +01:00
Markus Amsler
9dd81f64cb Revert "d3d: Remove AddRef from IWineD3DDevice_GetIndices.".
This reverts commit 5c4008719c.
2006-11-30 16:03:59 +01:00
Markus Amsler
c40501db50 Revert "d3d: Remove AddRef from IWineD3DDevice_GetSwapChain.".
This reverts commit f84f687e6d.
2006-11-30 16:03:59 +01:00
Markus Amsler
0bff261cfa Revert "d3d: Fix partially applied patch: Remove AddRef from GetDirect3D.".
Removing COM in d3d is not feasible as long as we use inheritance. So
stick to the COM refcount rules.
This reverts commit 3fd8fe089c.
2006-11-30 16:03:59 +01:00
H. Verbeet
7e4d3d951e wined3d: Set the initial FBO depth stencil when creating the device. 2006-11-28 12:22:48 +01:00
H. Verbeet
9c1a61b6e6 wined3d: Delete the device's FBO when destroying the device. 2006-11-28 12:22:40 +01:00
H. Verbeet
533dcbf170 wined3d: Use the texture sampling function in a few more instructions (GLSL). 2006-11-28 12:22:32 +01:00
H. Verbeet
f035df9ac5 wined3d: Use the texture sampling function in a few more instructions (ARB asm shaders). 2006-11-28 12:22:24 +01:00
H. Verbeet
ac651a7058 wined3d: Fix the texm3x3tex instruction to sample properly. 2006-11-28 12:19:48 +01:00
H. Verbeet
e7122e9a79 wined3d: Create a separate function for sampling a texture. 2006-11-28 12:19:39 +01:00
H. Verbeet
8a7f427948 wined3d: Select the right shader backend when creating the device. 2006-11-28 12:19:27 +01:00
H. Verbeet
df6f482a69 wined3d: Move some code specific to the different shader backends into the respective source files. 2006-11-28 12:19:19 +01:00
Andrew Talbot
92dc74016a wined3d: Cast-qual warnings fix. 2006-11-27 13:43:10 +01:00
Andrew Talbot
f3a515ce19 wined3d: Cast-qual warnings fix. 2006-11-27 13:43:05 +01:00
Andrew Talbot
5381dd2cf6 wined3d: Cast-qual warnings fix. 2006-11-27 13:43:00 +01:00
Markus Amsler
3fd8fe089c d3d: Fix partially applied patch: Remove AddRef from GetDirect3D. 2006-11-24 12:57:01 +01:00
Markus Amsler
f84f687e6d d3d: Remove AddRef from IWineD3DDevice_GetSwapChain. 2006-11-22 11:40:50 +01:00
Markus Amsler
5c4008719c d3d: Remove AddRef from IWineD3DDevice_GetIndices. 2006-11-22 11:40:43 +01:00
Markus Amsler
16b1e046d8 d3d: Remove AddRef from IWineD3DDevice_GetStreamSource. 2006-11-22 11:40:37 +01:00
Markus Amsler
274df6ef88 d3d: Remove AddRef from IWineD3DDevice_GetTexture. 2006-11-22 11:40:31 +01:00
Markus Amsler
18546a65e6 d3d: Remove AddRef from IWineD3DDevice_GetDepthStencilSurface. 2006-11-22 11:40:24 +01:00
Markus Amsler
a7518f6f54 d3d: Remove AddRef from IWineD3DDevice_GetRenderTarget. 2006-11-22 11:40:05 +01:00
Markus Amsler
478a414e58 d3d: Remove AddRef from IWineD3DDevice_GetBackBuffer. 2006-11-22 11:39:52 +01:00
H. Verbeet
9d6f22002c wined3d: Only copy the depth buffer if there is one. 2006-11-20 11:50:14 +01:00
H. Verbeet
d1e6e81bbe wined3d: Make sure render target textures aren't bound when we start drawing. 2006-11-20 11:50:14 +01:00
H. Verbeet
da65aed442 wined3d: Support cube map FBO attachments. 2006-11-20 11:50:14 +01:00
H. Verbeet
8afe27dacd wined3d: Fix GL_ARB_texture_cube_map extension support. 2006-11-20 11:50:14 +01:00
H. Verbeet
ef2c062c09 wined3d: Allow the depth buffer to be shared between onscreen and offscreen rendering modes. 2006-11-17 18:14:25 +01:00
H. Verbeet
6d66085150 wined3d: Add FBO support for offscreen rendering. 2006-11-17 18:14:13 +01:00
H. Verbeet
ad4c2bdb69 wined3d: Make the offscreen render mode a registry setting. 2006-11-17 18:13:57 +01:00
H. Verbeet
44f4e254a6 wined3d: Fix depth buffer formats to use actual depth textures. 2006-11-17 15:54:01 +01:00
H. Verbeet
9bf04ecd03 wined3d: Rename renderUpsideDown to render_offscreen. 2006-11-17 15:53:52 +01:00
Francois Gouget
1ccf944900 Assorted spelling fixes. 2006-11-13 13:01:53 +01:00
Stefan Dösinger
7311e9fc8e wined3d: Fix a comment. 2006-11-13 12:58:40 +01:00
Stefan Dösinger
def7df305e wined3d: ScissorRect correction. 2006-11-08 15:49:22 +01:00
Markus Amsler
fc179532f4 wined3d: Fix regression in surface conversion. 2006-11-08 11:25:27 +01:00
Francois Gouget
30e44c85c8 Assorted spelling fixes. 2006-11-07 15:25:24 +01:00
Markus Amsler
5ec0ce5b38 wined3d: Use width while converting surfaces.
This fixes also a heap corruption with 1x1 and 2x2 surfaces.
2006-11-07 15:06:16 +01:00
Markus Amsler
5864d18c96 wined3d: Use SURFACE_ALIGNMENT. 2006-11-07 15:06:02 +01:00
Stefan Dösinger
7cae24fc36 wined3d: glReadPixels corrections. 2006-11-04 11:57:28 +01:00
Ivan Gyurdiev
4934b7ae79 wined3d: Add D3DLINEPATTERN to the WINED3D namespace. 2006-10-31 12:11:09 +01:00
Ivan Gyurdiev
50130fdfdb wined3d: Add D3DPATCHEDGESTYLE to the WINED3D namespace. 2006-10-31 12:11:01 +01:00
Ivan Gyurdiev
8d7a01963e wined3d: Use D3DCUBEMAP_FACES consistently in the WINED3D namespace. 2006-10-31 12:10:52 +01:00
Ivan Gyurdiev
aa164647e6 wined3d: Use D3DDEGREE consistently in the WINED3D namespace. 2006-10-31 12:10:42 +01:00
Ivan Gyurdiev
4c723a7662 wined3d: Add D3DSTREAMSOURCE codes to the WINED3D namespace. 2006-10-31 12:10:31 +01:00
Ivan Gyurdiev
f71edf223f wined3d: Add D3DCOLORWRITEENABLE codes to the WINED3D namespace. 2006-10-31 12:10:12 +01:00
Ivan Gyurdiev
b1df1d8320 wined3d: Add D3DCLEAR codes to the WINED3D namespace. 2006-10-31 12:09:46 +01:00
Ivan Gyurdiev
de108f65e1 wined3d: Add D3DTSS_TCI codes to the WINED3D namespace. 2006-10-31 12:09:15 +01:00
Ivan Gyurdiev
875a1eb02d wined3d: Add D3DFVF codes to the WINED3D namespace. 2006-10-31 12:09:06 +01:00
Kovács András
eb7b1f4bce wined3d: Fix introduced regression in shader_glsl_mnxn and vshader_hw_mnxn. 2006-10-30 20:37:34 +01:00
Ivan Gyurdiev
908853f63d wined3d: Add D3DMATERIALCOLORSOURCE to the WINED3D namespace. 2006-10-30 12:06:17 +01:00
Ivan Gyurdiev
206d248e48 wined3d: Add D3DCMPFUNC to the WINED3D namespace. 2006-10-30 12:06:10 +01:00
Ivan Gyurdiev
2b6deb8637 wined3d: Add D3DSTENCILOP to the WINED3D namespace. 2006-10-30 12:06:03 +01:00
Ivan Gyurdiev
f5cc612842 wined3d: Add D3DFILLMODE to the WINED3D namespace. 2006-10-30 12:05:55 +01:00