Commit Graph

4450 Commits

Author SHA1 Message Date
Lioncash
640e795bb7 jit_vmemruntime: Add missing override specifiers 2016-08-07 10:50:58 -04:00
Markus Wick
12359b9437 decaf-sdl: Rewrite emulated screen position.
The new code uses integer math to ensure that no pixel will ever be dropped,
and at the same time, no useless bar is shown.
It also fixes an assert error because of floating point math, and the worse
one, because of height >> width.
There is a new parameter for an additional border around both screens, but
it's main purpose is to test this code with eg a single pixel line.

No idea about the exact coding style, but I've also dropped "auto". It was
a mixed usage of float and doubles, hard to check which one is of which format.
2016-08-07 02:01:27 +02:00
Brett Lawson
d3ae3116ab More AX structures reversed... 2016-08-06 01:02:48 -07:00
Brett Lawson
2b907ca8b0 Use the appropriate constant in latte VTX transpilation. 2016-08-03 21:35:39 -07:00
Brett Lawson
6e86a79609 A bunch of different AX implementations and fixes.
We now use the fixed point class to handle some cases
of fixed point.  I also reversed a bunch of things out
of sndcore2.rpl.  Not all of the things I reversed are
currently being used (currentOffsetFrac for instance).
2016-08-03 20:18:30 -07:00
Brett Lawson
0f71013d5b Added SG14 fixed_point library and some common fixed types. 2016-08-03 20:18:25 -07:00
Brett Lawson
b98b8efd36 Added times (to microsecond accuracy) to the log file. 2016-08-03 20:18:12 -07:00
Brett Lawson
1e01983e2e Merge pull request #214 from achurch/llvm-bug-workaround
interpreter: Work around a stupid LLVM bug.
2016-08-05 10:11:40 -07:00
James
c420713981 Merge pull request #251 from achurch/unaligned-bcN-size-fix
Work around compressed textures created with Wx1 or 1xH size.
2016-08-05 17:22:24 +01:00
Andrew Church
f7f1d7bce0 opengl: Avoid redundant GL calls from register setting. 2016-08-05 21:35:49 +09:00
Andrew Church
12f89eb6d9 Work around compressed textures created with Wx1 or 1xH size. 2016-08-05 20:40:45 +09:00
James Benton
4ef43ec826 gx2: Fix formatting of one arg per line for gx2_shaders 2016-08-05 12:26:07 +01:00
James Benton
285ef51be3 gx2: Implement GX2StreamOutContextMode::FromOffset for GX2SetStreamOutContext 2016-08-05 12:22:35 +01:00
Andrew Church
29a324f11c Implement transform feedback (GX2*StreamOut* functions). 2016-08-05 20:03:46 +09:00
Andrew Church
25586a28a0 opengl: Cache current graphics state to avoid redundant GL calls. 2016-08-05 19:45:46 +09:00
James
da79e7c56f Merge pull request #249 from achurch/shadow-sampler
opengl: Fix handling of depth textures.
2016-08-05 11:43:21 +01:00
Andrew Church
e31e1f574f opengl: Fix handling of depth textures.
Shadow samplers require depth-format textures (using color textures is
undefined behavior, even if they have the same bit format) and require
that the corresponding sampler objects have depth comparison enabled.
2016-08-05 18:54:32 +09:00
James
08ed251173 Merge pull request #247 from achurch/surface-size-fix
opengl: Record the proper size of surfaces based on the pixel format.
2016-08-05 10:50:40 +01:00
Andrew Church
abafae5154 opengl: Record the proper size of surfaces based on the pixel format.
Also fix the recorded size for cubemap textures.
2016-08-05 17:54:11 +09:00
Andrew Church
10f874843d opengl: Fix failure to bind stencil attachment point for framebuffers. 2016-08-05 15:33:01 +09:00
James
5d9a124335 Merge pull request #245 from achurch/config-system-region
Read system::region from config.json.
2016-08-04 20:18:20 +01:00
Andrew Church
6b65812c1d Read system::region from config.json. 2016-08-05 03:48:10 +09:00
Andrew Church
4e4e799b95 Avoid silently aborting if config.json has a syntax error. 2016-08-05 03:44:57 +09:00
Andrew Church
41428db7b9 opengl: Implement GET_TEXTURE_INFO. 2016-08-05 00:43:11 +09:00
James Benton
d92925d662 common: Improve bitfield syntax.
- bitfield.field() instead of .field().get()
- bitfield.field(x) instead of .field().set(x)
2016-08-04 16:07:21 +01:00
James
b571ea211e Merge pull request #240 from lioncash/disasm
espresso_disassembler: Fix disassembly naming of bgt
2016-08-03 22:25:19 +01:00
Lioncash
f748c02e48 espresso_disassembler: Fix disassembly of bgt 2016-08-03 16:38:42 -04:00
Lioncash
6fbd3f283d jit: Make sBaseRelocCode a std::array
Same thing, less size hardcoding
2016-08-03 15:51:10 -04:00
Lioncash
3b5c30467a jit: Fix array size
This should have a size of 32, otherwise out of bound reads can occur
2016-08-03 15:42:37 -04:00
Andrew Church
2261f0e5be opengl: Support 3D textures. 2016-08-04 00:13:37 +09:00
James Benton
6cf9ece11d Fix some type conversion issues brought up by static analysis. 2016-08-03 11:49:41 +01:00
James Benton
b89f3f95c7 coreinit: Fix some potential null ptr dereferences. 2016-08-03 11:49:41 +01:00
Brett Lawson
a45ca9734f Fix bug causing OSSignalEventAll not to wake everyone.
We were not waking threads which did not have a timeout.  This
fixes a softlock in LEGOMSH (it still doesn't render though).
2016-08-03 01:27:52 -07:00
Brett Lawson
9933251607 Remove upsample stage assertion for now. 2016-08-03 01:10:32 -07:00
Brett Lawson
768e091356 Implement OSIsAddressRangeDCValid method which is spammed. 2016-08-03 01:10:32 -07:00
James Benton
ee4d08286c coreinit: Implement FSRemove. 2016-08-03 01:50:27 +01:00
Brett Lawson
562e839ed3 Implemented some more SAVE functions. 2016-08-02 17:27:14 -07:00
Brett Lawson
a7ffbb8558 Implement some less common file system functions. 2016-08-02 17:27:14 -07:00
James Benton
d9959dff13 filesystem: Add deleteChild and deleteFile. 2016-08-03 00:44:27 +01:00
Brett Lawson
2f1ba8d3a6 Update voice sample data in AXSetVoiceEndOffsetEx. 2016-08-01 19:46:53 -07:00
Brett Lawson
daca36c50c Update voice sample data in AXSetVoiceLoopOffsetEx.
This fixes the audio loop issue!
2016-08-02 15:26:45 -07:00
Brett Lawson
4887ab6968 Make voice offset sample data const. 2016-08-02 15:26:44 -07:00
Brett Lawson
df7b9eb093 Use decaf_check to check SetVoiceOffsets format. 2016-08-02 15:26:44 -07:00
Brett Lawson
576fa63bfe Reverse some more AX structures. 2016-08-02 15:26:44 -07:00
James Benton
f71bf8d1d5 gx2: Implement GX2RBufferExists. 2016-08-02 17:23:07 +01:00
James Benton
329b9ea296 gx2: Implement GX2R display list functions. 2016-08-02 11:39:52 +01:00
James Benton
c4cd7037c1 loader: Fix broken TLS relocations. (DTPMOD32, DTPREL32) 2016-08-02 11:38:08 +01:00
James Benton
eaffd3c751 coreinit: Add some GHS syscall IDs. 2016-07-31 21:30:05 +01:00
James Benton
50b1936378 loader: Revert previous incorrect relocation fix.
Was actually a bug in wut not having correct section header alignment.
2016-07-31 21:30:05 +01:00
James Benton
752eb40c7d loader: Fix handling of relocation addend across section boundaries. 2016-07-31 00:08:15 +01:00