Commit Graph
709 Commits
Author SHA1 Message Date
Henrik Rydgård 3f114f32db Merge branch 'nearest_filtering' of https://github.com/AdmiralCurtiss/ppsspp into AdmiralCurtiss-nearest_filtering
Conflicts:
	ffmpeg
	lang
2013-06-24 22:51:46 +02:00
Henrik Rydgard 8aca797f21 Fix silly light direction math bug (probably no effect mostly). 2013-06-24 20:48:31 +02:00
Henrik Rydgard f3c227041d Only set uniform variables as dirty when there's a difference in value. 2013-06-24 19:25:22 +02:00
Henrik Rydgard afb596f3c3 Reorder things a little in VertexShaderGenerator. Strangely solves a specular lighting issue I saw. 2013-06-24 19:11:04 +02:00
Henrik Rydgard 6a9e6ce5fe Simplify vertex shaders a little more in the common case of directional lights. 2013-06-24 00:29:30 +02:00
Admiral H. Curtiss 802fa0de4c Merge remote-tracking branch 'upstream/master' into nearest_filtering 2013-06-23 23:16:48 +02:00
Admiral H. Curtiss fe132af9ec Renamed Nearest and Linear Filtering to Force Nearest/Linear Filtering.
Made sure that both options aren't active at the same time.
2013-06-23 22:39:32 +02:00
Admiral H. Curtiss 505f8559c1 Added a "Nearest Filtering" option for testing. 2013-06-23 21:56:07 +02:00
Unknown W. Brackets 8c7dfdb0f7 Iterate over vfbs_ using size_t not iter.
This way we know for sure that our erase()s are safe.
2013-06-23 08:51:35 -07:00
Unknown W. Brackets 03cab6edf7 Centralize destruction of FBOs, use std::vector. 2013-06-23 08:19:36 -07:00
Henrik Rydgard fcd9168ff9 Change vfbs_ back to a list for now. 2013-06-23 17:10:55 +02:00
Henrik Rydgard 67ef7fea3e Various FBO-related fixes, hopefully reducing or removing the related crashes... 2013-06-23 17:05:59 +02:00
Henrik Rydgard 23ee9b8cd5 Add "Take Screenshot" to Windows version. Writes to "screenshots" subdirectory. No smart file naming yet. 2013-06-22 22:28:48 +02:00
Unknown W. Brackets cd213e655b Add some debug code for finding textures. 2013-06-22 10:35:34 -07:00
Unknown W. Brackets 390f0d79fc Add a copy path to ConvertColors RGBA8888.
It's not actually ever called this way, but I'd rather not let someone get
confused if they try to.
2013-06-22 10:16:38 -07:00
Unknown W. Brackets 88fbe6c1b5 Clear lastBoundTexture when binding a null one. 2013-06-22 10:15:30 -07:00
oioitff 2fa9637818 Use a larger index buffer.
Fix crash for 7th Dragon 2020 at some certain places.
2013-06-21 23:42:09 +08:00
Henrik Rydgård cc705c72eb Revert "Support tex level factor 000001 (fixed at 0, that is, mipmapping off)"
This reverts commit eaede89761.

Conflicts:
	GPU/GLES/TextureCache.cpp
