Commit Graph
16340 Commits
Author SHA1 Message Date
Henrik Rydgård de525f36d1 Merge pull request #7716 from unknownbrackets/clut
Avoid accidental sign ext for > 24 bit clut shift, clut wrapping
2015-04-26 10:17:34 +02:00
Unknown W. Brackets 4fa50a9a50 Reduce clut allocation size a bit.
Really think this probably should only be 1024 bytes, but need to work out
some more details before shrinking all the way.
2015-04-26 00:50:47 -07:00
Unknown W. Brackets ab67c49ae9 Make sure we don't hash outside max bytes.
If we've never even loaded that much, play it safe.
2015-04-26 00:43:36 -07:00
Unknown W. Brackets 5822faabf9 Make sure to wrap clut indexes at 1024 bytes.
So that's 256 for 32-bit and 512 for 16-bit.
2015-04-26 00:42:58 -07:00
Unknown W. Brackets 6e50a0b274 Allow depal palette entries to repeat.
This is what happens if the base is 0x10 in 8888 mode (means | 0x100.)
2015-04-26 00:36:08 -07:00
Unknown W. Brackets c8fc9b0bf3 Cleanup some incorrect handling of clut offset. 2015-04-26 00:31:00 -07:00
Unknown W. Brackets 5b61c03b7f Avoid accidental sign ext for > 24 bit clut shift. 2015-04-26 00:26:24 -07:00
Henrik Rydgård aee69d46c6 Merge pull request #7702 from daniel229/youkosohitsujimura_download_frame
Replace framebuffer download in Youkoso Hitsuji-Mura Portable
2015-04-20 12:29:23 +02:00
daniel229 af9e04dc97 Replace framebuffer download in Youkoso Hitsuji-Mura Portable 2015-04-20 16:36:07 +08:00
Henrik Rydgård a4a10588ed Merge pull request #7697 from unknownbrackets/texcache
Include texture size in the cache key
2015-04-20 00:08:44 +02:00
Sacha 0315a662cf Enable Symbian again. 2015-04-20 03:32:30 +10:00
Henrik Rydgård e979b3a6ce Merge pull request #7696 from unknownbrackets/texcache2
Unswizzle when reading from the swizzled mirror
2015-04-19 10:27:29 +02:00
Henrik Rydgård 52b7bab829 Merge pull request #7698 from unknownbrackets/bezier-minor
Try to optimize bezier color sampling
2015-04-19 10:24:39 +02:00
Henrik Rydgård 9f7554c08f Merge pull request #7699 from unknownbrackets/d3d9
d3d9: Clear the stencil/alpha on buffer reformat (matching GLES)
2015-04-19 10:23:15 +02:00
Unknown W. Brackets 2e4d20883f d3d9: Reset viewport when clearing framebuf. 2015-04-18 17:40:21 -07:00
Unknown W. Brackets eb98d89fc9 d3d9: clear alpha on switch from 565 buffer.
For parity with OpenGL.
2015-04-18 17:39:18 -07:00
Unknown W. Brackets b12a595325 d3d9: Make sure to clear alpha to zero. 2015-04-18 17:39:18 -07:00
Unknown W. Brackets 5ee062c681 Try to optimize bezier color sampling. 2015-04-18 12:47:21 -07:00
Unknown W. Brackets b726a414d7 Log a reason when invalidating textures.
Makes debugging easier.
2015-04-18 12:42:13 -07:00
Unknown W. Brackets 58563324bd Include texture size in cache key.
This makes Tales of Destiny 2's towns significantly faster.  It may
however cause us to keep textures around for longer - but we still account
for them in our metrics and invalidation.
2015-04-18 12:42:13 -07:00
Unknown W. Brackets ce9f404bef Unswizzle when reading from the swizzled mirror. 2015-04-18 12:39:04 -07:00
Unknown W. Brackets 49783edf6d Reorganize travis, disable Symbian, add Qt. 2015-04-18 01:12:23 -07:00
Unknown W. Brackets 327ca4c96e Stub invalid vertex decoder colors to avoid crash.
These values are invalid, but before we'd call a null pointer if we hit
them.  Should do tests to see what actual behavior is.
2015-04-17 23:24:21 -07:00
Unknown W. Brackets 42bcea7b41 Report when minz/maxz is used in an effective way.
As long as it's outside the viewport it should be clipped anyway.

