Commit Graph

6417 Commits

Author SHA1 Message Date
Stefan Dösinger 39212d2ffb wined3d: Remove broken gdi palette code. 2014-05-02 16:32:54 +02:00
Henri Verbeet 0eebe0515f wined3d: Fix a couple of string declarations. 2014-05-02 13:45:10 +02:00
Henri Verbeet 14e3f71c75 wined3d: Bump ps_1x_max_value.
Shader model 4 hardware should generally have real floats for everything, and
FLT_MAX matches the value from the Windows drivers for that kind of hardware.
OpenGL requires at least 2^10 for colors, and 2^32 for other floats.
2014-05-02 13:45:04 +02:00
André Hentschel 84c63435b4 wined3d: Add NVIDIA Geforce GTX 780 Ti to supported device list. 2014-04-23 17:31:17 +02:00
Henri Verbeet 5cf9fe1c63 wined3d: Get rid of surface_set_texture_target(). 2014-04-23 15:00:46 +02:00
Henri Verbeet 23eed88fde wined3d: Implement support for per-stage texture stage constants.
This patch is loosely based on an earlier patch by Christian Costa.
2014-04-23 15:00:43 +02:00
Henri Verbeet ac70dd2c97 ddraw: Validate the pitch for user memory surfaces against the unaligned minimum pitch.
User memory surfaces have a different minimum alignment from regular surfaces.
This fixes a regression introduced by commit
9c138d772c.
2014-04-23 15:00:35 +02:00
Henri Verbeet 81fb749ecf wined3d: Introduce a separate function to calculate the pitch for a given format and width. 2014-04-23 15:00:14 +02:00
Henri Verbeet a1c63c2781 wined3d: Simplify the driver version info lookup in init_driver_info(). 2014-04-23 15:00:02 +02:00
Henri Verbeet 36d8d6bf8e wined3d: Ignore invalid PCI vendor/device overrides. 2014-04-22 11:26:31 +02:00
Andrew Sheldon 5ef54904f2 wined3d: Add NVIDIA Geforce GTX 780 to supported device list. 2014-04-21 17:08:04 +02:00
Matteo Bruni a1784d9ed9 wined3d: Add support for timestamp queries. 2014-04-17 13:53:00 +02:00
Matteo Bruni 4811a839cf wined3d: Add support for GL_ARB_timer_query extension. 2014-04-17 13:52:53 +02:00
Henri Verbeet 5b8d3a0c70 wined3d: Set the WINED3DPBLENDCAPS_SRCALPHASAT destination blend cap when ARB_blend_func_extended is supported. 2014-04-15 21:03:54 +02:00
Henri Verbeet 7f2ae9889d wined3d: Set VTF filter caps when VTF is supported. 2014-04-15 21:03:54 +02:00
Ryan Turner a69c488f08 wined3d: Add NVIDIA Geforce GTX 750 to device list. 2014-04-11 17:04:06 +02:00
Ryan Turner ed51082dd6 wined3d: Add NVIDIA Geforce GTX 760 to device list. 2014-04-09 19:17:21 +02:00
Stefan Dösinger 62f7ba2555 wined3d: Raise MaxPrimitiveCount and MaxVertexIndex. 2014-03-31 17:27:21 +02:00
Stefan Dösinger f3488d0fea wined3d: Translate shader model 2.0+ EXPP to EX2. 2014-03-27 18:57:50 +01:00
Stefan Dösinger 9ccaacf60d wined3d: Translate LOGP to LG2 in the ARB shader backend. 2014-03-27 18:57:46 +01:00
Stefan Dösinger c2541a5887 wined3d: Handle RCP in shader_hw_scalar_op. 2014-03-27 18:57:40 +01:00
Stefan Dösinger 5114507f19 wined3d: Handle LOG and LOGP in shader_hw_scalar_op. 2014-03-27 18:57:37 +01:00
Stefan Dösinger f20173e51b wined3d: Select the component by editing the swizzle. 2014-03-27 18:57:33 +01:00
Stefan Dösinger ebd5f96aea wined3d: Remove resource private data methods. 2014-03-24 20:20:18 +01:00
Ken Thomases f3aa481238 wined3d: Track if a context's private hdc has had its pixel format set, so we don't need to check it. 2014-03-24 20:20:14 +01:00
Ken Thomases 272873823e wined3d: Track if a context's hdc is private so we never need to restore its pixel format.
This currently only applies to the swapchain backup DC, but it will soon be
used for surfaces created using the WGL_WINE_surface extension.  Also, there
are a couple of cases where ddraw creates private windows and passes them in.
It could be extended to those.
2014-03-24 20:20:13 +01:00
Ken Thomases 57c51710e0 wined3d: When restoring pixel format in context_release(), mark the context as needing to be set on the next context_acquire().
If we had to restore the pixel format then we know it won't be what we need
when the app calls into wined3d again.  This helps avoid the GetPixelFormat()
in context_acquire().
2014-03-24 20:20:12 +01:00
Ken Thomases ffb357b717 wined3d: Don't call GetPixelFormat() to set a flag that's already set. 2014-03-24 20:20:12 +01:00
Ken Thomases 90d7f3e03f wined3d: Simplify the error path of context_update_window(). 2014-03-24 20:20:11 +01:00
Ken Thomases 03ca2b2932 wined3d: Don't leak the HDC of an invalid context in context_update_window().
If context_set_gl_context() fails, it marks the context as invalid.  It still
has an HDC, though, and context_update_window() would lose the reference to
it.
2014-03-24 20:20:10 +01:00
Stefan Dösinger 938529e1f9 wined3d: Remove the version parameter. 2014-03-20 19:04:37 +01:00
Stefan Dösinger 7d793715f3 ddraw: Use the new private store api. 2014-03-17 20:23:58 +01:00
Stefan Dösinger 6a34d4b40f wined3d: Decouple private data from the resource structure. 2014-03-14 18:54:48 +01:00
Henri Verbeet 64dd435e2a wined3d: Only use a single allocation for each struct private_data. 2014-03-13 20:22:01 +01:00
Stefan Dösinger 3754cdd793 wined3d: Correctly handle the size parameter in get_private_data. 2014-03-12 19:01:07 +01:00
Henri Verbeet a05dcd911e wined3d: Handle shader_arb_free_context_data() during context creation. 2014-03-11 19:39:38 +01:00
Stefan Dösinger ab6368b6e8 wined3d: Don't modify existing data if set_private_data fails. 2014-03-11 19:39:30 +01:00
Henri Verbeet ae63dee517 wined3d: Get rid of GL_VENDOR_INTEL. 2014-03-06 12:01:27 +01:00
Matteo Bruni 9c5c3a81ce wined3d: Free CS data on CS destruction. 2014-03-05 19:18:26 +01:00
Henri Verbeet 720f686874 wined3d: Recognize VMware SVGA3D.
Unfortunately I was only able to test this by overriding the GL_RENDERER and
GL_VENDOR strings returned by the driver.
2014-03-05 11:49:53 +01:00
Henri Verbeet c1032e977b wined3d: Filter redundant WINED3D_MAP_DISCARD buffer maps. 2014-03-04 11:50:54 +01:00
Stefan Dösinger dfbff712f4 wined3d: surface_load_ds_location can handle WINED3D_LOCATION_DISCARDED. 2014-03-03 17:46:46 +01:00
Henri Verbeet b40eda767b wined3d: Also trace "mem" and "pitch" in wined3d_surface_update_desc(). 2014-03-03 17:02:25 +01:00
Ken Thomases 4c4552c5a1 wined3d: Restore the pixel format of the window whose pixel format was actually changed. 2014-02-22 08:41:55 -06:00
Ken Thomases b8569d2f30 wined3d: Make context_update_window() just mark the GL context as needing to be set rather than setting it. 2014-02-22 08:41:51 -06:00
Ken Thomases baa85a097a wined3d: Use a separate flag to track if the GL context needs to be made current.
The new needs_set flag can be cleared after it's been heeded whereas restore_ctx
must not be cleared until the context has been released back to level 0.
2014-02-22 08:41:47 -06:00
Ken Thomases 2d1e67ee68 wined3d: Remove redundant call to context_set_pixel_format() from context_update_window().
It calls context_set_gl_context() just after and that starts with a call to
context_set_pixel_format().  Also, context_update_window() didn't do the
right thing (fall back to swapchain backup DC) if context_set_pixel_format()
fails.
2014-02-22 08:41:42 -06:00
Ken Thomases 088dd7289c wined3d: Call context_enter() before context_update_window() so it records the proper restore state. 2014-02-22 08:41:38 -06:00
Martin Storsjo 1275525789 wined3d: Use an rbtree for storing shaders for texture format conversion/blitting. 2014-02-17 20:16:30 +01:00
Martin Storsjo 171529106b wined3d: Add support for NV12 textures. 2014-02-17 20:16:29 +01:00