Jan Beich
5f278b2d94
Unbreak build with SSE 4.1 (clang -march=penryn)
...
Common/ColorConv.cpp:199:33: error: use of undeclared identifier '_mm_packus_epi32';
did you mean '_mm_packs_epi32'?
_mm_store_si128(&dstp[i / 2], _mm_packus_epi32(c1, c2));
^~~~~~~~~~~~~~~~
_mm_packs_epi32
/usr/bin/../lib/clang/3.6.0/include/emmintrin.h:1254:1: note: '_mm_packs_epi32'
declared here
_mm_packs_epi32(__m128i __a, __m128i __b)
^
Common/ColorConv.cpp:241:33: error: use of undeclared identifier '_mm_packus_epi32';
did you mean '_mm_packs_epi32'?
_mm_store_si128(&dstp[i / 2], _mm_packus_epi32(c1, c2));
^~~~~~~~~~~~~~~~
_mm_packs_epi32
/usr/bin/../lib/clang/3.6.0/include/emmintrin.h:1254:1: note: '_mm_packs_epi32'
declared here
_mm_packs_epi32(__m128i __a, __m128i __b)
^
2 errors generated.
GPU/Common/TextureScalerCommon.cpp:294:6: error: unknown type name '__m128'
__m128 result = _mm_set1_ps(0.0f);
^
GPU/Common/TextureScalerCommon.cpp:294:22: error: use of undeclared identifier
'_mm_set1_ps'
__m128 result = _mm_set1_ps(0.0f);
^
GPU/Common/TextureScalerCommon.cpp:305:9: error: unknown type name '__m128i'
__m128i samp...
^
GPU/Common/TextureScalerCommon.cpp:305:26: error: use of undeclared identifier
'_mm_cvtsi32_si128'
...__m128i sample = _mm_cvtsi32_si128(data[csy*w + csx]);
^
GPU/Common/TextureScalerCommon.cpp:307:9: error: unknown type name '__m128'
__m128 col ...
^
GPU/Common/TextureScalerCommon.cpp:308:31: error: use of undeclared identifier
'_mm_set1_ps'
...col = _mm_mul_ps(col, _mm_set1_ps(weight));
^
GPU/Common/TextureScalerCommon.cpp:314:6: error: unknown type name '__m128i'
__m128i pixel = _mm_cvtps_epi32(_mm_...
^
GPU/Common/TextureScalerCommon.cpp:314:57: error: use of undeclared identifier
'_mm_set1_ps'
...__m128i pixel = _mm_cvtps_epi32(_mm_mul_ps(result, _mm_set1_ps(bicubicInvSum...
^
8 errors generated.
2015-05-26 15:20:10 +03:00
Unknown W. Brackets
ba77ad607e
Erp, dumb typo.
2015-05-25 15:47:14 -07:00
Henrik Rydgård
43744b0239
Merge pull request #7741 from hrydgard/frame-profiler
...
Frame profiler overlay
2015-05-26 00:42:01 +02:00
Henrik Rydgard
0b2a1dfe53
Profile a few more scopes
2015-05-26 00:39:27 +02:00
Unknown W. Brackets
4110a24d8f
Fix Direct3D9 framebuffer upload conversion funcs.
...
All of the 16 bit formats were, afaict, wrong in different ways.
2015-05-25 10:47:37 -07:00
Unknown W. Brackets
5d244229ba
Silence a type conversion warning.
2015-05-25 10:07:05 -07:00
Unknown W. Brackets
f78acfb867
Cleanup a few things in SSE CheckAlpha.
2015-05-25 07:39:31 -07:00
Unknown W. Brackets
c75010931c
Use SSE in CheckAlpha scanning.
2015-05-24 22:55:43 -07:00
Henrik Rydgard
6f4cea860c
Split texture load profiling into decode and load/replace. Make profiler work on Android.
2015-05-24 23:45:40 +02:00
Henrik Rydgard
6b1df631a6
Move the texcache measurements to strictly include only actual texture loading, and not framebuffer shenanigans etc.
2015-05-24 23:45:39 +02:00
Henrik Rydgard
2e26a4798e
Scale the frame profiler graph dynamically
2015-05-24 23:45:37 +02:00
Henrik Rydgard
26624709f7
Hook up the frame profiler to a few measurements
2015-05-24 23:45:36 +02:00
Unknown W. Brackets
ded92aa977
Resize here just to be safe.
...
Not that a texture ought to be > 2MB, but in case we lower that initial
buffer size or something.
2015-05-24 11:06:34 -07:00
Unknown W. Brackets
bbe15d2518
Add a NEON color conv for 5551 -> 1555.
2015-05-23 11:30:06 -07:00
Unknown W. Brackets
4880c29a90
Use TextureDecoderNEON funcs statically on arm64.
...
Not sure if they were being used before (HAVE_ARMV7...?)
2015-05-23 11:30:05 -07:00
Henrik Rydgård
83182a0469
Merge pull request #7739 from hrydgard/screen-rotation
...
Implement basic screen rotation as requested in #297
2015-05-18 16:31:19 +02:00
Unknown W. Brackets
1767bd958c
Move color conversion funcs to ColorConv.
...
This paves the way a bit for NEON conversion funcs.
2015-05-17 13:45:30 -07:00
Unknown W. Brackets
7d2507e0cc
d3d9: Also track bone matrices for morph here.
2015-05-16 21:54:07 -07:00
Unknown W. Brackets
425ff3d78f
Track bone matrix updates for future morph usage.
...
This makes them upload later, if/when they're needed.
Fixes #7746 , Shadow of Destiny artifacts when software skinning is
enabled.
2015-05-16 21:49:25 -07:00
Unknown W. Brackets
c6b55459b1
vertexjit: Skip soft skinning setup when morphing.
...
This makes x86 match arm.
2015-05-16 21:47:13 -07:00
Henrik Rydgard
95b6b50fd5
Disable screen rotation in non-buffered rendering (as it won't worK)
2015-05-12 22:44:18 +02:00
Henrik Rydgard
3f7830743a
Implement basic screen rotation as requested in #297 . Does not work correctly in non-buffered rendering yet.
2015-05-12 21:01:15 +02:00
Henrik Rydgard
5d0d67140f
Reverse Y when checking for rotated rects in Direct3D 9. Fixes #7738 .
2015-05-12 20:01:04 +02:00
Unknown W. Brackets
b782165b6a
Avoid some division.
2015-05-10 14:39:38 -07:00
Unknown W. Brackets
ea36554c6a
software: Examine v0/v1 for uv rotation.
...
If we determine tl/br heuristically, it can never rotate correctly.
Anyway, this still is not rotating correctly...
2015-05-10 14:37:14 -07:00
Unknown W. Brackets
a090b5853f
Process UV rotation even in full transform.
2015-05-10 14:17:20 -07: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
a4a10588ed
Merge pull request #7697 from unknownbrackets/texcache
...
Include texture size in the cache key
2015-04-20 00:08:44 +02: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
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
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
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