Lioncash
51e5ea7f40
loader: Return nullptr instead of false in loadRPL
2015-10-14 00:42:56 -04:00
Lioncash
570710aa3b
memory: return false instead of nullptr in valid()
2015-10-14 00:36:39 -04:00
Lioncash
4f8b59cb04
hlsl_alu_op2: Fix assignments in conditions
2015-10-13 21:42:55 -04:00
Lioncash
a668706686
filesystem_win_folder: Fix assignment in condition
2015-10-13 21:41:17 -04:00
Lioncash
59ac05f043
coreinit_alarm: Fix assignment in condition
2015-10-13 21:40:19 -04:00
James Benton
54b8638bbd
Fix sdaBase / sda2Base being swapped in registers.
2015-10-14 01:48:10 +01:00
James Benton
9e9d574e0b
I found some naughty whitespace.
2015-10-14 01:17:31 +01:00
Brett Lawson
fb95b6d89b
Make some kind of uniform blocks...
...
These are not accurate, but they do allow us to render
stuff far more correctly than before!
2015-10-13 21:15:45 -03:00
James Benton
320b522c10
Move mesa code to its own file.
2015-10-14 00:29:26 +01:00
James Benton
2bd18d0082
Cleanup some HLSL generation stuff.
2015-10-13 20:11:06 -03:00
Brett Lawson
2698001af1
Integrate HLSL generated shaders.
...
Note: This fails due to some bugs fixed
in the next commit.
2015-10-13 20:11:06 -03:00
James Benton
8c9d064564
Add Adobe Source Sans Pro Regular as font for OSGetSharedData.
2015-10-14 00:08:48 +01:00
James Benton
ecd4ed6045
Fix sdaBase not being set at appropriate time.
2015-10-14 00:08:44 +01:00
James Benton
ac62a204e1
Hacky testing time of HLSL generator.
2015-10-13 22:13:49 +01:00
Brett Lawson
327427e4bc
Set default log level to info instead of trace.
...
Trace level logging was causing the emulator
to execute astoundingly slowely...
2015-10-13 18:07:53 -03:00
Brett Lawson
492296a006
Started repairing JIT. Added check to ensure all instructions registered.
2015-10-13 18:07:27 -03:00
Brett Lawson
89afa578d5
More rendering things, mainly texture related.
2015-10-13 02:59:23 -04:00
Brett Lawson
49800c83b8
Update HostLookup to use a map for now.
...
Using DriverData breaks because we cannot assume
the games will have zero-data there the first
time we see a texture. We use a map for now, but
this should be optimized later.
2015-10-13 15:45:23 -03:00
James Benton
d71b888efb
Add SAMPLE_C instruction.
2015-10-12 20:28:25 +01:00
James Benton
51adcf8fa2
Fix hlsl SAMPLE.
2015-10-12 20:28:19 +01:00
James Benton
7da0b6d5fe
Add some data for GX2VertexShader and GX2PixelShader structs.
2015-10-12 20:28:03 +01:00
James Benton
a7b223d823
Add analyse stage to shader decompiler.
...
This stage is to track variable usage.
Clean up the PV / PS mess, now only declared when needed.
2015-10-12 20:26:48 +01:00
James Benton
57b1f3441d
Fix POS export disassembly showing wrong id.
2015-10-12 19:24:22 +01:00
James Benton
8e1fe4f755
Fix conditional block else hlsl generation.
2015-10-12 19:20:10 +01:00
James Benton
c1dd2d2607
Add GX2DumpTexture debug function to dump information about textures.
2015-10-11 23:55:00 +01:00
James Benton
024f6ccd6c
Dump HLSL of shaders.
2015-10-11 22:55:41 +01:00
James Benton
32b4c755ef
Add HLSL EXP.
...
Same as EXP_DONE except _DONE variant is for the final param of a type.
2015-10-11 22:55:37 +01:00
James Benton
965a30aad3
Fix build of trace.cpp
...
And some minor refactoring.
2015-10-11 22:55:32 +01:00
James Benton
0324a8ad9d
Add ALU source relative address mode support.
2015-10-11 22:55:26 +01:00
James Benton
ff9980cf4e
Fix shader else statement decompilation.
2015-10-11 22:55:21 +01:00
James Benton
c02aef3ba6
Use std::unique_ptr in label generation to handle ownership.
2015-10-11 22:55:13 +01:00
Brett Lawson
7cb55671ec
Some of the most basic reqirements of rendering. See #40 !
2015-10-11 03:05:32 -03:00
Brett Lawson
d71a86eb6c
A couple steps closer towards rendering some game wireframe.
2015-10-10 02:40:51 -03:00
James Benton
680c069fb6
Refactor loader.
...
And a few other refactorings.
Introduce ppcaddr_t which we should use everywhere for virtual addresses.
2015-10-08 23:08:49 +01:00
James Benton
657fcb57a2
Try out this gsl array_view thing.
2015-10-08 23:08:44 +01:00
James Benton
a4ea8161ea
Oopsy
2015-10-08 10:26:28 +01:00
James Benton
af3911d5cb
Fix fmul copy pasta.
...
hi mum im famous
2015-10-07 18:15:56 +01:00
James Benton
56c8cb7f79
Ignore trace fields for disassembler.
2015-10-07 17:35:17 +01:00
James Benton
c2b1013766
Add GX2RBuffer.
2015-10-07 17:35:16 +01:00
James Benton
f07e81bd84
Add support for gpu EXP instructions.
...
unique_ptr-ify some stuff.
2015-10-07 17:35:16 +01:00
James Benton
534c1fe87d
Fix cores not waking on interrupt.
2015-10-07 17:29:04 +01:00
Brett Lawson
85f382d888
Added ability to perform a 'step over' when debugging.
2015-09-14 19:49:14 -04:00
Brett Lawson
5c839ed2a5
Implement Reserved instructions more correctly.
2015-09-14 10:23:19 -03:00
Brett Lawson
fc0c95bf98
Added some assertions to ensure StateField matches for DebugNet.
2015-09-10 19:44:28 -04:00
Brett Lawson
673ac7ef49
Added missing paired-singles instruction FPSCR flags.
2015-09-09 22:45:08 -04:00
Brett Lawson
d848008d8b
Updated all FPR usage to reflect 128-bit FPRs.
2015-09-09 22:37:32 -04:00
James Benton
3011e7b7be
Fix fsel.
...
Should not affect fpscr or fprf.
2015-09-10 01:58:24 +01:00
James Benton
537a4a1eeb
Change the way floating point registers are stored.
2015-09-10 00:21:26 +01:00
Brett Lawson
779a0178c1
Improved the tracer's ability to determine register changes.
...
There is also a trace verifier which ensures that a trace will
be able to successfully recover the original state when moving
backwards in trace-time.
2015-09-08 22:51:59 -04:00
Brett Lawson
a9b2f096e7
Correct issue with mulli using the Rc field.
...
mulli does not have a Rc field in its instruction encoding.
2015-09-08 22:50:27 -04:00