Commit graph

240 commits

Author SHA1 Message Date
Unknown W. Brackets
9de7b34d1c Cut down on reporting of FBO misuse.
These cases are likely to be okay.
2013-12-08 00:38:10 -08:00
Henrik Rydgard
c738364f67 Make sure to disable scissor when doing the initial clear of a new FBO.
Minor cleanups.
2013-12-06 23:08:37 +01:00
Henrik Rydgård
3fb973af90 GL_NV_draw_texture requires more testing, turn off temporarily.
Fix the V coordinates sent in while at it.
2013-12-06 13:01:34 +01:00
Henrik Rydgard
3983144c42 Make sure that blending is disabled when doing DrawPixels.
Add a comment about a potential texture scaling problem with splines.
2013-12-04 14:02:40 +01:00
Henrik Rydgard
127864b679 Prevent post shaders from getting applied twice in some circumstances when playing video. 2013-12-04 11:46:42 +01:00
Henrik Rydgard
e1657fec96 Get rid of WipeFramebufferAlpha ini-only option. 2013-12-04 09:41:25 +01:00
Henrik Rydgard
39b632b279 Copy the stencil value in REPLACE mode to fragment alpha (but only when it's safe)
This is cheap but incomplete.
To do it more "right", we need multipass when blending or alpha test is enabled, ugh. That's for later.

Anyway, this improves the glow situation in Wipeout somewhat. Still lots of stuff that glows that shouldn't, but a little less overwhelmingly bright.
2013-12-03 00:13:21 +01:00
Henrik Rydgard
198e230cdc Re-add uniform location checks even though they aren't needed
Spec says that setting uniform -1 does nothing.
2013-12-02 23:35:49 +01:00
Henrik Rydgård
7c7c4aaadc Add "u_time" uniform to postprocessing shaders. 2013-12-02 17:24:55 +01:00
Sacha
c71186b35a Partial Stretch: This setting is needed on other devices too. 2013-11-28 14:59:17 +10:00
Unknown W. Brackets
ac8edb4282 Support reversed buffer formats in the ge debugger.
So that it doesn't show garbage under the softgpu.
2013-11-17 02:14:34 -08:00
Henrik Rydgård
4cf2b99316 Merge pull request #4529 from raven02/patch-19
Fix Summon Night 5 shadow breaking
2013-11-17 02:09:22 -08:00
raven02
312f290bde Fix typo 2013-11-15 10:24:32 +08:00
raven02
8af2e66bd5 This seems to be better 2013-11-14 19:33:20 +08:00
Aapo Rantalainen
c2586523fe Maemo5: added !defined(MAEMO) as !defined(MEEGO_EDITION_HARMATTAN) 2013-11-13 18:23:18 +02:00
raven02
fe15d88cd8 Fix Summon Night 5 shadow breaking 2013-11-13 22:42:16 +08:00
raven02
7c6a4cf87e Attempt for another matching framebuffer logic 2013-11-10 10:38:33 +08:00
Henrik Rydgard
502cbc170a Revert "Another attempt to sizing framebuffer based on fmt"
This reverts commit c0e8893560.
2013-11-07 15:29:11 +01:00
raven02
c0e8893560 Another attempt to sizing framebuffer based on fmt 2013-11-07 10:56:41 +08:00
raven02
5b228d5fe4 Attempt to go back to thevery original finding a matching framebuffer logic 2013-11-01 22:00:34 +08:00
Henrik Rydgard
b9c908ba3f Update post-processing shaders to work again after removing u_viewproj.
Initialize some uninitialized variables.
2013-10-31 00:07:55 +01:00
Henrik Rydgård
07a868910e Add a temporary hack option that may help debugging the wipeout glow.
It reduces the glow problem by a lot but is obviously incorrect.
2013-10-30 22:47:36 +01:00
Henrik Rydgård
7e27bd9dc9 Framebuffer draws: Get rid of the u_viewproj uniform matrix. 2013-10-30 22:47:36 +01:00
danyalzia
950c961dbc Shader Improvements and cleanup
Added sharpen shader

Added support for bloom and sharpen shader

cleanup

cleanup
2013-10-30 00:33:21 +05:00
Henrik Rydgård
5408a06e6c Merge pull request #4274 from unknownbrackets/fb-minor
Detach framebuffers when texcache match fails, properly
2013-10-27 00:53:44 -07:00
Unknown W. Brackets
8b64a2c70c Fix unlikely case in DrawPixels().
If linesize doesn't match, also use convBuf.
2013-10-26 08:35:52 -07:00
Unknown W. Brackets
f9352ad0b8 Update fbos even if they're not the display.
But only when coming from a video or other safe source, to ensure we don't
hurt speed.  Although, might be interesting to do it always?

With the previous commit, fixes #4273.
2013-10-26 00:36:37 -07:00
Unknown W. Brackets
7aa70b473b Set the viewport properly on video frame draw.
Fixes #3771, video frames being drawn at the wrong size at non-1x.
2013-10-26 00:32:03 -07:00
Henrik Rydgård
5705acba04 Cleanup 2013-10-23 16:10:58 +02:00
Henrik Rydgard
726de7086d Fix postprocessing shaders on Tegra 2013-10-22 15:56:07 +02:00
Henrik Rydgard
cae2934c70 Buildfix 2013-10-22 13:40:51 +02:00
Henrik Rydgard
7d8aed096a Add proper support for upscaling shaders, add Spline36 upscaling
Spline36 isn't as amazing as I had hoped heh. And it will need work to
work in GLSL ES. Anyway...

This also renames u_texcoordDelta to u_texelDelta to fit in with u_pixelDelta.
2013-10-22 12:18:49 +02:00
Henrik Rydgard
492fcb261b Reset viewport in CopyDisplayToOutput. Fixes flickering video in non-1:1 resolutions in some games. 2013-10-22 11:19:06 +02:00
Henrik Rydgard
0dd0948f81 The built-in draw2d shader doesn't need a version number specified 2013-10-21 00:42:46 +02:00
Unknown W. Brackets
edb4472927 Fix some formatting warnings. 2013-10-19 14:57:45 -07:00
Henrik Rydgard
80702109f5 Move gpu vendor detection to native with the rest of the gl init.
Also disable vertical layout for mainscreen entirely.
2013-10-16 00:48:44 +02:00
Unknown W. Brackets
9cbb1cb8d3 Warning fix. 2013-10-13 09:34:54 -07:00
Henrik Rydgard
e54107033d Don't crash on post-shader compile errors. 2013-10-13 12:06:55 +02:00
Henrik Rydgard
e0b19decca Add generic "PostShader" functionality, replacing FXAA (it's one of them).
Replaces #4018, sorry DanyalZia :)
2013-10-12 02:05:55 +02:00
Henrik Rydgård
ae94e5c078 Must reset lastShader after swtiching shaders outside the "framework". 2013-10-10 20:11:57 +02:00
Henrik Rydgård
95fda8dffa Set line width in constructor too. 2013-10-09 19:01:28 +02:00
raven02
23b817f86c Use glLineWidth/glPointSize to specify the width of rasterized lines and size of points. 2013-10-09 19:01:21 +02:00
Henrik Rydgård
39d28c27e2 Update native with gl shutdown fix (helps orientation change).
This also adds some logging that helped me figure things out.
2013-10-09 16:09:16 +02:00
Henrik Rydgård
6d6ea77df2 Add comments (speedup plans for GLES) and reformat a bit (no changes) 2013-10-09 11:56:46 +02:00
Henrik Rydgård
df29da0b13 GLES3: Use glTexStorage2D for (possibly) more efficient texture uploading 2013-10-08 15:00:48 +02:00
Unknown W. Brackets
3af88b1e4e Show the stencil buffer properlyish in ge debugger. 2013-10-06 22:17:55 -07:00
Unknown W. Brackets
d49ad5f114 Use an accessor for depth/frame addresses. 2013-10-06 22:17:53 -07:00
Unknown W. Brackets
dcdf730407 Fix a possibly wrong framebuffer pointer. 2013-10-05 17:19:52 -07:00
Unknown W. Brackets
a5e9c3b10a Get stencil/depth reading for ge debugger.
Possibly works on NVIDIA only...
2013-10-05 17:19:17 -07:00
Sacha
424a24366c Buildfix for Symbian. 2013-10-05 02:51:56 +10:00