One concern is, does clipenable affect z?  A game could depend on that.
2015-04-17 12:59:59 -07:00
Henrik Rydgard a9ff7c22fe Reject too-small spline patches. Might help #7690. 2015-04-17 08:33:05 +02:00
Unknown W. Brackets 5d704e48c1 Merge pull request #7688 from hrydgard/spline-fix
Workaround crashes in spline code, fixing #7684
2015-04-16 09:45:07 -07:00
Henrik Rydgard 68893c763f Spline: Fix an unrelated kind-of-bug 2015-04-16 18:32:37 +02:00
Henrik Rydgard 6587f4de8f Spline: Fix #7684 by removing awful epsilons that "fixed" off-by-ones depending on vertex count because of fp rounding. 2015-04-16 18:32:13 +02:00
Henrik Rydgard 2e38762708 Spline: Add commented-out sanity check for debugging 2015-04-16 18:22:08 +02:00
Henrik Rydgard b3305246a3 Spline: Not that it should matter, but move the patch_div clamping down after the subsampling 2015-04-16 18:18:49 +02:00
Henrik Rydgard 6bc9a525f8 Spline: remove n and m, confusing 2015-04-16 18:14:46 +02:00
Unknown W. Brackets b818509734 x86jit: Fix clobbering address in lv.q/sv.q.
We can't let it go into EAX.  Hmm, maybe there's a cleaner way.
Should fix #7686.
2015-04-14 23:17:11 -07:00
Unknown W. Brackets 4aa92ed99e Read fcr1-30 as 0.
Accidentally broken in 91966824bb.
2015-04-13 19:09:53 -07:00
Unknown W. Brackets 8effb3e3a7 Try new Travis Ubuntu version. 2015-04-13 18:49:30 -07:00
Henrik Rydgård a1f5c537d4 Merge pull request #7672 from unknownbrackets/jit-minor
More x86jit micro optimizations for the FPU
2015-04-13 09:57:02 +02:00
Henrik Rydgård 1b0a9a48ae Merge pull request #7683 from unknownbrackets/clut-align
Fix clut load alignment and access outside valid memory
2015-04-13 09:34:54 +02:00
Unknown W. Brackets 67662ee23f Force clut address to align to 16.
Hardware seems to ignore the lower bits when loading.
2015-04-12 22:39:49 -07:00
Unknown W. Brackets 1e8f2c2630 Allow clut load outside valid mem, fill with zero.
And only for the parts outside memory.
2015-04-12 22:38:17 -07:00
Unknown W. Brackets 391ca8bed3 Add functions to validate memory ranges. 2015-04-12 22:37:55 -07:00
Henrik Rydgård ca14497111 Merge pull request #7680 from unknownbrackets/ir-parts
Even more parts of the jit-ir branch
2015-04-12 23:02:43 +02:00
Henrik Rydgård c1b91ff5c1 x86: Add a way to eliminate some mov instructions.
Not currently used yet.
2015-04-12 13:50:23 -07:00
Henrik Rydgård 70fa830ba5 Split out the ReplaceJalTo test logic.
This makes it so the IR, in the future, can work correctly for
replacements.
2015-04-12 13:35:10 -07:00
Henrik Rydgård c6113b831d Remove unused and duplicate define. 2015-04-12 13:16:01 -07:00
Henrik Rydgård f81781d25c Unify JitOptions in FakeJit also. 2015-04-12 13:15:00 -07:00
Unknown W. Brackets 2107771347 Oops, typo. 2015-04-12 13:12:31 -07:00
Henrik Rydgård 45f259178b Merge pull request #7679 from unknownbrackets/ir-parts
More parts of the jit-ir branch
2015-04-12 21:40:01 +02:00
Henrik Rydgård 18769f6ff4 Merge pull request #7678 from unknownbrackets/fbcopy
Add a bit of a hack for smaller framebuf memcpys
2015-04-12 21:38:45 +02:00
Henrik Rydgård a8b50d0c9b Fix MIPSInfo masking for 64-bit flags. 2015-04-12 11:57:49 -07:00
Henrik Rydgård 6dcf56530b Add some missing FPU flags to MIPSTables. 2015-04-12 11:56:04 -07:00
Henrik Rydgård 071b6b986a Best-effort update of the MipsJit prototype 2015-04-12 11:53:16 -07:00