Commit Graph
3503 Commits
Author SHA1 Message Date
Unknown W. Brackets 5ff3e6a5e7 Avoid polluting glstate in GetTempFBO().
Since we do this "late", we might overwrite important settings, such as
stencil, color masks, etc.

This affects both depal and fbo shader blending.

Didn't do it for all ClearBuffer()s, since I'm worried some might be
intentionally resetting state.
2015-11-03 22:37:19 -08:00
Unknown W. Brackets 7af7b2bc6d Add methods to "force" glstate to certain values.
This way we don't have to use totally different syntax when doing:

   glstate.scissorTest.force(false);
   // Do stuff that needs scissorTest temporarily off.
   glstate.scissorTest.restore();

There's cleaner options maybe but this is a simple first step.
2015-11-03 22:37:05 -08:00
Unknown W. Brackets bc0a694ec2 Unbreak depth range test reporting.
Was broken in 9e18fb7e90.
2015-11-03 00:14:53 -08:00
Unknown W. Brackets 869260087c Fix screenshots to be right side up, not crash. 2015-11-02 19:43:36 -08:00
LunaMoo 71a0928d6b Flip display layout editor coordinates to match #8130:) 2015-11-03 00:28:47 +01:00
Henrik Rydgard b411fc0455 Postproc: Scale pixel deltas and round off screen position. Fixes #8016 2015-11-02 22:22:48 +01:00
Henrik Rydgard a1ad278005 unknownbrackets' fixes for last commit 2015-11-02 20:51:40 +01:00
Unknown W. Brackets 3a7edd8cac Switch viewport overage to the new world of sanity. 2015-11-02 20:11:58 +01:00
Henrik Rydgard 099f62b503 Fix some typos in D3D9 blits (removed parameter).
Add some missing projection matrix flips (flipped viewport emulation)

