Henri Verbeet
ebb85da5f7
wined3d: Get rid of the WINEDDCAPS typedef.
2011-12-13 18:58:58 +01:00
Henri Verbeet
38c3cde6fd
wined3d: Get rid of the WINED3DPSHADERCAPS2_0 typedef.
2011-12-09 21:15:25 +01:00
Henri Verbeet
af6b98c44b
wined3d: Get rid of the WINED3DVSHADERCAPS2_0 typedef.
2011-12-09 21:15:24 +01:00
Henri Verbeet
d2ca44a597
wined3d: Print the GL_RENDERER string when no "card selector" is available in wined3d_guess_card().
2011-12-09 21:15:24 +01:00
Henri Verbeet
ada8ad76b9
wined3d: Avoid clearing the current wined3d context in WineD3D_CreateFakeGLContext().
...
There should be no need to clear the thread's current wined3d context as long
as we properly restore the corresponding GL stuff. This avoids hitting the
context restore code in context_enter() when we have e.g. two d3d9 devices,
one of which is inactive, because now we can see that the GL context that's
active belongs to another wined3d context, and we don't need to bother
saving and restoring it.
2011-12-08 10:27:40 +01:00
Stefan Dösinger
6c423b106f
wined3d: Remove the Apple NV_texture_shader quirk.
2011-12-06 17:06:53 +01:00
Stefan Dösinger
e4f91774ac
wined3d: Remove fglrx GLSL constant quirks.
...
Fglrx does not support r500 and earlier GPUs any longer, making those
quirks obsolete and a problem for r300g.
2011-12-06 17:06:49 +01:00
Henri Verbeet
376ffdf3d5
wined3d: Get rid of the WINED3DADAPTER_IDENTIFIER typedef.
2011-11-24 17:10:09 +01: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
18a7653c78
wined3d: Get rid of the WINED3DDISPLAYMODE typedef.
2011-11-17 11:37:26 +01:00
Matteo Bruni
151cf2696b
wined3d: Disable WINED3DFMT_B8G8R8_UNORM.
2011-11-15 19:37:37 +01:00
Henri Verbeet
81ae0cea7c
wined3d: Simplify context_choose_pixel_format().
...
Simply rank the formats instead of doing multiple passes over the list.
2011-11-09 11:34:19 +01:00
Matteo Bruni
cc221b285b
wined3d: Recognize Northern Islands cards with AMD binary drivers.
2011-11-04 10:45:54 +01:00
Matteo Bruni
307579156f
wined3d: Add filtering flag to more texture formats.
2011-11-04 10:45:42 +01:00
Henri Verbeet
739dbab46e
wined3d: Add fallbacks for d3d9 and d3d10 cards in select_card_amd_mesa().
2011-11-04 10:44:19 +01:00
Claudio Fontana
485571539f
wined3d: Rename nVidia GTX560 to GTX560TI, add GTX560 with correct device id.
2011-11-03 17:42:58 +01:00
Henri Verbeet
dbfe83baff
wined3d: Rename nCfgs to cfg_count.
2011-10-27 19:34:15 +02:00
Henri Verbeet
2f74d5052a
wined3d: Recognize Sumo/Llano in select_card_amd_mesa().
2011-10-27 12:25:00 +02:00
Matteo Bruni
5f2c6b3c82
wined3d: Enable SM4 support in the GLSL shader backend when possible.
2011-10-26 12:41:34 +02:00
Matteo Bruni
7254f5e661
wined3d: Return only the shader major version.
2011-10-26 12:41:34 +02:00
Matteo Bruni
35f7610630
wined3d: Remove an obsolete comment.
2011-10-13 19:57:19 +02:00
Austin English
aacbc7e2b7
wined3d: Recognize "Brian Paul" as a mesa card vendor.
2011-10-13 19:57:19 +02:00
Stefan Dösinger
efba48ccfb
wined3d: Don't load/unload unsupported texture coordinate attribs.
2011-09-12 10:09:48 +02:00
Matteo Bruni
53bb382706
wined3d: Report more vertex texture formats.
2011-09-09 13:33:58 +02:00
Henri Verbeet
74b418c9e0
wined3d: Don't print the GLSL info log by default on fglrx.
2011-09-05 10:56:46 +02:00
Ričardas Barkauskas
9425e1be83
wined3d: Add support for Nvidia GT 555M.
2011-09-02 18:28:25 +02:00
Maxime Lombard
ef604e3826
wined3d: Add support for Nvidia GTX 460M.
2011-08-30 12:46:46 +02:00
Henri Verbeet
78cbe0bc74
wined3d: Rename WineD3DAdapterChangeGLRam() to adapter_adjust_memory().
...
And make it work on an adapter instead of a device.
2011-08-29 12:08:20 +02:00
Matteo Bruni
c74c544cc6
wined3d: Store maximum vertex attributes count.
2011-08-29 12:08:19 +02:00
Henri Verbeet
641f52ef96
wined3d: Add multisampling support.
2011-08-26 11:28:47 +02:00
Henri Verbeet
bd5f948682
wined3d: Get rid of the current multisampling support.
...
It doesn't really work, and trying to make multisampling work with onscreen
rendering is probably more trouble than it's worth, both for us and the
driver.
2011-08-26 11:28:25 +02:00
Henri Verbeet
4503f3d5af
wined3d: Pass a gl_info pointer to select_blit_implementation().
2011-08-25 11:31:54 +02:00
Henri Verbeet
9aa4f895f0
wined3d: Pass a gl_info pointer to select_shader_backend().
2011-08-25 11:31:54 +02:00
Henri Verbeet
86af42a46a
wined3d: Pass a gl_info pointer to select_fragment_implementation().
2011-08-25 11:31:54 +02:00
Henri Verbeet
f80301e3e6
wined3d: Make the gl_info parameter to wined3d_guess_gl_vendor() const.
2011-08-24 11:58:15 +02:00
Henri Verbeet
a88611210f
wined3d: Make the ctx parameter to WineD3D_ReleaseFakeGLContext() const.
2011-08-24 11:58:15 +02:00
Stefan Dösinger
2459d79b53
wined3d: Disable WINED3DFMT_S1_UINT_D15_UNORM and WINED3DFMT_S4X4_UINT_D24_UNORM.
2011-08-24 11:52:07 +02:00
William Pettersson
0e043819f4
wined3d: Add support for Nvidia GTX 550/560 Ti.
2011-08-05 16:43:24 +02:00
Henri Verbeet
812a314821
wined3d: Get rid of the fglrx point sprite hack.
...
Fglrx 9.3 is well over 2 years old at this point. I'd strongly encourage
anyone still affected by this to upgrade to the r300g driver.
2011-08-05 09:17:59 +02:00
Frédéric Delanoy
7e309601f3
dlls: Assorted spelling fixes.
2011-08-03 14:15:50 +02:00
Henri Verbeet
7bc0032878
wined3d: Recognize some more AMD cards.
2011-07-29 12:09:22 +02:00
Ričardas Barkauskas
6c5e109af7
wined3d: Introduce quirk for proper RGBA16 support.
2011-07-09 11:48:15 +02:00
Henri Verbeet
5d6f29818f
wined3d: Get rid of the GL_SupportedExt typedef.
2011-07-04 13:44:52 +02:00
Henri Verbeet
b1664a2c85
wined3d: Get rid of some IWineD3D* references.
2011-07-04 13:44:41 +02:00
Henri Verbeet
0c716b77e5
wined3d: Move some enums to directx.c.
2011-07-04 13:44:29 +02:00
Henri Verbeet
8f6ae4ba38
wined3d: Get rid of some macros.
2011-07-04 13:44:25 +02:00
Henri Verbeet
c461d312ba
wined3d: Request per-surface palettes in the client libs.
2011-06-24 08:49:48 -05:00
Henri Verbeet
b296f181dd
wined3d: Explicitly set surface alignment in the client libs.
...
Instead of using dxVersion.
2011-06-24 08:49:42 -05:00
Stefan Dösinger
7de2fa2670
wined3d: Add GL_ARB_draw_elements_base_vertex.
2011-06-14 13:43:56 +02:00
Stefan Dösinger
2e3cf68e0b
wined3d: Silence R16 and AL16 fourcc warnings.
2011-06-10 10:45:42 +02:00
Henri Verbeet
ee6d550b2e
wined3d: Rename IWineD3DImpl_FillGLCaps() to wined3d_adapter_init_gl_caps().
2011-06-10 10:44:20 +02:00
Henri Verbeet
da125e6bca
wined3d: cfg can never be NULL in wined3d_check_pixel_format_color().
2011-06-08 14:12:40 +02:00
Henri Verbeet
c24c2d1eac
wined3d: Rename IWineD3DImpl_IsPixelFormatCompatibleWithRenderFmt() to wined3d_check_pixel_format_color().
2011-06-08 14:12:40 +02:00
Henri Verbeet
be180bed7c
wined3d: cfg can never be NULL in wined3d_check_pixel_format_depth().
2011-06-07 14:18:34 +02:00
Henri Verbeet
fec6137de2
wined3d: Rename IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt to wined3d_check_pixel_format_depth().
2011-06-07 14:18:34 +02:00
Henri Verbeet
3032b40c80
wined3d: Get rid of the IWineD3DDeviceParent interface.
2011-05-19 10:06:21 +02:00
Henri Verbeet
0e0e5c3e38
wined3d: Get rid of the IWineD3DDevice typedefs.
2011-05-17 10:06:23 +02:00
Stefan Dösinger
20b147bfeb
wined3d: Consistently store format bitcounts in BYTEs.
2011-05-16 16:35:30 +02:00
Stefan Dösinger
682bae7c2b
wined3d: Make the glram parameter of WineD3DAdapterChangeGLRam signed.
2011-05-13 17:05:27 +02:00
Henri Verbeet
0cbdd10c58
wined3d: Get rid of the WineD3D_PixelFormat typedef.
2011-05-06 14:23:46 +02:00
Henri Verbeet
86b0c6bd7b
wined3d: Rename "shader_backend_t" to "wined3d_shader_backend_ops".
...
This makes it more consistent with the other call table names in wined3d.
2011-05-05 11:45:22 +02:00
Henri Verbeet
90da00927e
wined3d: Make "blit_operation" naming a bit more consistent.
2011-04-06 12:05:06 +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
Roderick Colenbrander
d003215ab4
wined3d: Add latest Nvidia GPUs.
2011-03-16 14:14:22 +01:00
Roderick Colenbrander
b1a97099e7
wined3d: Update Nvidia Geforce6+ driver version.
2011-03-16 14:14:22 +01:00
Henri Verbeet
a97c1ad15e
wined3d: Add support for EXT_texture_sRGB_decode.
2011-03-03 17:47:13 +01:00
Henri Verbeet
ff8c79e45b
wined3d: Recognize some Nouveau renderer strings.
2011-03-01 13:21:59 +01:00
Henri Verbeet
02fa8bf013
wined3d: Rename ATI to AMD.
2011-03-01 13:21:59 +01:00
Henri Verbeet
14050e125d
wined3d: Recognize some Northern Islands cards in select_card_ati_mesa().
2011-02-28 11:09:35 +01:00
Henri Verbeet
d9d2fe31e3
wined3d: Filter sRGB capabilities during format initialization.
2011-02-28 11:09:25 +01:00
Henri Verbeet
074977d404
wined3d: Get rid of the IWineD3D typedefs.
2011-02-02 12:22:53 +01:00
Henri Verbeet
36d4268e3c
wined3d: Remove COM from IWineD3D.
2011-02-02 12:22:42 +01:00
Henri Verbeet
ddb36691f6
wined3d: Pass a const adapter to the format caps checking functions.
2011-02-01 12:01:18 +01:00
Stefan Reimer
1c25577873
wined3d: Adding AMD HD5670, HD5570, HD5550, HD5450 detection.
2011-01-28 17:23:57 +01:00
Henri Verbeet
c964134a59
wined3d: Add support for the NULL format.
2011-01-27 14:13:55 +01:00
Stefan Dösinger
e98a0e5bb1
wined3d: Don't set cube and volume POW2 caps if np2 textures are supported.
2011-01-17 17:33:36 +01:00
Alexandre Julliard
8cbc6efdca
Revert "wined3d: Update detection of vertex blend capabilities."
...
This reverts commit f41fdb225c
.
It's wrong and was committed by mistake.
2011-01-03 19:32:48 +01:00
Jeremy Chin
f41fdb225c
wined3d: Update detection of vertex blend capabilities.
2011-01-03 11:54:05 +01:00
Andrew Nguyen
12880784fe
wined3d: Handle the swapchain presentation interval with wglSwapIntervalEXT.
2010-12-27 15:39:41 +01:00
Marcus Meissner
5d657bfdba
wined3d: Detect nouveau as NVIDIA.
2010-11-29 19:43:35 +01:00
Christian Inci
4229b1f3b6
wined3d: Add nVidia GT 320M to the table.
2010-11-26 14:58:39 +01:00
Austin English
90f428cd85
wined3d: Add detection for Nvidia GT 330.
2010-11-23 14:16:21 +01:00
Henri Verbeet
03f7a2d88e
wined3d: Get rid of the remaining "Flags".
2010-11-23 13:15:36 +01:00
Henri Verbeet
efb185dcd5
wined3d: Rename the wined3d_format "Flags" field to "flags".
2010-11-12 15:43:08 +01:00
Jaime Rave
6bf3f67c01
wined3d: Added Intel GM45 video card detection.
2010-11-11 13:08:25 +01:00
Henri Verbeet
4503d0cb4b
wined3d: Use a lookup table in select_card_ati_binary().
2010-11-10 12:18:54 +01:00
Henri Verbeet
3bb40b0776
wined3d: Use lookup tables in select_card_nvidia_binary().
2010-11-09 14:21:00 +01:00
Henri Verbeet
a9da30dc5f
wined3d: Use lookup tables in select_card_ati_mesa().
2010-11-09 14:20:51 +01:00
Henri Verbeet
bed0266a8c
wined3d: Recognize Evergreen in select_card_ati_mesa().
2010-11-09 14:20:42 +01:00
Henri Verbeet
50b76b76cb
wined3d: Test for "AMD" in the renderer string as well to detect AMD cards.
...
Specifically, the Gallium r600 driver reports "X.Org" for vendor and a string
of the form "Gallium 0.4 on AMD RV730" for the renderer.
2010-11-08 13:31:09 +01:00
Henri Verbeet
f0b0c1b1dd
wined3d: Add support for the INTZ format.
2010-11-05 17:15:36 +01:00
Francois Gouget
b990617a95
Assorted spelling fixes.
2010-11-02 13:16:57 +01:00
Lauri Kenttä
0d27b6ca70
wined3d: Add check for Intel GM965/GL960 with Mesa driver.
2010-09-22 19:56:52 +02:00
Alexandre Julliard
97c4ab23ab
wined3d: Reduce the size of a huge function that takes ages to compile.
2010-09-21 20:16:15 +02:00
Lauri Kenttä
602486bdb4
wined3d: Use the same card selection for both Intel Mesa and binary drivers.
2010-09-20 15:12:32 +02:00
Roderick Colenbrander
d73370313e
wined3d: Add Radeon HD3200 to gpu table.
2010-09-20 13:48:12 +02:00
Ričardas Barkauskas
dc1356484c
wined3d: Add NVDB support.
2010-09-16 10:12:33 -05:00
Henri Verbeet
b68d257710
wined3d: Get rid of redundant comparisons against NULL / 0.
2010-09-14 09:43:33 -05:00
Jesse Litton
ad917d366c
wined3d: Recognize GeForce GTX 465.
2010-09-14 09:43:15 -05:00
Roderick Colenbrander
4baf7a52f0
wined3d: Move video memory override to init_driver_info.
2010-09-13 13:28:28 -05:00
Roderick Colenbrander
192e0dc433
wined3d: Store amount of video memory in gpu_description_table.
2010-09-13 13:28:15 -05:00
Roderick Colenbrander
27fb5e2d74
wined3d: Add legacy ATI cards.
2010-09-13 13:27:21 -05:00
Mikko Rasa
b46183a2b4
wined3d: Recognize GeForce GTX 460.
2010-09-09 18:03:18 +02:00
Roderick Colenbrander
a352ad2097
wined3d: Add Intel gpu and driver information.
2010-09-09 13:20:37 +02:00
Roderick Colenbrander
d79bbdca51
wined3d: Add AMD NT6x drivers.
2010-09-09 13:20:36 +02:00
Roderick Colenbrander
ae5d8698f9
wined3d: Add Nvidia NT6x driver information.
2010-09-09 13:20:36 +02:00
Roderick Colenbrander
d7472026a0
wined3d: Return generic info for unhandled devices/drivers.
2010-09-08 13:26:04 +02:00
Henri Verbeet
8a8ad1ccd8
wined3d: Avoid a memcpy() in IWineD3DImpl_FillGLCaps().
...
And associated stack buffer.
2010-09-07 11:18:23 +02:00
Roderick Colenbrander
878dcc6d93
wined3d: Separate driver info from GPU info.
2010-09-06 20:30:25 +02:00
Henri Verbeet
6471004a8c
wined3d: Fix a silly typo.
2010-09-06 16:14:11 +02:00
Henri Verbeet
bc2db78c3a
wined3d: Explicitly document some more consequences of GL locking policy.
...
The basic rule is that you can't call anything that takes the user32 / gdi32
lock while under the GL (winex11) lock. As a consequence, you can't call
anything like context_acquire() or context_destroy() either.
2010-09-03 11:05:10 +02:00
Henri Verbeet
a8841eb1dd
wined3d: Avoid a forward declaration.
2010-09-02 11:51:12 +02:00
Octavian Voicu
f9cdd5097f
wined3d: Add missing ckey, fx, and pal directdraw caps.
2010-09-01 17:07:38 +02:00
Henri Verbeet
6c4c351791
wined3d: Don't require wined3d object parents to be COM objects.
2010-09-01 14:01:02 +02:00
Henri Verbeet
2ef400901d
wined3d: Devices don't need parents.
2010-09-01 12:40:07 +02:00
Henri Verbeet
3a7f08a56f
wined3d: Rename wined3d_format_desc to wined3d_format.
2010-08-31 14:23:47 +02:00
Henri Verbeet
29371bf964
wined3d: Recognize some more Radeon cards.
2010-08-31 14:23:46 +02:00
Henri Verbeet
b233e7b301
wined3d: Rename the "format" field in wined3d_format_desc to "id".
2010-08-26 12:41:44 +02:00
Henri Verbeet
cc5271d1b7
wined3d: Rename WINED3DFORMAT to wined3d_format_id.
2010-08-24 12:25:01 +02:00
Stefan Dösinger
723d87c280
wined3d: Make glClearColor parameters floats.
2010-07-30 11:41:44 +02:00
Henri Verbeet
a99bf6c017
wined3d: Add support for ARB_texture_compression_rgtc.
2010-07-30 11:36:03 +02:00
Luke Bratch
c63c568731
wined3d: Add Nvidia 8800GTX detection.
2010-07-21 13:23:59 +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
Seth Shelnutt
b5a5db910f
wined3d: Nvidia Geforce 8400 and 8500 are now reported as 8400GS instead of 8300GS.
2010-07-19 14:38:16 +02:00
Roderick Colenbrander
eb0a032a8c
wined3d: Add NPOT quirk for GeforceFX 5200.
2010-06-18 11:19:03 +02:00
Henri Verbeet
b1abafcf8d
wined3d: Also flip the point sprite coordinate origin when rendering offscreen.
2010-06-11 16:22:25 +02:00
Wolfram Sang
ddd1c72574
wined3d: Clarify some comments about Intel cards.
2010-06-01 13:37:18 +02:00
Roderick Colenbrander
39eaaeaa27
wined3d: Add support for mobile Geforce 3xx GPUs.
2010-05-27 14:46:43 +02:00
Roderick Colenbrander
c44603a559
wined3d: Mark Geforce GT 140 as a Geforce 9600GT.
2010-05-27 14:46:43 +02:00
Roderick Colenbrander
036295c37a
wined3d: Add Geforce 2xx lowend models.
2010-05-27 14:46:43 +02:00
Roderick Colenbrander
c471724a2a
wined3d: Add Geforce 4x0 cards to GPU database.
2010-05-27 14:46:43 +02:00
Roderick Colenbrander
3e10c3d547
wined3d: Update Nvidia Geforce6+ driver version to latest 197.45 WHQL version.
2010-05-27 14:46:43 +02:00
Henri Verbeet
e8ac9bbd7f
wined3d: Get rid of GLINFO_LOCATION.
2010-05-25 13:29:00 +02:00
Michael Stefaniuc
6d89364ad1
wined3d: Avoid using the long type.
2010-05-21 18:58:04 +02:00
Julius Schwartzenberg
ba11b695e6
wined3d: Cope with the new Intel renderer string.
2010-05-18 08:47:57 +02:00
Henri Verbeet
79145e215b
wined3d: Add support for shadow samplers.
2010-05-17 13:19:53 +02:00
Henri Verbeet
29b13f75cc
wined3d: Add support for ARB_shadow.
2010-05-17 13:19:49 +02:00
Roderick Colenbrander
e91f4ae776
wined3d: Make sure wglFlush is not between ENTER_GL/LEAVE_GL.
2010-05-14 18:03:02 +02:00
Henri Verbeet
6478e41b97
wined3d: Remove the unused device type parameter to some format capability checking functions.
2010-05-06 14:17:46 +02:00
Henri Verbeet
6d68701fb3
wined3d: Reorganize IWineD3DImpl_CheckDeviceFormat() a bit.
2010-05-06 14:17:39 +02:00
Henri Verbeet
0122cee51f
wined3d: Make sure all fields of the shader backend caps are always initialized.
2010-05-03 13:50:57 +02:00
Henri Verbeet
c9e7561b34
wined3d: Remove some unused fields from the shader backend caps.
2010-05-03 13:50:51 +02:00
Henri Verbeet
d5b68e7640
wined3d: Make sure all fields of the fragment pipe caps are always initialized.
2010-05-03 13:50:45 +02:00
Henri Verbeet
c1ea8fb6c7
wined3d: Store the VTF format capability in the format table.
2010-04-29 10:19:39 -05:00
Henri Verbeet
be7b01589f
wined3d: Store the sRGB write format capability in the format table.
2010-04-29 10:19:39 -05:00
Henri Verbeet
c041781255
wined3d: Store the sRGB read format capability in the format table.
2010-04-29 10:19:39 -05:00
Henri Verbeet
163940540d
wined3d: Store the bumpmap format capability in the format table.
2010-04-29 10:19:39 -05:00
Henri Verbeet
dc67164d0d
wined3d: Fix some more misspellings of "device".
2010-04-21 11:57:32 +02:00
Roderick Colenbrander
3b993117c3
wined3d: Separate AMD GPUs in D3D9 and D3D10 models, this allows for a more correct fall back when the GPU table isn't up to date.
...
D3D10_CAPABLE should work on any AMD OpenGL 3.0 driver (those came out in september 2008) and on OSX 10.5 and up.
2010-04-16 12:38:21 +02:00
Roderick Colenbrander
057c64c5b0
wined3d: Separate AMD Radeon HD2300 from other HD2xxx/HD3xxx GPUs since it is D3D9 instead of D3D10.
2010-04-16 12:38:18 +02:00
Roderick Colenbrander
bf73d23d95
wined3d: Separate detection of D3D10+ and D3D9 Nvidia GPUs.
2010-04-14 18:00:47 +02:00
Henri Verbeet
71d484303a
wined3d: We always support at least a single modelview matrix.
2010-04-13 21:13:50 +02:00
Roderick Colenbrander
e7a71e15b5
wined3d: Turn blit_shader color_fixup_supported into blit_supported.
2010-04-07 18:13:35 +02:00
Roderick Colenbrander
9fec1a02b9
wined3d: Disable paletted texture support. It was only offered on a few cards, so can be missed.
2010-04-06 13:54:06 +02:00
Henri Verbeet
2381c9529d
wined3d: Don't use GLSL if the supported version isn't at least 1.20.
2010-04-06 11:48:47 +02:00
Henri Verbeet
ca1b35aaff
wined3d: Rename some GL vendors.
...
GL_VENDOR_ATI -> GL_VENDOR_FGLRX because it's much more specific. Besides, AMD
also works on the Mesa drivers.
2010-04-05 11:37:45 +02:00
Henri Verbeet
b8211a67d4
wined3d: Rename HW_VENDOR_WINE to HW_VENDOR_SOFTWARE.
...
Software adapters like the refrast also return a 0 PCI ID on Windows.
2010-04-05 11:37:39 +02:00
Henri Verbeet
224c376528
wined3d: Make some functions static.
2010-04-05 11:37:34 +02:00
Henri Verbeet
5ce986f1de
wined3d: Add a separate function for wined3d object initialization.
2010-04-05 11:37:24 +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
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
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
Roderick Colenbrander
8f604afa96
wined3d: Remove WGL RGBA float support because it doesn't make sense without pbuffers.
2010-03-22 11:41:03 +01:00
Roderick Colenbrander
28a2c7ab29
wined3d: Use the format table instead of WGL-checks in CheckDepthStencilMatch when FBOs are used.
2010-03-22 11:40:52 +01:00
Henri Verbeet
3aaa6ee6e7
wined3d: Rename GlPixelFormatDesc to wined3d_format_desc.
2010-03-19 14:31:47 +01:00
Roderick Colenbrander
27a96e477a
wined3d: Start moving paletted texture support to the blit_shader.
2010-03-19 13:15:21 +01:00
Henri Verbeet
e5673ddbc3
wined3d: Add a quirk to rebind FBOs when one of their attached textures is updated.
...
Updating a texture while it is attached to the currently bound FBO is
something GL implementations tend to get wrong. NVIDIA fails at
glTexSubImage2D(), fglrx and Mesa with glTexImage2D(). I'm afraid to try what
happens on OS X. Fortunately we never use glTexImage2D() while a texture is
attached to an FBO, so we only need to care about glTexSubImage2D().
2010-03-18 10:24:41 +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
Paul Andrew Panon
482fbe91e2
wined3d: Update to add Mesa ATI card detection code.
2010-03-05 12:46:46 +01:00
Kusanagi Kouichi
f4bce098ea
wined3d: Fix a failure of card vendor detection.
2010-03-05 12:39:30 +01:00
Paul Andrew Panon
74a059d21b
wined3d: Add Mesa ATI card detection code.
2010-03-03 16:13:23 +01:00
Paul Andrew Panon
85b07b9d38
wined3d: Add a card detection table and refactor wined3d_guess_card.
2010-03-03 16:13:09 +01:00
Paul Andrew Panon
1735b4ee92
wined3d: Adjust the quirks to use the new GL_VENDOR codes.
2010-03-03 16:06:40 +01:00
Paul Andrew Panon
7a9734dc68
wined3d: Add a real GL vendor detection.
2010-03-03 16:06:28 +01:00
Paul Andrew Panon
31573b21b9
wined3d: Rename GL_VENDOR to HW_VENDOR.
2010-03-03 16:06:07 +01:00
Roderick Colenbrander
ccea415c77
wined3d: Fix multisampling on cards without 32-bit RGB fbconfigs.
2010-03-02 11:11:49 +01:00
Henri Verbeet
1a880cb1f9
wined3d: Remove some unused extensions.
2010-02-16 10:47:40 +01:00
Henri Verbeet
4c7bcb883b
wined3d: Set the texture stage limit based on the fragment pipe caps.
2010-02-05 10:06:08 +01:00
Henri Verbeet
b59dd0e4e8
wined3d: Add the general combiner limit to wined3d_gl_info.
2010-02-05 10:06:03 +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
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
Stefan Dösinger
f6bb86e196
wined3d: Add GL_ARB_map_buffer_range.
2010-02-02 14:09:04 +01:00
Luca Bennati
9f3c90973f
wined3d: Add newer ATI/AMD cards vendor recognition.
2010-02-01 12:46:23 +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
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
Gerald Pfeifer
0cf44ae02e
wined3d: Introduce WINED3DFMT_INST and use it in CheckTextureCapability().
2010-01-04 11:49:58 +01:00
Henri Verbeet
f50b4c7d71
wined3d: Move "wrap_lookup" to struct wined3d_gl_info.
2010-01-04 11:41:28 +01:00
William Waghorn
0c582dca3a
wined3d: Added NVidia GT240 detection.
2010-01-04 11:41:27 +01:00
Aaron Brazener
11754a645b
wined3d: Added further Nvidia Geforce 8xxx detection.
2009-12-31 12:12:18 +01:00
Aaron Brazener
381fa8931f
wined3d: Added ATI Radeon HD 5xxx detection.
2009-12-29 11:05:39 +01:00
Henri Verbeet
f30999f193
wined3d: Recognize "VMware, Inc." as VENDOR_MESA.
2009-12-28 12:27:13 +01:00
Henri Verbeet
ea0af93c19
wined3d: Get rid of some redundant local variables.
...
E.g. "This" variables that are only used in traces.
2009-12-22 13:48:25 +01:00
Henri Verbeet
b85a070598
wined3d: Support more formats for display mode enumeration.
...
ddraw/d3d8/d3d9 only support a limited number of formats, but those already
limit the supported formats themselves.
2009-12-10 11:54:55 +01:00
Henri Verbeet
aed85222b5
wined3d: Rename the wined3d_adapter "num" field to "ordinal".
...
This makes it consistent with dxgi_adapter.
2009-12-08 12:33:17 +01:00
Henri Verbeet
0491fcce30
dxgi: Implement IDXGIAdapter::GetDesc().
2009-12-04 14:34:59 +01:00
Henri Verbeet
ed73f0a1b0
d3d9: Implement IDirect3D9Ex::GetAdapterLUID().
2009-12-02 13:06:08 +01:00
Henri Verbeet
135e6cea7b
wined3d: Add a separate function for device initialization.
2009-11-18 11:16:49 +01:00
Henri Verbeet
e4d8a3f309
wined3d: Move the various backend selection utility functions to utils.c.
2009-11-18 11:16:43 +01:00
Henri Verbeet
5487009624
wined3d: Report a driver version appropriate for the reported OS.
2009-11-12 13:14:39 +01:00
Henri Verbeet
bf10dbe8a6
wined3d: Map D3DFMT_D24S8 to WINED3DFMT_D24_UNORM_S8_UINT.
...
The internal order of the depth and stencil bits is unspecified since the
format isn't lockable.
2009-10-30 11:28:52 +01:00
Henri Verbeet
111307dfba
wined3d: Get rid of the GL_SUPPORT macro.
2009-10-29 13:09:33 +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
30d2660d99
wined3d: Restore the thread's previous GL context in WineD3D_ReleaseFakeGLContext().
2009-10-27 10:55:35 +01:00
Henri Verbeet
13c4fe72ad
wined3d: Set a driver name appropriate for the vendor in init_driver_info().
2009-10-27 10:55:09 +01:00
Henri Verbeet
26ba212407
wined3d: Apply PCI ID overrides in init_driver_info() instead of IWineD3DImpl_GetAdapterIdentifier().
2009-10-27 10:54:57 +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
Stefan Dösinger
f9c4d442a9
wined3d: Get rid of the general shader constant limit.
2009-10-26 11:41:51 +01:00
Henri Verbeet
5fbe5ee027
wined3d: Add a separate structure for driver info.
2009-10-26 11:20:33 +01:00
Henri Verbeet
342a71b281
wined3d: Replace the "stateLookup" tables with a single "wrap_lookup" table.
2009-10-23 12:03:15 +02:00
Henri Verbeet
6be41fd59a
wined3d: Get rid of GL_LIMITS.
2009-10-22 10:46:05 +02:00
Henri Verbeet
42eb516d96
wined3d: Free the adapter's format info in IWineD3DImpl_Release() (Valgrind).
2009-10-21 16:05:57 +02:00
Henri Verbeet
f2aaca2f67
wined3d: Rename WineD3DAdapter to wined3d_adapter.
2009-10-21 16:05:57 +02:00
Stefan Dösinger
2d802af4d9
wined3d: Make shader specific constants accessible via GL_LIMITS.
2009-10-20 14:46:08 +02:00
Henri Verbeet
2be38232ea
wined3d: Remove some unused code.
2009-10-06 12:02:59 +02:00
Stefan Dösinger
c749debec6
wined3d: Fix an error string.
2009-10-01 12:10:35 +02:00
Stefan Dösinger
404aecb8da
wined3d: Test if result.clip[] works correctly.
...
The Mac Nvidia driver doesn't implement the result.clip part of
GL_NV_vertex_program2_option correctly. It complains about a syntax
error if "result.clip[0]" is used. "result.clip" compiles correctly, but
supports only one clipplane, and running the shader results in severe
rendering bugs.
2009-09-28 17:33:07 +02:00
Stefan Dösinger
77a83aee79
wined3d: Don't use GL_NV_texture_shader on OSX.
2009-09-28 17:32:54 +02:00
Henri Verbeet
47c84f4f7f
wined3d: Use the DXGI naming convention for all formats.
2009-09-25 15:15:44 +02:00
Austin English
5d15da6df5
wined3d: Recognize DRI R300 drivers as Mesa.
2009-09-25 13:15:48 +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
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
4aaf47f277
wined3d: Get rid of the unused DeviceType parameter to select_shader_mode().
2009-09-17 10:09:57 -05:00
Henri Verbeet
a5214c306f
wined3d: Don't free D3D surfaces until the wined3d surface is destroyed.
...
This prevents for example a d3d9 depth stencil from being destroyed when it
has no external references but is still in use by the device/stateblock. A
nice side effect is that it simplifies handling of "implicit" surfaces like
the frontbuffer and backbuffers, as well as the forwarding of reference counts
for surfaces that are part of a texture.
2009-09-16 13:04:32 -05:00
Henri Verbeet
9880cd7504
wined3d: Make some variables static.
2009-09-15 14:32:36 -05:00
Jaime Rave
4700038fdf
wined3d: Fix vendor detection when using an Intel X4500HD.
2009-09-09 12:07:31 +02:00
Henri Verbeet
c951f6925c
wined3d: Release the GL lock on IWineD3DImpl_FillGLCaps() error paths.
2009-09-02 11:25:57 +02:00
Henri Verbeet
078273afa6
wined3d: Add support for ARB_depth_clamp.
2009-09-01 14:05:45 +02:00
Stefan Dösinger
531ec2267b
wined3d: Allow filtering on RECT textures.
...
There is no reason to disable linear filtering, we just cannot use mipmapping.
2009-08-31 12:18:01 +02:00
Stefan Dösinger
52d2865521
wined3d: Remove redundant TRACEs.
...
These made sense before we had the quirk table. Nowadys the quirk
table contains quirk description strings that print out whether or not
any apple specific quirks are applied. The traces in match_apple just
spam the log because this code is run multiple times for many quirks.
2009-08-31 12:17:41 +02:00
Henri Verbeet
560d63548d
wined3d: Remove trailing spaces.
2009-08-27 11:45:37 +02:00
Jörg Höhle
b9d955b86d
wined3d: Delete meaningless UNIX GL driver version parsing.
2009-08-27 11:00:59 +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
Stefan Dösinger
21f4e42a98
wined3d: Don't use WINED3DADAPTER_DEFAULT as refresh rate.
2009-08-26 14:35:33 +02:00
Stefan Dösinger
3f6909c1f2
wined3d: Initialize ps_arb_max_local_constants.
2009-08-26 14:35:27 +02:00
Henri Verbeet
c70f3816ab
wined3d: Hide WINED3DFMT_R16G16B16A16_UNORM again.
...
This format is broken on some cards. Hide it until we figure out a reliable
way to deal with it.
2009-08-19 14:45:39 +02:00
Henri Verbeet
779ad6b9f1
wined3d: Add a separate function for guessing the card.
2009-08-14 13:59:08 +02:00
Henri Verbeet
93218c6602
wined3d: Add a separate function for guessing the driver version.
...
Note that I don't necessarily think the ATI path for example will work
correctly. This patch is just for moving it out of IWineD3DImpl_FillGLCaps().
2009-08-14 13:59:08 +02:00
Henri Verbeet
b94e89dae9
wined3d: Add a separate function for parsing the GL version.
2009-08-14 13:59:08 +02:00
Henri Verbeet
a1402e0677
wined3d: Add a separate function for guessing the vendor.
2009-08-14 13:59:08 +02:00
Henri Verbeet
c573d0a4c9
wined3d: Escape GL strings with debugstr_a() in IWineD3DImpl_FillGLCaps().
2009-08-14 13:59:08 +02:00
Henri Verbeet
914a21740c
wined3d: Recognize GL_VENDOR "Tungsten Graphics, Inc." as VENDOR_MESA.
2009-08-13 11:45:42 +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
42c2d06bc0
wined3d: Don't make wgl calls from under the GL lock.
2009-08-13 11:45:17 +02:00
Henri Verbeet
ac64bf6406
wined3d: Detect EXT_provoking_vertex.
2009-08-10 13:52:43 +02:00
Stefan Dösinger
6f5a1d9a15
wined3d: Filter WINED3DSTENCILCAPS_TWOSIDED in d3d8.
2009-08-07 14:56:48 +02:00
Stefan Dösinger
296573caae
d3d: Filter R8G8B8 in d3d8 and d3d9.
2009-08-07 14:56:40 +02:00
Henri Verbeet
b04e992a65
wined3d: Set the WINED3DTEXF_NONE entry in the minification lookup table to GL_NEAREST.
...
Although WINED3DTEXF_NONE is not a valid minification filter, having it in the
tables simplifies the lookup. GL_NEAREST is more appropriate than GL_LINEAR
though.
2009-08-06 17:26:29 +02:00
Henri Verbeet
9e8f7898c9
wined3d: Get rid of the ANISOTROPIC entry from the filter lookup tables.
...
Anisotropy and texture filters are orthogonal in GL. In D3D
D3DTEXF_ANISOTROPIC just selects the best (linear) filter type and enables
anisotropy.
2009-08-05 11:20:36 +02:00
Stefan Dösinger
2858f67a2a
wined3d: Enable WINED3DFMT_R16G16B16A16_UNORM.
2009-08-05 11:19:46 +02:00
Stefan Dösinger
f53451ddac
wined3d: Only use WINE_normalized_texrect if ARB_texture_np2 is supported.
2009-08-05 11:19:26 +02:00
Henri Verbeet
d4159adbc8
wined3d: Statically initialize the filter lookup tables.
...
Also add some comments.
2009-08-04 13:04:23 +02:00
Henri Verbeet
b30a31e09a
wined3d: Set a more appropriate value for the ANISOTROPIC/NONE min/mip filter.
2009-08-04 13:04:11 +02:00
Henri Verbeet
25fe98e02b
wined3d: Don't disable mipmapping if we lack EXT_texture_filter_anisotropic.
...
These don't have a whole lot to do with each other.
2009-08-04 13:04:05 +02:00
Henri Verbeet
1d647283d5
wined3d: Don't use the GL texture flags to determine if a format is a depth stencil in CheckDepthStencilCapability().
...
The OpenGL implementation might not support ARB_depth_texture, but that
doesn't mean we can't use the format for the depth buffer.
2009-08-03 15:01:34 +02:00
Henri Verbeet
9253bbcb05
wined3d: Get rid of last_device.
2009-07-23 11:22:13 +02:00
Henri Verbeet
1a43030664
wined3d: Keep track of a thread's wined3d context.
2009-07-22 14:42:50 +02:00
Henri Verbeet
43e6686a78
wined3d: Rename _WineD3D_GL_Info to struct wined3d_gl_info.
2009-07-17 11:22:07 +02:00
Henri Verbeet
ae8e8ac73f
wined3d: Check the return values for some wgl calls.
2009-07-15 13:24:24 +02:00
Stefan Dösinger
8a6553da14
wined3d: Only use 4 component specular colors if GL allows it.
2009-07-10 13:07:33 +02:00
Stefan Dösinger
c0e5c8f481
wined3d: Update Nvidia driver versions.
2009-07-09 12:47:39 +02:00
Stefan Dösinger
cfd0652980
wined3d: Add Intel GMA X3100 to our card DB.
2009-07-09 12:47:33 +02:00
Erik Inge Bolsø
48995f3354
wined3d: Fix Nvidia GTX series misdetection.
2009-07-08 20:13:25 +02:00
Henri Verbeet
699f68cdee
wined3d: Get rid of some pointers in WINED3DADAPTER_IDENTIFIER.
...
This also avoids some unchecked strcpy() calls.
2009-07-07 11:50:30 +02:00
Henri Verbeet
32fd8f2130
wined3d: checkGLcall() doesn't need a \n.
2009-07-07 11:50:22 +02:00
Henri Verbeet
2ac34bf231
wined3d: Add some missing float suffixes.
...
The compiler should be smart enough to fix most of these, but it looks sloppy.
2009-07-07 11:50:05 +02:00
Henri Verbeet
7ec911adeb
wined3d: Avoid an unnecessary strcpy().
2009-07-07 11:49:54 +02:00
Henri Verbeet
c9257aed85
wined3d: Avoid a forward declaration.
2009-07-06 14:35:27 +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
Henri Verbeet
966f8f452d
winedd3d: Get rid of a useless trace.
...
gl_card isn't initialized yet here, and GL_RENDERER is already printed
earlier.
2009-07-06 14:35:27 +02:00
Henri Verbeet
ad0ef46a39
wined3d: Get rid of the redundant "return_value" variable.
2009-07-06 14:35:27 +02:00
Henri Verbeet
17688365ed
wined3d: Don't accept NULL as a valid result from glGetString().
2009-07-03 13:05:52 +02:00
Henri Verbeet
23ce9d72b8
wined3d: Get rid of wined3d_fake_gl_context_cs.
2009-07-03 13:05:52 +02:00
Henri Verbeet
4cacf2e08f
wined3d: Use a proper structure for storing initial GL context information.
2009-07-03 13:05:51 +02:00
Henri Verbeet
db6ea72201
wined3d: Get rid of the silly refcount for the "fake" GL context.
2009-07-02 12:01:02 +02:00
Henri Verbeet
b5da7f49d3
wined3d: Don't reuse random GL contexts during initialization.
...
Obviously there's no guarantee about the state of such a context. The specific
problem is that it might have GL_UNPACK_CLIENT_STORAGE_APPLE enabled, causing
some glTexImage2D() calls to fail, but it's a bad idea in general.
2009-07-02 12:00:50 +02:00
Henri Verbeet
50e9ad66e2
wined3d: Clear the last device in WineD3D_CreateFakeGLContext().
2009-07-02 12:00:44 +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
Henri Verbeet
f57967c983
wined3d: Always check the result of wglMakeCurrent().
2009-06-29 12:30:28 +02:00
Henri Verbeet
7363b6e2e3
wined3d: Document GL context dependencies.
2009-06-26 12:05:07 +02:00
Henri Verbeet
404f4f7321
wined3d: Get rid of some asserts.
2009-06-22 12:59:16 +02:00