Commit Graph

151 Commits

Author SHA1 Message Date
Alexandre Julliard b4f42c94a7 wined3d: Simplify some uses of the WineD3D_Context object. 2006-10-27 15:03:07 +02:00
Alexandre Julliard 6afcf77889 wined3d: The WineD3D_GLContext structure doesn't need to be exported. 2006-10-27 14:42:17 +02:00
Alexandre Julliard 00ddebfafa wined3d: Fix a memory leak (spotted by Eric Pouech). 2006-10-27 14:41:25 +02:00
Ivan Gyurdiev 997e670e12 wined3d: Add D3DTADDRESS to the WINED3D namespace. 2006-10-24 20:06:15 +02:00
Ivan Gyurdiev ce2e980d1b wined3d: Add shader version/end masks to the WINED3D namespace. 2006-10-13 11:15:45 +02:00
Ivan Gyurdiev 4745e602d2 wined3d: Add D3DCLIPPLANE constants to the WINED3D namespace. 2006-10-13 11:15:18 +02:00
Ivan Gyurdiev fb0c932f21 wined3d: D3DFORMAT: Consistently use WINED3D namespace. 2006-10-11 12:17:21 +02:00
Markus Amsler 8192555dff wined3d: Fix DEBUG_SINGLE_MODE. 2006-10-10 11:57:58 +02:00
Ivan Gyurdiev e020eceddf wined3d: Make the shader mode selections per device. 2006-10-09 20:27:55 +02:00
Francois Gouget 4b248447c0 wined3d: Fix '\n' typo. 2006-10-06 17:29:22 +02:00
Francois Gouget 82babbee0b Add missing '\n's to Wine traces. 2006-10-05 17:46:48 +02:00
H. Verbeet 80afd74933 wined3d: Report the correct number of available 4-component float vectors for GLSL. 2006-10-02 21:38:22 +02:00
Ivan Gyurdiev 3dcd3681f3 wined3d: Win64 printf fixes. 2006-10-02 14:38:04 +02:00
H. Verbeet 5abdd7a19f wined3d: Comparing BOOLs against FALSE is redundant. 2006-09-27 09:49:07 +02:00
H. Verbeet 1d839e42e9 wined3d: Add a comment to clarify the point of max_sampler_stages. 2006-09-27 09:48:30 +02:00
H. Verbeet 193f6bbd92 wined3d: Add support for native NPOT textures. 2006-09-27 09:48:11 +02:00
Roderick Colenbrander 4b55964a26 wined3d: Add the missing gamma cap. 2006-09-26 11:39:29 +02:00
Roderick Colenbrander 7c86d91bb9 wined3d: glBlend* fixes. 2006-09-25 17:56:04 +02:00
Paul Chitescu f2aee453f1 wined3d: Avoid crashing when renderer returns no name. 2006-09-13 11:37:06 +02:00
Francois Gouget 06f9532dda Assorted spelling fixes. 2006-09-08 11:04:53 +02:00
Ivan Gyurdiev 2e1cf4d948 wined3d: Add support for R32F and R16F texture formats. 2006-09-07 13:48:32 +02:00
Ivan Gyurdiev bda6d092a5 wined3d: Add support for A16B16G16R16F and A32B32G32R32F texture formats. 2006-08-28 11:46:20 +02:00
Roderick Colenbrander de97fa7a3b wined3d: Better GPU detection. 2006-08-21 12:21:19 +02:00
Jan Zerebecki 387c982d5c wined3d: Fix spelling in a comment. 2006-08-11 11:55:27 +02:00
Roderick Colenbrander c2b6cc9dc4 wined3d: Fix GLSL regression / draw buffers support. 2006-08-09 20:35:59 +02:00
Roderick Colenbrander c856432fab wined3d: Volume texture addressing caps. 2006-08-08 19:37:30 +02:00
Roderick Colenbrander eba1f90ef6 wined3d: Shader declaration cap fixes. 2006-08-08 19:37:23 +02:00
Roderick Colenbrander 194cdfa4b0 wined3d: Shader cap fixes. 2006-08-08 19:35:24 +02:00
Roderick Colenbrander 91998b4d99 wined3d: Textureops caps fix. 2006-08-08 11:15:07 +02:00
Roderick Colenbrander 930a9a1d02 wined3d: texture caps fixes. 2006-08-07 13:52:38 +02:00
Roderick Colenbrander bd6f0b23d6 wined3d: General constant caps fix. 2006-08-07 13:52:03 +02:00
Roderick Colenbrander 3d9e96f3bc wined3d: Volume textures fix. 2006-08-05 11:26:25 +02:00
Roderick Colenbrander 6ded5542b2 wined3d: Raster caps fix. 2006-08-05 11:26:06 +02:00
Roderick Colenbrander 6fedd6c041 wined3d: Primitive misc caps fix. 2006-08-05 11:25:51 +02:00
Roderick Colenbrander 95b047c2fe wined3d: Fix a number of badly reported caps. 2006-08-04 20:47:50 +02:00
H. Verbeet d5238cfb38 wined3d: Split the GLSL check in a check for GLSL vertex shaders and one for GLSL fragment shaders. 2006-07-31 10:53:05 +02:00
Jason Green d353ab7879 wined3d: Start checking for D3DUSAGE_QUERY_* items, improve traces. 2006-07-29 11:49:51 +02:00
Jason Green 72bfe131d1 wined3d: More shader fixes / new instructions.
- Replace gl_FragColor with gl_FragData[0] for GLSL pixel shader output.
- Subtract 1 more constant from total GLSL allowed float constants to
  accommodate the PROJECTION matrix row that we reference.
