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
be7d1d1169
Add a bit of a hack for smaller framebuf memcpys.
...
Hopefully this doesn't false-positive in any other games. Helps Valkyrie
Profile's battle entry effect.
2015-04-12 11:05:28 -07:00
Unknown W. Brackets
fa85229d3d
Use a temporary for more code clarity.
...
Static analysis thinks there are typos here. Temporary is clearer and
possibly faster depending on compiler intelligence.
2015-04-10 11:48:45 -07:00
Henrik Rydgard
db110d60a1
Rename some colorconv functions
2015-04-08 23:01:17 +02:00
Henrik Rydgard
4621586342
Move simple conversion functions out of the ColorConv header.
2015-04-08 22:52:49 +02:00
Henrik Rydgard
a19ea78b4b
Consolidate the texture scaler code.
2015-04-08 22:52:49 +02:00
Henrik Rydgard
6660985210
Extract a bunch more color conversion loops.
2015-04-08 22:52:48 +02:00
Henrik Rydgard
b5acf15cc9
Extract some explicit loops into calls to color conversion functions.
2015-04-08 22:52:48 +02:00
Henrik Rydgard
c2cf2bd97e
Move some more color conversion functions to ColorConv
2015-04-08 22:52:47 +02:00
Henrik Rydgard
31961eace9
Color conv attempt 2. Start consolidating simple color conversion functions in a single header+cpp.
2015-04-08 22:52:46 +02:00
Henrik Rydgard
fdf5c36865
Fix line endings of a few project files to be consistent. Hopefully will avoid the annoying merge issues in the future.
2015-04-08 22:52:45 +02:00
Henrik Rydgård
a67f009679
Merge pull request #7668 from hrydgard/consolidate-spline
...
Consolidate spline code
2015-04-08 22:20:55 +02:00
Henrik Rydgard
058499e5bf
De-dupe the spline code
2015-04-08 21:44:54 +02:00
Henrik Rydgard
2002576e9d
DrawEngineCommon: Make it possible to call Flush from shared code.
2015-04-08 21:37:54 +02:00
Henrik Rydgard
ed8a3eaf6d
Move the vertex decoder cache into DrawEngineCommon
2015-04-08 21:35:00 +02:00
Henrik Rydgård
050a7c1a85
Merge pull request #7667 from unknownbrackets/warnings
...
Fix some warnings
2015-04-08 21:21:08 +02:00
Henrik Rydgard
56a596d099
Fix line endings in some vcproj.filters files. Should prevent future annoying conflicts, althoug this one is ugly.
2015-04-08 20:58:04 +02:00
Unknown W. Brackets
08032e4b14
Fix a leak in an error condition.
2015-04-08 11:58:00 -07:00
Unknown W. Brackets
10626e356d
Avoid a potential divide by zero.
2015-04-08 11:57:59 -07:00
Unknown W. Brackets
5285f977e4
Initialize a member that was missed.
...
Oops, this didn't matter much but it should start at 0.
2015-04-08 11:29:28 -07:00
Henrik Rydgård
d0b35e88a2
No need to generate a zero register..
2015-04-06 18:13:46 +02:00
Henrik Rydgård
a7b7fedc9f
Cleaup. Add a missing vertex dec func.
2015-04-06 18:13:45 +02:00
Henrik Rydgård
4bd95b0cb7
ARM64: Fixup software skinning. Now seems to work, at least in a bunch of games..
2015-04-06 18:13:45 +02:00
Henrik Rydgård
459ba28655
ARM64: SW skinning runs without crashing but is broken.
2015-04-06 18:13:44 +02:00
Henrik Rydgård
f937b4b74b
ARM64 vtxdec: Basic implementation of the 16-bit color formats
2015-04-06 18:13:43 +02:00
Henrik Rydgård
597595f279
ARM64: Start implementing soft-skinning. Disabled for now, needs work.
2015-04-06 18:13:43 +02:00
Henrik Rydgård
a710abb58b
A bunch more vertex decoder funcs
2015-04-06 18:13:41 +02:00
Henrik Rydgård
fbaffdceab
Remove some outdated comments, minor stuff
2015-04-06 18:13:36 +02:00
Henrik Rydgard
ff758f58ad
ARM64: The Return of the Pointer Truncator - The Movie
2015-04-06 18:13:26 +02:00
Henrik Rydgard
db0fd1042f
Add "Arm64EmitterTest" which can run on startup to play around with instructions.
2015-04-06 18:13:26 +02:00
Henrik Rydgard
1e9fdf08c5
Temporarily disable vertexjit
2015-04-06 18:13:23 +02:00
Henrik Rydgard
5496b3d3b1
ARM64: Some minor vertex decoder work. Hm, I think SCVTF will actually divide by 128.0, not 127.0 :/
2015-04-06 18:13:20 +02:00
Henrik Rydgard
a12e448fb4
ARM64: Stub vertex decoder jit, implementing just enough for the cube.elf cube.
2015-04-06 18:13:18 +02:00
Henrik Rydgard
b309c83973
Initial work on ARM64, based on the ARM jit.
2015-04-06 18:13:01 +02:00
Unknown W. Brackets
2450724be2
Make Memory::Memcpy() execute memchecks directly.
...
This makes it easier to handle breakpoints in HLE.
2015-04-05 18:09:20 -07:00
Henrik Rydgård
79fc557ad1
Merge pull request #7626 from sum2012/GPU-minor
...
GPU:Avoid "decimate" the usageFlags corrupted memory
2015-03-23 15:22:08 +01:00
sum2012
3549705195
Use better solution from @Bigpet
2015-03-23 20:29:51 +08:00
Unknown W. Brackets
5fa3bf0eb9
Move the viewport transform to the proj matrix.
...
The viewport has an implementation defined maximum size. On some devices,
it's as low as 2048 or 4096.
Tales of Destiny 2, for example, uses a large viewport, which may be
outside this range at 1x or 2x on such devices. This makes it work much
better. It may also have better subpixel precision.
2015-03-22 23:35:24 -07:00
sum2012
433347e3b6
GPU:Do not "decimate" the usageFlags.
...
Fix #7625
2015-03-23 07:25:44 +08:00
Henrik Rydgård
cf7115aa17
Merge pull request #7599 from unknownbrackets/texscaling
...
Avoid constant reload of frequently changed textures
2015-03-18 18:11:30 +01:00
Unknown W. Brackets
0dda098b2b
Oops, forgot to actually reset vertex shader.
2015-03-15 17:05:23 -07:00
Unknown W. Brackets
d00f6adf11
Avoid querying attrib locations in depal runtime.
2015-03-15 14:44:13 -07:00
Unknown W. Brackets
8f8aeaef77
Improve depal shader failure cases.
...
Primarily, this handles lost (e.g. Android sleep) better, in that it
recreates the vertex shader. Previously, this would simply cause all
future depal operations to fail, and to constantly retry compiling and
linking the failed program.
2015-03-15 13:15:16 -07:00
Unknown W. Brackets
7ee9112425
Avoid constant reload of frequently changed tex.
...
If we detect that it's frequently changing, this will cause it to spiral
into an infinite loop of staying frequently changing and reloading to try
to scale.
2015-03-15 09:10:09 -07:00
Henrik Rydgård
085ecc0a64
Merge pull request #7591 from unknownbrackets/gpu-framebuf
...
Better glInvalidateFramebuffer usage, track usage flags better
2015-03-15 11:18:30 +01:00
Unknown W. Brackets
6b26e1a591
Read pending vertex data before exiting gpu loop.
...
Fixes save pictures in Crimson Gem Saga.
2015-03-14 18:11:24 -07:00
Unknown W. Brackets
0f38a1f459
Invalidate buffers after using for post shaders.
2015-03-14 16:16:32 -07:00
Unknown W. Brackets
e7b830ff61
Invalidate buffers used for download.
2015-03-14 16:11:20 -07:00
Unknown W. Brackets
d8478255d4
Invalidate temp FBOs each frame.
...
These are used for depal and render-to-self, as well as shader blending.
2015-03-14 16:02:04 -07:00