Commit Graph
2331 Commits
Author SHA1 Message Date
Henrik Rydgard fcf2498b11 Minor stuff from #6403 2014-05-08 10:46:19 +02:00
Henrik Rydgard 305e1652cb Turn off glGetError in Framebuffer.cpp. Can be easily turned back on if needed. 2014-05-08 10:43:46 +02:00
Henrik Rydgard 2e56e0f122 Fix check for glBlitFramebufferNV 2014-05-08 10:40:36 +02:00
Henrik Rydgard 2b58f2657c Merge branch 'patch-40' of github.com:raven02/ppsspp into raven02-patch-40 2014-05-08 10:00:00 +02:00
Henrik Rydgård fcaaedebbd Merge pull request #5951 from raven02/patch-23
Medium quality mode for spline patch
2014-05-06 23:05:27 +02:00
Henrik Rydgård 403f685701 Warn fix 2014-05-06 09:26:52 +02:00
Henrik Rydgård 7a69a6a405 Merge pull request #6024 from unknownbrackets/gpu-minor2
Fix jump/call alignment, no-pos vertices
2014-05-05 11:01:03 +02:00
raven02 f98cf76b97 Use GL_NV_framebuffer_blit to handle depth copy 2014-05-05 12:19:31 +08:00
Unknown W. Brackets 41f7613bf5 Pos=0 is treated the same as pos=1. 2014-05-04 18:29:47 -07:00
Unknown W. Brackets 4cc4cfed4c Note that VADDR/IADDR are not updated on PRIM.
Even though they do increase the addresses, they don't affect the CMD
registers.

Also, make sure not to use a crazy bytesRead for a zero-sized prim.
2014-05-04 18:24:49 -07:00
Unknown W. Brackets 7f5be6b35d CALLs and JUMPs to misaligned addresses round down.
Fixes Pac-Man World 3.  Matches tests on hardware.
2014-05-04 17:58:44 -07:00
Unknown W. Brackets e80c63945a Make sure to gen the frag shader matching the id.
Otherwise, the frag shader might be generated accounting for different
vertexFullAlpha values, or otherwise won't match up with the id, since we
change flags between the two Apply calls.
2014-05-04 16:31:57 -07:00
Henrik Rydgård 42a7060193 Merge pull request #6017 from unknownbrackets/texalpha
Fix a bunch of texture/vertex alpha issues
2014-05-04 20:50:33 +02:00
Henrik Rydgård 3d459763e6 Merge pull request #5992 from raven02/patch-35
Set depth update flag when depth write is enabled in non-clear mode only
2014-05-04 20:47:15 +02:00
Unknown W. Brackets 5d76778b31 Use an unsigned compare for x86 vertexalpha check. 2014-05-04 09:58:58 -07:00
Unknown W. Brackets ff8f1fa569 Avoid the GE debugger affecting vertexFullAlpha. 2014-05-04 09:54:54 -07:00
Unknown W. Brackets 779a52e08a Don't forget tex alpha if only a mip has none.
Mip levels should only move toward unknown.
2014-05-04 09:54:53 -07:00
Unknown W. Brackets ff25b9d20e Oops, the vertexdecoder should read vertex alpha.
Copy/paste mistake... ugh.
2014-05-04 09:05:45 -07:00
Unknown W. Brackets e8d5866e5a Use SSE some in framebuffers to memory.
Since people are using it (even though it seems dangerous), might as well
make it faster.  6% better in Tales of Phantasia X.
2014-05-04 01:03:48 -07:00
Unknown W. Brackets 4475c99426 Fix GL errors / flicker in framebuf->mem.
Happens in Tales of Phantasia X, reported by Kingcom.
2014-05-03 20:20:40 -07:00
Unknown W. Brackets 984bb31709 Fix another race condition with multithreading.
It's possible that after it's marked completed, the CPU will grab it to
enqueue.  This actually happened to mean with decent reproducibility.
2014-05-03 18:40:27 -07:00
raven02 e0e1a6b217 Only set depth update flag when depth write is enabled 2014-04-30 20:00:42 +08:00
Unknown W. Brackets 99e4300f95 Eat a few more cycles on END cmds.
Fixes #3049, which apparently expects an END/FINISH to not immediately
trigger (it drawsyncs soon after, and completely expects that to
reschedule.)

