Commit graph

71 commits

Author SHA1 Message Date
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
Sacha
d49b4fad9a Miscellaneous changes for Blackberry. 2013-10-12 17:19:02 +10:00
Henrik Rydgård
e7a9661cad Fix stupidest crash bug ever. How the hell did this work on any platform? 2013-10-10 23:32:04 +02:00
Henrik Rydgård
ae94e5c078 Must reset lastShader after swtiching shaders outside the "framework". 2013-10-10 20:11:57 +02:00
Henrik Rydgard
5c3f6bae25 Prescale UV bugfixes 2013-10-09 23:09:16 +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
ab759a9350 If bPrescaleUV is enabled, no need to flush on change of these params.
Also disable the QCOM hint, not sure it does any good at all.
2013-10-09 10:44:12 +02:00
Henrik Rydgard
4c2c015774 Expose the experimental "bPrescaleUV" as "Texture Coord Speedhack"
It's actually quite beneficial in some games, can substantially reduce
glUniform4fv calls.

Also throw in a second shot at glDrawRangeElements.
2013-10-08 22:59:40 +02:00
Henrik Rydgård
2362640346 Merge pull request #4072 from raven02/patch-25
GLES: Add GE_CMD_ZWRITEDISABLE to ZTEST section
2013-10-08 01:53:00 -07:00
Unknown W. Brackets
f1f526f8cd Add some additional unknown cmds to reporting. 2013-10-08 00:34:17 -07:00
raven02
bf64df71f9 GLES: Add GE_CMD_ZWRITEDISABLE to ZTEST section 2013-10-08 09:29:51 +08:00
Henrik Rydgard
f645988b8f More precision annotations in shader generators, other microoptimizations 2013-10-07 20:15:00 +02:00
Unknown W. Brackets
a0d84d45cc Flip the texture preview when it's a framebuffer. 2013-10-07 00:38:46 -07:00
Unknown W. Brackets
01c84caffc Skip bounding box when set to 0.
VectorTD does this, for example, and it seems innocent, just resetting all
cmds.  Not sure what it should set the flag to, though.
2013-10-05 15:41:44 -07:00
raven02
90e77f8c30 Remove duplicate comment 2013-10-01 14:04:48 +08:00
Unknown W. Brackets
9e1e64d62e Swap render targets when drawing spline/beziers. 2013-09-29 23:31:07 -07:00
Unknown W. Brackets
0aa263511d Don't clear the GPU caches on savestate, just load.
And maybe it's not even fully necessary on load...
2013-09-29 13:19:32 -07:00
Unknown W. Brackets
14efcbcc9b Add an interface to grab the depth/stencil buffers.
Not sure yet how to show in UI, not well tested...
2013-09-28 02:23:07 -07:00
Unknown W. Brackets
81e71dd8d7 Add a way to get to the current texture as well. 2013-09-27 22:46:08 -07:00
Henrik Rydgard
bd8cb4b02d Start work on implementing bbox, add a comment with some thoughts.. 2013-09-24 14:14:05 +02:00
Henrik Rydgard
424b4cbd5f Move GE_CMD_BJUMP to GPUCommon. Add the flag. (no actual bbox impl yet) 2013-09-24 14:14:04 +02:00
Unknown W. Brackets
f89ba75c38 Flag the texture on format/swizzle change. 2013-09-23 08:08:06 -07:00
Henrik Rydgard
171fe00383 More work on spline/bezier tesselation. Disabled for now, there are still issues. 2013-09-23 15:55:53 +02:00
raven02
e1f63f2e6d Set gstate_c.textureChanged = true; and | FLAG_EXECUTE for GE_CMD_TEXWRAP 2013-09-23 20:49:24 +08:00
Unknown W. Brackets
38a4f2112d More carefully log unknown GE commands.
Need FLAG_EXECUTE or they won't log, we were only getting the
ReapplyGfxState() ones before.  Let's skip 0 to not log those as well.
2013-09-22 21:01:53 -07:00
Unknown W. Brackets
6af44910c1 Add an interface to return the current framebuffer. 2013-09-22 19:03:31 -07:00
Unknown W. Brackets
eabd8b5302 Add GPU debugging hooks to Host, not yet in use. 2013-09-22 08:14:55 -07:00
raven02
ddd5b26e61 Buildfix 2013-09-22 16:37:22 +08:00
raven02
aa38dc238d Merge remote-tracking branch 'upstream/master' into patch-21
Conflicts:
	GPU/GLES/GLES_GPU.cpp
