Commit Graph

6438 Commits

Author SHA1 Message Date
Henri Verbeet 09fda3b805 d3d9: Improve d3d9_device_TestCooperativeLevel(). 2014-06-27 10:37:36 +02:00
Matteo Bruni b42fe709d6 wined3d: Validate and handle query size parameter. 2014-06-16 13:56:35 +02:00
Henri Verbeet fa312a32b2 wined3d: Add format information for WINED3DFMT_R8_UNORM. 2014-06-13 10:11:59 +02:00
Stefan Dösinger 3909215773 wined3d: Remove d3dfmt_p8_init_palette. 2014-06-11 16:14:38 +02:00
Andrei Slăvoiu fbdf618251 wined3d: Recognize cards that expose GLSL 1.30 as DX10 capable even if they don't support EXT_GPU_SHADER4. 2014-06-11 12:58:55 +02:00
Henri Verbeet 7b8aa8606c wined3d: Recognize the SM4 ishl opcode. 2014-05-20 09:44:25 +02:00
Henri Verbeet 3555eab8b9 wined3d: Recognize the SM4 dp2 opcode. 2014-05-20 09:44:21 +02:00
Henri Verbeet c81d3b7336 wined3d: Recognize the SM4 discard opcode. 2014-05-20 09:44:17 +02:00
Henri Verbeet 0fe183c299 wined3d: Increase the SM4 instruction length mask size. 2014-05-19 09:55:25 +02:00
Stefan Dösinger bdc396e4f5 wined3d: Fix indentation in d3dfmt_p8_init_palette. 2014-05-15 19:05:03 +02:00
Stefan Dösinger fd0189bbfa wined3d: Move get_dc palette updates to ddraw. 2014-05-15 19:05:02 +02:00
Stefan Dösinger 544816797a wined3d: Don't update the color table on palette changes. 2014-05-14 13:30:33 +02:00
Stefan Dösinger 3cd83f4d56 wined3d: Use GL_ALPHA8 for WINED3DFMT_P8_UINT surfaces. 2014-05-14 13:30:19 +02:00
Stefan Dösinger 7b049245f5 wined3d: Always provide P8 GL texture information. 2014-05-14 13:30:08 +02:00
Stefan Dösinger bfb5be0f4b wined3d: Remove WINED3D_CT_PALETTED_CK.
There's no difference between WINED3D_CT_PALETTED_CK and
WINED3D_CT_PALETTED with the palette index in the alpha channel.
2014-05-14 13:29:58 +02:00
Stefan Dösinger c1cca63e5d wined3d: Always store the palette index in the alpha component. 2014-05-14 13:29:52 +02:00
Stefan Dösinger fc25510fad wined3d: Remove wined3d_surface_get_palette. 2014-05-12 21:24:59 +02:00
Stefan Dösinger 46df06aae7 wined3d: Implement DDBLTFX_MIRRORUPDOWN for DXT2. 2014-05-12 21:24:49 +02:00
Joachim Priesner 3cd86c9f62 wined3d: Clear active lights when cleaning up a D3D stateblock.
This prevents dangling pointers as the light structures that the pointers in
the state->lights array point to are freed below when cleaning the light maps.
2014-05-09 20:03:43 +02:00
Stefan Dösinger 1558391a11 wined3d: Store RGBQUADs in palettes. 2014-05-07 20:21:56 +02:00
Stefan Dösinger 19f45af19c wined3d: Copy the DIB to sysmem when PIN_SYSMEM is set. 2014-05-07 20:21:55 +02:00
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