9751 Commits
Author SHA1 Message Date
Henrik Rydgard bd6314325f Crashfix 2017-02-18 03:00:22 +01:00
Henrik Rydgard b0cdcfca3c D3D11: Proper fix for DXT5 crash. May also help #9134. 2017-02-18 02:41:17 +01:00
Henrik Rydgard badd3669ca Workaround for crash decoding DXT5 textures. This may be a clue to #9134 2017-02-18 02:32:33 +01:00
Henrik Rydgard 3713f4e6e6 D3D11: implement support for logic op blending when available 2017-02-18 02:14:26 +01:00
Henrik Rydgard 5a0ee6cc36 Add some plumbing to be able to reach DX11.1 features. 2017-02-18 01:54:28 +01:00
Henrik Rydgard 6a09d45aee D3D11: Add proper checks for B4G4R4A4 format support. Not yet using the checks. 2017-02-18 01:41:08 +01:00
Henrik Rydgard 584650a0c2 Initial preparations for logic op support 2017-02-18 01:41:08 +01:00
Henrik Rydgard e8396b10f9 D3D11: Implement screenshots. 2017-02-18 00:43:02 +01:00
Henrik Rydgard 68ba3070bc D3D11: Add enough debug readback support to support savestate thumbnails 2017-02-18 00:27:32 +01:00
Henrik Rydgard 0e8aeaea3a D3D11: Implement basic framebuffer readback.
Also make debug interfaces more consistent.
2017-02-18 00:07:49 +01:00
Henrik Rydgard b807442641 Fix another resource leak, and fix one of the last leak fixes :P 2017-02-17 19:41:06 +01:00
Henrik Rydgard 2fabe3e1c5 Fix a number of resource leaks, both D3D11-only and general.
Additionally, fix D3D11 BlitFramebuffer
2017-02-17 19:23:01 +01:00
Henrik Rydgard 13a3d179d5 Further minor D3D11 fixes 2017-02-17 18:43:27 +01:00
Henrik Rydgard 061685678d State management fixes. DBZ toon shader effect now works. 2017-02-17 17:34:21 +01:00
Henrik Rydgard b7f58a6704 D3D11 depal: Directly index into the texture using Load() instead of messing with samplers. 2017-02-17 17:15:00 +01:00
Henrik Rydgard ba040559c1 Fix bugs. DBZ now shows outlines, though doesn't apply them correctly. 2017-02-17 17:00:35 +01:00
Henrik Rydgard e83dd2b524 Minor cleanup, elimintate some bind ordering hazards that D3D11 warns about 2017-02-17 14:31:02 +01:00
Henrik Rydgard b961117897 D3D11: Attempt a straight implementation of FramebufferBlit. Shader blending not yet working. 2017-02-17 12:51:37 +01:00
Henrik Rydgard 08d173ceee Unify ApplyShaderBlending 2017-02-17 12:21:27 +01:00
Henrik Rydgard 4538edad14 Work towards enabling shader blending on D3D11 2017-02-17 12:21:18 +01:00
Henrik Rydgard 9359922201 GL: Fix inconsistency with BindFramebufferColor 2017-02-17 12:13:53 +01:00
Henrik Rydgard dcfc37a39d GL: Allow ShaderTexClamp path on PowerVR if no projection is needed 2017-02-17 12:12:15 +01:00
Henrik Rydgård a99bad046b Merge pull request #9314 from hrydgard/unify-postproc
Unify postprocessing-related framebuffer code
2017-02-16 16:37:06 +01:00
Henrik Rydgard a847de9522 Fix some minor gl bugs 2017-02-15 23:56:38 +01:00
Henrik Rydgard 68c5a6c517 Unify CopyDisplayToOutput 2017-02-15 23:24:25 +01:00
Henrik Rydgard 23762ef89f Unify DrawFramebufferToOutput 2017-02-15 23:11:46 +01:00
Henrik Rydgard 26f208a212 Unify "DrawPixels" 2017-02-15 23:06:22 +01:00
Henrik Rydgard 84e6054b23 More work towards unifying CopyDisplayToOutput 2017-02-15 22:48:23 +01:00
Henrik Rydgard cba37e54d0 Preparations for unifying CopyDisplayToOutput 2017-02-15 22:47:50 +01:00
Henrik Rydgard 7652bc2d8b Declare DrawActiveTexture in FramebufferCommon 2017-02-15 22:47:49 +01:00
Henrik Rydgard 0fb1e95bac Remove GLSL program argument to DrawActiveTexture - bind before instead. 2017-02-15 22:47:44 +01:00
Henrik Rydgard d084da9e04 DrawActiveTexture: Don't allow passing in nullptr as a GLES program 2017-02-15 21:51:40 +01:00
Henrik Rydgard 3ac0fc2466 Move compiledraw2dprogram out of DrawActiveTexture 2017-02-15 21:51:39 +01:00
Henrik Rydgard f95ab4a0fa One more step 2017-02-15 21:51:39 +01:00
Henrik Rydgard 8f48816baa Move CalcShaderUniforms to FramebufferCommon 2017-02-15 21:51:38 +01:00
Henrik Rydgard dfc71f32cb Initial work on shader translation using glslang+spirv-cross 2017-02-15 21:51:33 +01:00
Henrik Rydgård 3fb1f4425d Merge pull request #9312 from xebra/fake_mipmap
Fix fake mipmap hacks.
2017-02-15 15:10:44 +01:00
xebra 59fd5da438 Fix fake mipmap hacks. 2017-02-15 22:07:58 +09:00
Henrik Rydgard 55beec3e89 D3D11: Enable anisotropic filtering 2017-02-15 11:46:47 +01:00
Henrik Rydgard 5c918da774 Minor cleanups (combined two identical enums, misc) 2017-02-15 11:06:59 +01:00
Henrik Rydgard a8ee70f23d Import SPIRV-Cross. This will be used later to translate post-processing shaders to the various shader languages we use.
Eventually, this will make it possible to use post-processing with
Vulkan and D3D11. Probably not DX9, though maybe.

Not adding to Android build, there's some strangeness with STL.
2017-02-14 23:33:27 +01:00
xebra e2f9dc8f28 Add support compat to fake mipmap hacks. 2017-02-15 01:02:51 +09:00
xebra 7975addad0 Fix small issue. 2017-02-15 01:02:51 +09:00
xebra ef536ae54d Move wasted checks in FastRunLoop() to Execute_TexLevel() 2017-02-15 01:02:50 +09:00
xebra 945e603072 Fix fake mipmap issue related #5350 2017-02-15 01:02:50 +09:00
Henrik Rydgard 6e940dfeda D3D11, Vulkan: Switch to 4x3 matrixes where possible.
Lets us unify more shader code between D3D11 and D3D9, and fixes HW
skinning on D3D11.
2017-02-14 11:59:13 +01:00
Henrik Rydgard a9e267ae7a Enable dualsource blend effects (glows on transparent things in Wipeout, for example) 2017-02-14 10:36:58 +01:00
Henrik Rydgard 56b3a823ba D3D11: Improved alpha/color test, like in GL/Vulkan 2017-02-14 10:34:55 +01:00
Henrik Rydgard b51bcd2247 D3D11 Stencil ref fix, fixes Star Ocean stencil-depth 2017-02-14 01:54:00 +01:00
Henrik Rydgard 6d4d638746 D3D11: Fix some color issues by doing thing similarly to DX9. Can be optimized later. 2017-02-14 01:31:45 +01:00