2013-09-22 16:08:44 +08:00
raven02
67b7ed53c7 Log which GE command get called 2013-09-22 15:55:53 +08:00
Henrik Rydgard
d7ae3f88a1 Do Beziers more correctly (although still not tesselating properly).
Snow now visible in SSX.
2013-09-22 09:52:46 +02:00
Henrik Rydgard
82e5787bbe Preparation for proper spline/bez: Convert control points to a simple format.
The bezier/spline code will no longer need to handle morph and splines,
when it's finally written. This is done by pre-skinning in software and
pre-decoding to get rid of the morph.
2013-09-21 23:37:14 +02:00
Henrik Rydgard
5bdb9e976b Track copies of framebuffers in ram created through sceDmacMemcpy, so that we can display them.
Fixes MotoGP while also, in effect, committing #3859.
Removes the horrifying ramDisplayFramebufferPtr hack.
2013-09-21 18:53:55 +02:00
raven02
83bac402c4 Replace them with GE_CMD_UNKNOWN_XX 2013-09-20 21:10:32 +08:00
raven02
c7f830f575 Simplify AA lines 2013-09-20 14:41:52 +08:00
raven02
010c2a087e Add WARN_LOG_REPORT_ONCE for unknown GE commands 2013-09-20 14:30:33 +08:00
raven02
f4b097ca49 Set GE_CMD_SCISSOR1/2 with FLAG_EXECUTE 2013-09-20 14:16:17 +08:00
raven02
ec00b335f2 Add WARN_LOG_REPORT_ONCE for unsupported BJUMP/BOUNDINGBOX 2013-09-20 14:04:45 +08:00
raven02
aea9ecae4b GLES : gstate_c.framebufChanged = true for sccisor as well 2013-09-20 01:48:43 +08:00
raven02
a3120e0bbf GLES: Add memory valid check for vertex address 2013-09-19 21:09:59 +08:00
Henrik Rydgard
83f39fdaa6 Report the combination of bezier/spline + morph/skinning to see if it happens 2013-09-16 09:01:20 +02:00
Henrik Rydgård
8c9b593824 Merge pull request #3770 from unknownbrackets/softgpu
Crashes/cleanup in softgpu, fix a couple warnings, remove some unused gstate_c
2013-09-15 00:25:13 -07:00
Unknown W. Brackets
16fc684578 Don't clear the shader cache on savestate.
Well, it's small, but there should be no point.
2013-09-14 20:32:37 -07:00
Unknown W. Brackets
50e9e45d65 Check version in each DoState() func.
They bail on PointerWrap error or bad version.
2013-09-14 20:23:03 -07:00
Unknown W. Brackets
68f61e5071 Remove some unused gstate_c values. 2013-09-14 14:36:06 -07:00
Unknown W. Brackets
08b41df6a2 Change a few more log types. 2013-09-07 13:31:14 -07:00
Henrik Rydgard
8c88dff5a4 More log categories, use them (and existing ones). Improve log config. 2013-09-07 22:02:55 +02:00
raven02
a59c058bba Apply GL_QCOM_binning_control if available 2013-09-05 16:37:17 +08:00
raven02
4866a992ec Break if vertex count = 0 2013-09-04 17:14:49 +08:00
raven02
e0a9d8e1a6 Add BlockTransfer: to ERROR_LOG_REPORT 2013-09-04 16:58:52 +08:00