Either way, it seems plausible an END would take a few more cycles than
most instructions, since it generates an interrupt.
2014-04-29 00:08:43 -07:00
raven02 e61a151942 Add Vertex texture/color GE commands 2014-04-26 23:53:17 +08:00
raven02 aa08944528 Medium Quality mode for spline patch 2014-04-26 12:04:26 +08:00
raven02 3d12a00fe1 Get rid of glstate.viewport.restore() for Mali/Adreno Soc 2014-04-23 22:47:59 +08:00
Unknown W. Brackets 97c18e7f0e Comment out a few unsafe replacement funcs. 2014-04-22 08:07:10 -07:00
Unknown W. Brackets 424d93e9a9 Separate out the fog color/coef executes. 2014-04-21 22:56:54 -07:00
Unknown W. Brackets 38b92e48ec Fix uniform dirtying on colortest mask. 2014-04-21 22:54:17 -07:00
Unknown W. Brackets 1bbd3d04af Move the light params to separate funcs. 2014-04-21 22:47:44 -07:00
Unknown W. Brackets 748ce6a753 Fix typo breaking older savestates. 2014-04-21 22:40:50 -07:00
Henrik Rydgard 9b1302cf77 Don't initialize lighting and lights unless they are enabled 2014-04-21 12:51:20 +02:00
Henrik Rydgard 16f4622ac7 Remove cached light variables to reduce work when parsing DLs.
Also removes some duplication between GL and the inactive D3D code.
2014-04-21 12:51:19 +02:00
Henrik Rydgard 1d545f3e6b SW transform: Don't initialize Lighter if lighting is disabled. 2014-04-21 12:49:36 +02:00
Henrik Rydgård f9344b5557 Merge pull request #5909 from raven02/patch-11
Split out texture level
2014-04-21 10:25:28 +02:00
raven02 abc5c86339 Split out texture level 2014-04-19 06:45:17 +08:00
Henrik Rydgard cf4887ecdd Update native to detect the EXT and NV extensions separately. Only look at the NV one. 2014-04-18 19:30:10 +02:00
Henrik Rydgard 247b171eb0 Temporarily (?) revert ffdba45b4b because of massive perf drop in GT, working around #5900
Not sure what to do about the Chinese Tactics Ogre though...
2014-04-18 15:02:45 +02:00
raven02 3fc5ba22f4 Set texture bias in constant mode 2014-04-18 18:07:52 +08:00
raven02 95d2848f07 Define texture level mode 2014-04-18 18:06:38 +08:00
Unknown W. Brackets 1e61fd7a02 Split out the clutformat cmd as well. 2014-04-17 22:57:02 -07:00
Unknown W. Brackets 90365943ff Split out the bounding box and stencil test cmds. 2014-04-17 22:54:23 -07:00
Unknown W. Brackets b953ff8f33 Split out viewport type commands. 2014-04-17 22:49:09 -07:00
Unknown W. Brackets 5ed851204c Split out a few more common cmds. 2014-04-17 22:41:37 -07:00
Unknown W. Brackets 5ba924225e Move out texformat as well. 2014-04-17 08:29:44 -07:00
Unknown W. Brackets 7d34c20418 Split out the texscale/offset cmds. 2014-04-17 08:26:38 -07:00
Unknown W. Brackets e8f42f069e Split out some texture and testing cmds. 2014-04-17 08:18:43 -07:00
Unknown W. Brackets fbe28dbeef Move spline and bezier as well to separate funcs. 2014-04-17 08:09:44 -07:00
Unknown W. Brackets 286416af9f Don't even execute FF, it does nothing.
And it happens quite a lot in GoW, interestingly...
2014-04-17 08:05:32 -07:00
Unknown W. Brackets 12716afce2 Move out block transfer too, common in GoW. 2014-04-17 08:05:16 -07:00