2006-07-28 14:01:16 +02:00
Jason Green 46c4b88ba5 wined3d: Fix some upside-down rendering issues for shaders. 2006-07-27 12:03:25 +02:00
Stefan Dösinger 3588067b90 wined3d: Blacklist WINED3DFMT_R8G8B8. 2006-07-27 11:57:45 +02:00
Stefan Dösinger a5142837c6 wined3d: Enable all bump mapping formats. 2006-07-26 10:24:37 +02:00
Jason Green 75950b5bf8 wined3d: Replace memset/memcpy routines on stateblock (fixes dynamic shader constants regression). 2006-07-24 12:57:34 +02:00
Stefan Dösinger 127613bc6f wined3d: Whitelist pixelformats instead of blacklisting. 2006-07-24 12:57:34 +02:00
H. Verbeet a8f2c1075a wined3d: Compilation fixes. 2006-07-20 12:11:06 +02:00
Jason Green 718716b77a wined3d: Make the number of floating point shader constants dynamic. 2006-07-19 09:54:30 +02:00
Ivan Gyurdiev ed9848930b wined3d: Improve GetAdapterMonitor stub. 2006-07-11 17:14:46 +02:00
Louis. Lenders 2ce792fd33 wined3d: Add an "\n" to a fixme to fix another overflow (in IWineD3DImpl_CheckDeviceFormatConversion). 2006-07-11 12:41:29 +02:00
Ivan Gyurdiev 771623692e wined3d: Rework shader mode selection.
- currently half the shader selection code (GLSL vs ARB) is in
fillGLcaps. The parts that check for software shaders are in
GetDeviceCaps. That placement, will work, but is definitely not optimal.
FillGLcaps should detect support - it should not make decision as to
what's used, because that's not what the purpose of the function is.
GetDeviceCaps should report support as it has already been selected.
Instead, select shader mode in its own function, called in the
appropriate places.

- unifying pixel and vertex shaders into a single selection is a
mistake. A software vertex shader can be coupled with a hardware arb or
glsl pixel shader, or no shader at all. Split them back into two and add
a SHADER_NONE variant.

- drawprim is doing support checks for ARB_PROGRAM, and making shader
decisions based on that - that's wrong, support has already been
checked, and decided upon, and shaders can be implemented via software,
ARB_PROGRAm or GLSL, so that support check isn't valid.

- Store the shader selected mode into the shader itself. Different types
of shaders can be combined, so this is an improvement. In fact, storing
the mode into the settings globally is a mistake as well - it should be
done per device, since different cards have different capabilities.
2006-07-06 16:07:37 +02:00
H. Verbeet 7f9e61f7d2 wined3d: Use register combiners for texture stage operations.
Make wined3d use register combiners for texture stage operations. In
order to do that the texture unit index needs to be separated from the
texture stage index. For cards that don't support the
NV_register_combiners extension nothing should change.
2006-06-28 16:34:36 +02:00
H. Verbeet a54e36adfe wined3d: Texture limits fixes.
GL_LIMITS(textures) is currently used for both the number of texture
stages and the maximum number of simultaneous textures. In the current
code that's the same, but in a later patch that will be separated,
since a texture stage doesn't have to reference an actual
texture. Also, shaders can access a larger number of samplers than the
number of texture units the fixed function pipeline can access.
2006-06-28 16:06:25 +02:00