2013-06-21 10:02:57 +02:00
Sacha 2570268393 Remove 'BLACKBERRY10' define as it is now the minimum OS requirement. 2013-06-21 15:40:52 +10:00
Henrik Rydgard 916184d2f4 Optimize the most common light type, directional, by doing the normalization beforehand. May shorten some shaders below Mali's limit with luck. 2013-06-20 23:30:21 +02:00
Henrik Rydgard 34e6b72599 Fix nomip check bug 2013-06-20 23:06:05 +02:00
Henrik Rydgard 2694343243 Another attempt at reusing bigger framebuffers. Doesn't solve everything but hopefully won't break much like the last attempt. 2013-06-20 22:19:20 +02:00
Henrik Rydgard eaede89761 Support tex level factor 000001 (fixed at 0, that is, mipmapping off) 2013-06-20 21:57:09 +02:00
Henrik Rydgård 283f382aff Revert "Attempted workaround for issue #2308. Needs plenty of testing! Fixes black screens in GTA when pausing for example."
This reverts commit f2b7096bdf.
2013-06-20 01:26:18 +02:00
Henrik Rydgard f2b7096bdf Attempted workaround for issue #2308. Needs plenty of testing! Fixes black screens in GTA when pausing for example. 2013-06-19 23:55:36 +02:00
Henrik Rydgard 8f9562cde4 Remove gl enum hacks in texturecache (doesn't seem to work, get bad log output on adreno) 2013-06-19 12:42:04 +02:00
Henrik Rydgård 5fc11fa99c Turn off forced linear filtering if colortest enabled 2013-06-17 20:45:08 +02:00
Henrik Rydgard e782b6f20e Add VSync option in Windows. Turns itself off when unthrottled. 2013-06-16 23:45:06 +02:00
Unknown W. Brackets 00540ea44c Hash/convert more when a CLUT base is used.
This seems a bit strange, but the games that use these bases seem to read
outside the loaded CLUT to a previously loaded CLUT.

May cause a performance issue on games that use a base but don't do this.
2013-06-16 08:04:21 -07:00
Unknown W. Brackets 5dd9ece98b Ignore alpha when writing to display. 2013-06-15 17:32:35 -07:00
Unknown W. Brackets dc5e7d5e71 Still need to delete textures when scaling on.
Duh.  Fixes #2255.
2013-06-14 00:46:49 -07:00
Henrik Rydgård 3908bf537f Merge pull request #2249 from unknownbrackets/texcache
Re-enable subimage optimization with scaling check
2013-06-14 00:17:01 -07:00
HuangKangJing 9e0fe6f1e6 Fixed a build error on 64-bit linux. 2013-06-14 14:24:04 +08:00
Unknown W. Brackets ff00b65cf3 Re-enable subimage optimization with scaling fix.
Thanks go to @Squall-Leonhart for finding the issue.
2013-06-13 23:04:11 -07:00
Henrik Rydgard 052a15b788 Disable the glTexSubImage optimization, see issue #2222 . 2013-06-11 23:06:30 +02:00
Henrik Rydgard e809e39681 Mips interpreter: Use unions instead of ugly casts. Strict-aliasing builds now work, but needs more testing so I don't enable it yet. Also some aliasing fixes for TransformPipeline. 2013-06-11 21:44:37 +02:00
Henrik Rydgard f8b9655f20 Use glTexSubImage to replace textures instead of deleting them and allocating new ones whenever possible. May help runaway VRAM consumption with some Radeon drivers. 2013-06-11 20:21:19 +02:00
Henrik Rydgard 112f1b4901 Wipe all FBOs on device lost. May help app switching issues on Android. 2013-06-11 11:28:41 +02:00
Henrik Rydgård 9fbb947fcd Merge pull request #2210 from aquanull/TCMinorFix
Fix some crash due to destroyed FBO's...
2013-06-11 02:24:19 -07:00
Henrik Rydgard ea2b923ddf Logic precedence error, warning fixes 2013-06-11 11:05:34 +02:00
aquanull a1b7da413a TextureCache::Invalidate()/InvalidateAll() small corrections and optimizations.
I think the ranges are [start_addr, end_addr).
2013-06-11 16:19:13 +08:00
aquanull 9b85da657a These were probably just typos. 2013-06-11 16:19:13 +08:00
aquanull 7082e9808d Fix some crash in debug builds. 2013-06-11 16:19:12 +08:00
Unknown W. Brackets 73ab4d1422 Fix memcpy to framebuffer to not invalidate.
This is much better.
2013-06-10 00:11:36 -07:00
Unknown W. Brackets d8618e5028 Clear currentRenderVfb_ when fbo_unbinding.
At least, not doing this caused glitches somewhere else, seems right.
2013-06-09 23:55:33 -07:00
Unknown W. Brackets f8d6bda678 Add a better signal for VRAM copies in the GPU. 2013-06-09 23:55:32 -07:00
Unknown W. Brackets dbb2dfdcff Invalidate FBOs when it's obvious they should be.
This fixes videos not being visible in for example Star Ocean.
Most likely any games doing a copy directly from the mpeg decode.
2013-06-08 04:51:57 -07:00
Henrik Rydgard 0d0148dad3 Change check in DoBlockTransfer to catch some more videos. 2013-06-06 10:30:05 +02:00
Henrik Rydgard e7097ca95a Fall back to software transform when hardware transform fails. Should help Mali devices.
This is done per shader so the speed hit should not be as bad as turning hw transform off entirely.
Displays a red error at the top of the screen so that we don't trigger this accidentally.
2013-06-06 10:09:37 +02:00
Henrik Rydgard be483a1aa6 Another framebuffer / displayptr fix. 2013-06-06 00:30:42 +02:00