Alexandre Julliard
db25d4022a
winex11: Simplify wglSetPixelFormatWINE and export it as a standard extension function.
2012-06-28 13:13:01 +02:00
Alexandre Julliard
94abcd532f
wined3d: Always load wgl functions from opengl32.dll.
2012-06-28 01:44:02 +02:00
Alexandre Julliard
66a5995e11
winex11: Move wglGetCurrentContext and wglGetCurrentDC to the internal OpenGL extension functions.
2012-06-25 16:25:44 +02:00
Alexandre Julliard
08efea0218
winex11: Move wglCopyContext and wglDeleteContext to the internal OpenGL extension functions.
2012-06-25 13:52:10 +02:00
Alexandre Julliard
beeba895d3
winex11: Move wglShareLists to the internal OpenGL extension functions.
2012-06-25 13:52:01 +02:00
Henri Verbeet
0acd48d89f
wined3d: Trace the minimum buffer map alignment in wined3d_adapter_init_gl_caps().
...
There's not much else we need to do for ARB_map_buffer_alignment. There's
still a pretty decent chance that we'll get lucky with alignment even on
drivers that don't support the extension, since mmap is going to return page
aligned memory. Tiny buffers might get packed together in a page though.
2011-11-24 17:10:03 +01:00
Henri Verbeet
3d7c596cdc
wined3d: Don't hide GL function pointer typedefs behind extension defines.
...
These are specific to wined3d.
2011-07-29 12:09:26 +02:00
Henri Verbeet
5d6f29818f
wined3d: Get rid of the GL_SupportedExt typedef.
2011-07-04 13:44:52 +02:00
Stefan Dösinger
7de2fa2670
wined3d: Add GL_ARB_draw_elements_base_vertex.
2011-06-14 13:43:56 +02:00
Henri Verbeet
02480a902e
wined3d: Get rid of the ARB_imaging extension.
2011-03-31 23:47:00 +02:00
Henri Verbeet
97a5336ca9
wined3d: Fix the EXT_blend_subtract extension definitions.
2011-03-31 23:46:51 +02:00
Henri Verbeet
e4e28c47ea
wined3d: Fix the EXT_blend_color extension definitions.
2011-03-31 23:43:14 +02:00
Henri Verbeet
f8507d6061
wined3d: Fix the EXT_blend_minmax extension definitions.
2011-03-31 23:43:05 +02:00
Henri Verbeet
a97c1ad15e
wined3d: Add support for EXT_texture_sRGB_decode.
2011-03-03 17:47:13 +01:00
Andrew Nguyen
12880784fe
wined3d: Handle the swapchain presentation interval with wglSwapIntervalEXT.
2010-12-27 15:39:41 +01:00
Andrew Nguyen
0f050b3ecb
wined3d: Fix typo in GL_SGIS_generate_mipmap preprocessor definition.
2010-12-27 15:39:41 +01:00
Andrew Nguyen
7e13b1afaf
wined3d: Remove references to GLX_SGI_video_sync.
...
Usage of GLX_SGI_video_sync is problematic, and wined3d cannot use GLX extensions.
2010-12-27 15:39:41 +01:00
Ričardas Barkauskas
dc1356484c
wined3d: Add NVDB support.
2010-09-16 10:12:33 -05:00
Henri Verbeet
a99bf6c017
wined3d: Add support for ARB_texture_compression_rgtc.
2010-07-30 11:36:03 +02:00
Henri Verbeet
c411b45da9
wined3d: Use a more consistent name for the normalized texrect "extension".
2010-07-21 09:33:18 +02:00
Rico Schüller
894a150f69
wined3d: Add GL_NV_point_sprite extension.
2010-07-19 15:10:32 +02:00
Henri Verbeet
b1abafcf8d
wined3d: Also flip the point sprite coordinate origin when rendering offscreen.
2010-06-11 16:22:25 +02:00
Henri Verbeet
29b13f75cc
wined3d: Add support for ARB_shadow.
2010-05-17 13:19:49 +02:00
Henri Verbeet
5f7e087644
wined3d: Fix a GL extension prototype.
2010-04-12 11:33:28 +02:00
Henri Verbeet
13a57c81f0
wined3d: Add support for EXT_draw_buffers2.
2010-03-26 10:29:23 +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
Henri Verbeet
974f888dfa
wined3d: Move the gl info structure to wined3d_private.h.
2010-02-16 10:47:50 +01:00
Henri Verbeet
1a880cb1f9
wined3d: Remove some unused extensions.
2010-02-16 10:47:40 +01:00
Henri Verbeet
b59dd0e4e8
wined3d: Add the general combiner limit to wined3d_gl_info.
2010-02-05 10:06:03 +01:00
Stefan Dösinger
f6bb86e196
wined3d: Add GL_ARB_map_buffer_range.
2010-02-02 14:09:04 +01:00
Henri Verbeet
b2e511f391
wined3d: Trace the GLSL version string.
...
At some point we'll use the GLSL version to check if certain features are
available. For now just print the version.
2010-01-28 11:07:52 +01:00
Henri Verbeet
005eb0bd7d
wined3d: Move some macros to directx.c.
...
Nothing GL specific about these.
2010-01-26 12:08:33 +01:00
Henri Verbeet
98568f0ba1
wined3d: Add support for ARB_vertex_array_bgra.
2010-01-26 12:08:27 +01:00
Henri Verbeet
c698171fa3
wined3d: Add support for ARB_sync.
2010-01-26 12:08:18 +01:00
Henri Verbeet
869fc74576
wined3d: Add support for EXT_gpu_shader4.
2010-01-25 12:58:39 +01:00
Henri Verbeet
60ad1aed63
wined3d: Remove unused occlusion query extensions.
2010-01-22 12:12:14 +01:00
Henri Verbeet
c5086a123e
wined3d: Remove the duplicate GL_2X_BIT_ATI define.
2010-01-22 12:12:07 +01:00
Henri Verbeet
7047f09890
wined3d: Remove the second set of EXT_texture_env_dot3 definitions.
2010-01-22 12:12:01 +01:00
Henri Verbeet
53c3521795
wined3d: Fix the ARB_pixel_buffer_object extension definitions.
2010-01-22 12:11:56 +01:00
Henri Verbeet
2fe633efbc
wined3d: Sort our GL extension definitions.
...
This makes some of the problems in there a bit more obvious.
2010-01-22 12:11:51 +01:00
Stefan Dösinger
ccc26a9e01
wined3d: Add GL_APPLE_flush_buffer_range.
2010-01-04 12:09:18 +01:00
Stefan Dösinger
71db272fee
wined3d: Add GLintptr and GLsizeiptr.
2010-01-04 12:09:12 +01:00
Henri Verbeet
f50b4c7d71
wined3d: Move "wrap_lookup" to struct wined3d_gl_info.
2010-01-04 11:41:28 +01:00
Henri Verbeet
48e03bc189
wined3d: Introduce a separate structure for various OpenGL implementation limits.
2009-10-29 13:09:27 +01:00
Henri Verbeet
2447c8bc3e
wined3d: Store PCI IDs in wined3d_driver_info instead of wined3d_gl_info.
2009-10-27 10:54:50 +01:00
Stefan Dösinger
641d6681d4
wined3d: Use the ARB native constant limit in the GLSL-ARB constants quirk.
...
Geforce 8 and Geforce 9 cards support 256 env and 1024 native
constants. 1024 is the hardware limit we want to use if we overwrite
the GLSL reported value with the ARB value on Mac OS (because Mac OS
reports more constants than supported by HW on some cards).
2009-10-26 11:42:10 +01:00
Henri Verbeet
5fbe5ee027
wined3d: Add a separate structure for driver info.
2009-10-26 11:20:33 +01:00
Stefan Dösinger
2d802af4d9
wined3d: Make shader specific constants accessible via GL_LIMITS.
2009-10-20 14:46:08 +02:00
Henri Verbeet
eca28c942d
wined3d: Add support for ARB_provoking_vertex.
...
This is just EXT_provoking_vertex promoted to ARB.
2009-09-23 12:37:18 +02:00
Henri Verbeet
a0de42db13
wined3d: Fix a typo.
2009-09-23 12:37:12 +02:00
Henri Verbeet
ec97383f6f
wined3d: Add support for ARB_framebuffer_object.
2009-09-23 12:37:00 +02:00
Henri Verbeet
c4c86215ed
wined3d: Detect ARB_framebuffer_object.
2009-09-23 12:36:48 +02:00
Henri Verbeet
689984b425
wined3d: Mark internal symbols hidden.
2009-09-15 14:32:49 -05:00
Henri Verbeet
d1f5fa65d0
wined3d: Fix some function pointers and typedefs.
2009-09-08 13:06:14 +02:00
Henri Verbeet
078273afa6
wined3d: Add support for ARB_depth_clamp.
2009-09-01 14:05:45 +02:00
Stefan Dösinger
52731a80c8
wined3d: Make it clear that glFlush and glFinish are WGL functions.
2009-08-26 14:35:41 +02:00
Henri Verbeet
e205973915
wined3d: Remove the redundant vs_nv_version and ps_nv_version fields from struct wined3d_gl_info.
2009-08-13 11:45:36 +02:00
Henri Verbeet
fbc3cf89e2
wined3d: Remove some unused fields from struct wined3d_gl_info.
2009-08-13 11:45:24 +02:00
Henri Verbeet
ac64bf6406
wined3d: Detect EXT_provoking_vertex.
2009-08-10 13:52:43 +02:00
Henri Verbeet
43e6686a78
wined3d: Rename _WineD3D_GL_Info to struct wined3d_gl_info.
2009-07-17 11:22:07 +02:00
Stefan Dösinger
cfd0652980
wined3d: Add Intel GMA X3100 to our card DB.
2009-07-09 12:47:33 +02:00
Henri Verbeet
7ec911adeb
wined3d: Avoid an unnecessary strcpy().
2009-07-07 11:49:54 +02:00
Henri Verbeet
4571455fea
wined3d: Remove the gl_renderer field from WineD3D_GL_Info.
2009-07-06 14:35:27 +02:00
Henri Verbeet
b2331ec79b
wined3d: Get rid of the unused gl_version and glx_version fields.
2009-07-06 14:35:27 +02:00
Tobias Jakobi
2d532a1597
wined3d: Add ps_arb_max_local_constants.
2009-07-02 11:56:27 +02:00
Henri Verbeet
40bc47901c
wined3d: Use flags for driver quirks.
2009-07-01 11:41:44 +02:00
Henri Verbeet
c475789bb6
wined3d: Move the driver_quirk structure to directx.c.
2009-07-01 11:41:38 +02:00
Yann Droneaud
a203876cc7
wined3d: Improved ATI Radeon HD 4xxx detection.
2009-06-17 12:43:20 +02:00
Henri Verbeet
d3bc045f26
wined3d: Add support for the ARB_depth_buffer_float extension.
2009-06-08 12:44:08 +02:00
Henri Verbeet
d08f4fb5f5
wined3d: Add support for EXT_packed_depth_stencil.
2009-06-05 15:19:56 +02:00
Henri Verbeet
a2440aed7e
wined3d: Add extension detection for ARB_depth_texture.
2009-06-05 14:43:25 +02:00
Henri Verbeet
a44f84fdf7
wined3d: Add a proper enum value for "no extension".
...
This would allow an extension check for ARB_COLOR_BUFFER_FLOAT to work.
2009-06-04 12:19:02 +02:00
Stefan Dösinger
01ec5068e2
wined3d: Add NV asm extension support to the ARB backend.
2009-05-21 16:17:51 +02:00
Stefan Dösinger
2cb8f42168
wined3d: Support clipplanes with GLSL.
...
This is the Nth attemt to make clipping work with GLSL shaders. The patch now
uses the GLSL quirk table to handle cards that need a custom varying for
gl_ClipPos, and the code is adapted to the changed state table and shader
backend system.
2009-05-18 13:59:16 +02:00
Robert Key
cce62569df
wined3d: Fix ATI HD4800 being reported as ATI 9500.
2009-05-15 11:55:20 +02:00
Stefan Dösinger
668328a697
wined3d: Work around a bad crash in fglrx.
2009-05-08 12:16:50 +02:00
Stefan Dösinger
d2e12a19ca
wined3d: Make use of GL_ARB_half_float_vertex.
...
This extension is a subset of GL_NV_half_float that defines support
for the stream format(same constant), but doesn't define texture
formats or immediate mode entrypoints.
2009-05-05 14:13:02 +02:00
Stefan Dösinger
f5e24f7a85
wined3d: Implement texldd.
...
GL_ARB_shader_texture is supported on dx9 ATI cards(and probably dx10
ones too). For Nvidia cards I included a fallback to normal texld.
GL_EXT_gpu_shader4 supports similar texture*Grad GLSL functions, just
with an EXT prefix instead of ARB. For dx9 NV cards we'd have to use
GL_NV_fragment_program2, which supports a texldd equivalent on those
cards.
2009-05-05 14:12:52 +02:00
Henri Verbeet
53169b98d2
wined3d: Define GL_FENCE_APPLE to the correct value.
2009-04-30 12:48:03 +02:00
Stefan Dösinger
de4f3dc8e8
wined3d: Merge match_apple and implementation_is_apple.
2009-04-20 16:39:55 +02:00
Stefan Dösinger
39877a2ad2
wined3d: Reserve additional GLSL constants on some drivers.
...
Some drivers apparently need private constants, or don't have an efficient
immval packing. For example, MacOS seems to need 1 float for each different
relative addressing offset. fglrx has the same issue, although it is more
efficient in general
Previously this worked on most drivers because the 16 + 4 reserved int and
bool constants kept the problem hidden. Now that we are more aggressive with
uniforms we have to keep free room for some drivers.
2009-04-20 16:38:39 +02:00
Stefan Dösinger
7b7f027221
wined3d: Add a more formal framework for driver quirks.
...
This allows better defining of driver desc fixups without adding extra if
lines for each card.
For starters, there's a fixup for the advertised GLSL constants in ATI cards.
fglrx advertises 512 GLSL uniforms instead of the supported 1024(means 128
instead of 256 vec4's). This bug was confirmed by ATI.
2009-04-20 16:37:31 +02:00
Roderick Colenbrander
f2e2e3e499
wined3d: Report the driver description as reported by the Windows drivers when a device string is entered in our device table.
2009-04-13 17:35:44 -05:00
Roderick Colenbrander
a932fdcb2f
wined3d: Update NVidia pci ids.
2009-04-06 11:16:24 +02:00
Henri Verbeet
4434d00f84
wined3d: Unify vertex and texture formats.
...
Some fields should be redundant now, eg. gl_vtx_type and glType. I'll leave
that for a different patch to fix though.
2009-03-27 15:51:25 +01:00
Roderick Colenbrander
9181ddcd16
wined3d: Add WGL_ARB_pixel_format detection.
...
Right now we assume that the extension is there but this isn't always
the case. The next patch in this series will add a
non-WGL_ARB_pixel_format codepath to help VirtualBox and others.
2009-03-23 13:25:17 +01:00
Henri Verbeet
2cc43393f0
wined3d: The adapters array should be owned by IWineD3DImpl.
2009-03-11 13:03:32 +01:00
Henri Verbeet
3f9e0d9320
wined3d: Add support for ARB_geometry_shader4.
2009-03-05 16:16:24 +01:00
Paul Chitescu
540febecf9
wined3d: Detect Radeon Xpress Series, report PCI ID of Radeon Xpress 200M.
2009-01-21 10:24:44 +01:00
Stefan Dösinger
365e1f3b07
wined3d: Avoid hooking non-fog glEnable/glDisable calls.
...
This prevents fallout from the GL_EXT_fog_coord emulation. glEnable
and glDisable calls other than those that change GL_FOG are not
hooked. The glEnableWINE and glDisableWINE functions can be used to
add other hooks too if ever needed.
2009-01-12 13:03:47 +01:00
Henri Verbeet
b1812c690c
wined3d: Add support for EXT_vertex_array_bgra.
...
This allows us to skip BGRA->RGBA color conversion for vertex attributes if
this extension is present.
2009-01-08 13:21:51 +01:00
Nick Burns
c52fd346ef
wined3d: Fix a couple of typos in wined3d_gl.h
2008-12-22 14:14:52 +01:00
Roderick Colenbrander
7238bce79d
wined3d: Add GL_ARB_texture_rg / GL_EXT_texture_swizzle support. These extensions are needed for more efficient R32F/RG32F support.
2008-12-19 17:48:55 +01:00
Stefan Dösinger
4b268c79d7
wined3d: Some GL_EXT_fog_coord prototype fixes.
2008-12-16 14:32:29 +01:00
Henri Verbeet
b451048eb7
wined3d: Move GlPixelFormatDesc to wined3d_private.h where it belongs.
...
Also remove the silly typedef.
2008-12-04 11:59:06 +01:00
Henri Verbeet
657a016ac5
wined3d: Fix the glWeightPointerARB prototype.
2008-12-01 12:45:18 +01:00
Vincent Pelletier
f442bafb8a
wined3d: Add detection for NVIDIA's GTX 280.
2008-11-24 14:41:58 +01:00
Henri Verbeet
8899f3412b
wined3d: wined3d_gl.h should be internal to wined3d.
2008-11-20 14:24:56 +01:00