Commit graph

5222 commits

Author SHA1 Message Date
Lioncash
66b4807efe hlsl_alu_op2: Fix predicate operators 2015-10-14 18:47:07 -04:00
Brett Lawson
9793b01db3 Fix bug causing JIT to trample data. 2015-10-14 12:30:25 -03:00
Brett Lawson
0fc01ceaee Merge pull request #47 from lioncash/shift
jit: fix a comparison in shiftTo
2015-10-14 12:19:41 -03:00
Lioncash
c955a94c0d jit: fix a comparison in shiftTo 2015-10-14 11:14:45 -04:00
Brett Lawson
fa87195405 Fix vertex buffer copying bug identified by @darkf.
Also rewrote the vertex buffer endian-swap code to be
more performant and better organized.  Including being
able to handle alternate endian-swap modes.
2015-10-14 11:45:09 -03:00
James Benton
92ce0ac033 Refactor system types to reduce header file spaghetti mess.
Replace p32 with virtual_ptr.
Remove many dependencies on memory.h by introducing memory_translate.h.
Move struct size checking macros to structsize.h
2015-10-14 01:27:10 +01:00
James Benton
a744ead4f6 Fix ps_sum0. 2015-10-14 10:53:05 +01:00
Brett Lawson
3d7e12dedb Merge pull request #46 from lioncash/nullptr
loader: Return nullptr instead of false in loadRPL
2015-10-14 02:41:30 -03:00
Brett Lawson
f9e3f30e3a Implement some blending stuff.
Gets rid of that dirty background on the loading
indicator in AmiiboSettings.
2015-10-14 02:36:24 -03:00
Brett Lawson
216b52b617 Fixed bug where context state was trampled. 2015-10-14 02:36:24 -03:00
Lioncash
51e5ea7f40 loader: Return nullptr instead of false in loadRPL 2015-10-14 00:42:56 -04:00
Brett Lawson
340b597d04 Merge pull request #45 from lioncash/bool
memory: return false instead of nullptr in valid()
2015-10-14 01:38:10 -03:00
Lioncash
570710aa3b memory: return false instead of nullptr in valid() 2015-10-14 00:36:39 -04:00
Brett Lawson
03feae0912 Merge pull request #43 from lioncash/compare
Fix some assignments in conditions.
2015-10-14 01:02:22 -03: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
fb1699568b Add C++GSL library as submodule. 2015-10-08 23:08:37 +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