Fix issue with DrawPixels in non-buffered in D3D9
2015-11-02 20:11:48 +01:00
Henrik Rydgard 95240d46e8 Set the flipped flag to false on debug buffers 2015-11-02 20:11:36 +01:00
Henrik Rydgard 14652f0650 Make some optional arguments non-optional. 2015-11-02 20:10:29 +01:00
Henrik Rydgard bd64d5ba61 Fix a Y flip typo 2015-11-02 20:10:19 +01:00
Henrik Rydgard 6b2862284b Minor cleanups 2015-11-02 20:09:59 +01:00
Henrik Rydgard 0266211b88 Two wrongs can appently make a right. Remove an inadvertent flip, add flips where we actually need them. 2015-11-02 20:09:24 +01:00
Henrik Rydgard 86bfce4006 Remove more obsolete v-flip support 2015-11-02 20:09:12 +01:00
Henrik Rydgard 1ce6801d42 Shifted projection matrices need a few more parts flipped. This could fix bugs in games, too.
Fixes the strange camera issues in FF:CC.
2015-11-02 20:08:21 +01:00
Henrik Rydgard c1db771056 Fix non-through rectangles 2015-11-02 20:08:11 +01:00
Henrik Rydgard 069a7b0d2f Move the viewport to the right place. 2015-11-02 20:08:00 +01:00
Henrik Rydgard e9770b3679 Fix non-buffered rendering 2015-11-02 20:07:50 +01:00
Henrik Rydgard 94b77135a2 Fix a few more flips 2015-11-02 20:07:38 +01:00
Henrik Rydgard f4248cb550 Remove a whole lot of flipping special cases 2015-11-02 20:07:30 +01:00
Henrik Rydgard f3b1fca68b Allow resizing the screen in windowed mode 2015-11-02 19:36:14 +01:00
LunaMoo 526d0b04b9 Add video fix in non buffered mode for D3D backend as well. 2015-10-31 21:07:53 +01:00
LunaMoo ae1cf1d85d Add Display layout editor to use for example on tablets, but also includes automatic screen cropping for 16:9 cases(default).
//Rebased & removed atlas stuff which was added with #8096
//squashed with some improvements
2015-10-31 20:50:02 +01:00
Henrik Rydgard 8b2da19a55 Fix display of God Eater video in non-buffered mode. See #8082 2015-10-31 20:08:03 +01:00
Henrik Rydgard 27d4be9509 Fix texel addressing in post processing shaders when buffer size isn't 480x272. Fixes #8016. 2015-10-31 16:15:38 +01:00
Henrik Rydgard 89d0c7751f Viewport clipping did not take small screen into account. Fix that. #8082 should be rebased on this :) 2015-10-31 14:56:13 +01:00
Henrik Rydgard 293ab099bc Disable FRAMEBUFFER_FETCH for all GPUs. Can be whitelisted for some in the future. 2015-10-29 19:28:48 +01:00
Sacha bbc4f64999 MIPS: Fix build so we can compile this again. 2015-10-29 02:46:43 +00:00
Unknown W. Brackets c41b981333 Oops, undelete shader bits for alpha test. 2015-10-24 23:05:18 -07:00
Unknown W. Brackets 97c568dca6 Tweak to shader desc. 2015-10-24 23:05:09 -07:00
Unknown W. Brackets 6b905e8e18 d3d9: Remove the old shader id gen. 2015-10-24 21:26:40 -07:00
Unknown W. Brackets 06f2c7f1fe Maintain hasTexcoord even for UV gen. 2015-10-24 21:26:12 -07:00
Unknown W. Brackets 5595d1278d Merge pull request #8103 from hrydgard/d3d-shader-id
D3D: Generate shaders from shader IDs, just like in GL
2015-10-24 21:19:34 -07:00
Henrik Rydgard 838e53f482 Delete disabled code to use built-in alpha test on DX9. 2015-10-25 01:26:38 +02:00
Henrik Rydgard 56814ad52d SW skinning (ARM32, x86): Don't convert more bone matrices than necessary
Was already fixed on ARM64.
2015-10-25 00:51:47 +02:00
Henrik Rydgard 85229efef4 D3D9: Generate shaders directly from shader IDs, just like we do in GL. 2015-10-25 00:34:23 +02:00
Henrik Rydgard b86394d0a6 Minor bugfixes in vtx shader gen 2015-10-25 00:08:46 +02:00
Henrik Rydgard edafa9bc17 Centralize the GPU state conversion functions 2015-10-24 23:49:05 +02:00
Henrik Rydgard 92389a4966 Use a common ShaderId class. Start moving shader ID code to GPU/Common 2015-10-24 23:24:06 +02:00
Henrik Rydgard 67cd018aca Rename shader bits to not clash (this is preparation for other changes) 2015-10-24 23:09:28 +02:00
Henrik Rydgard 3c82dc1462 vtxshader: Don't enable full lighting if only shadeMapping is enabled. Should help #8071 2015-10-24 22:59:36 +02:00
Henrik Rydgard 6a373fe09a Make it possible to view vertex decoders through the shader viewing mechanism (even though they aren't strictly shaders, they fit the model). 2015-10-24 10:41:31 +02:00
Henrik Rydgard c63ed2f701 Improve vertex shader description 2015-10-24 10:41:14 +02:00
Henrik Rydgård 25d2f4da9c LLVM warning fixes 2015-10-14 22:18:43 +02:00
Henrik Rydgård 6c08e00e8c TextureCache: Don't proceed if we get a crazy bufw for some reason, risk of crashing. 2015-10-14 22:13:50 +02:00
Henrik Rydgård 70e99791aa Merge pull request #8019 from LunaMoo/scaling_shaders
Add 5xBR and scaling to existing 4xHQ
2015-10-14 20:58:19 +02:00
Henrik Rydgard 285480f992 More shader bit organization, viewer 2015-10-14 20:23:51 +02:00
Henrik Rydgard 4e26561d78 Fix bug in hardware skinning, improve shader viewer 2015-10-14 20:17:12 +02:00
LunaMoo b054117aad Technically we do change resolution, so this seems best solution 2015-10-14 20:07:06 +02:00