Commit Graph

4450 Commits

Author SHA1 Message Date
Brett Lawson
830bb41728 Make sure that we clean up the thread queue ptr and links upon wake. 2016-07-06 02:25:09 -07:00
Brett Lawson
1e959b1934 Fix Queue funcs affecting ->queue for every queue. 2016-07-06 02:23:48 -07:00
Brett Lawson
b4d7283423 Fix stack tracing to not be broken. 2016-07-06 02:22:33 -07:00
Brett Lawson
0c7f1dbd94 Update state->nia inside JIT so you can use debugger with it. 2016-07-06 01:12:43 -07:00
Brett Lawson
62a867f34f Fix debugger to read correct NIA address for inactive threads. 2016-07-06 01:12:24 -07:00
Brett Lawson
86e92ea15b Added nn::act:IsParentalControlCheckEnabled. 2016-07-06 01:12:07 -07:00
Brett Lawson
662c3be8a0 Update AR instructions to use correct write logic. 2016-07-05 23:45:30 -07:00
Brett Lawson
f5812f1ef0 Implement shader texture-gather operations (FETCH4). 2016-07-05 23:45:03 -07:00
James Benton
356d47110d coreinit: Stub FSCancelCommand. 2016-07-06 01:37:52 +01:00
James Benton
60326f5afe glsl2: Implement MOVA_INT instruction. 2016-07-06 01:37:01 +01:00
James Benton
1b32e04987 snd_core: Stub AXCheckVoiceOffsets. 2016-07-06 01:31:18 +01:00
James Benton
bf5791a09b snd_core: Add some more stubbed AX functions.
Also reorder snd_core_voice in alphabetical order.
2016-07-06 01:05:40 +01:00
James Benton
4870b221d7 glsl2: Log shader disassembly when fail to translate. 2016-07-06 01:05:18 +01:00
James Benton
ed00457040 decaf-sdl: Adjust TV/DRC scales. 2016-07-06 00:40:11 +01:00
Brett Lawson
5aa9b0ec58 Disable scissor test when performing scanbuffer blit. 2016-07-05 04:21:29 -07:00
Brett Lawson
43a9681d92 Do not use named framebuffers with unnamed commands. 2016-07-05 04:21:24 -07:00
James Benton
dd25b0d510 opengl: Support instanced rendering. 2016-07-06 00:10:48 +01:00
James Benton
613f773598 opengl: Improve attribute buffer uploading.
We no longer create an OpenGL buffer per attribute, but instead we do the
correct approach and create only one per attribute buffer.
2016-07-05 23:39:21 +01:00
James Benton
d1fcba141b opengl: Remove dead code. 2016-07-05 22:21:51 +01:00
James Benton
44c50d8b85 opengl: Remove unnecessary FrameBuffer struct. 2016-07-05 22:21:40 +01:00
James Benton
ff4cf42a48 glsl: Remove useless static_cast. 2016-07-05 22:21:12 +01:00
Brett Lawson
89cd82f5e1 Use Blit instead of Copy to transfer Color Buffers to Scan Buffers. 2016-07-05 05:08:57 -07:00
Brett Lawson
9c0a936886 Use glCreateFramebuffers instead of glGenFramebuffers. 2016-07-05 05:08:52 -07:00
Brett Lawson
ac2a01dbac Alpha test logic is 'pass if' not 'discard if'. 2016-07-05 05:08:47 -07:00
Brett Lawson
01e8a70c43 Fix various issues with shader-based alpha testing. 2016-07-05 05:08:42 -07:00
Brett Lawson
5f27b89352 Handle Primitive Restart Indexes as part of immediate handling. 2016-07-05 05:08:37 -07:00
Brett Lawson
ed24f5dd6c Do not insert a PUSH for ALU_ELSE_AFTER. 2016-07-05 05:08:32 -07:00
Brett Lawson
513b70397f Fix DOT4 instruction writing to incorrect PV slot. 2016-07-05 05:08:21 -07:00
James Benton
bd16dd713b snd_core: Remove duplicated function declaration and register for AXSetDRCVSMode. 2016-07-05 21:51:42 +01:00
Brett Lawson
15db202907 Remove function definition that was previously moved. Fixes #164. 2016-07-05 04:49:03 -07:00
James Benton
a91977c9ba opengl: Assert that register index is 4 byte aligned.
This catches all those pesky errors where we did +id instead of +id*4
2016-07-05 19:26:32 +01:00
James Benton
10bd3b0f53 gx2: Fix register index in GX2SetColorBuffer. 2016-07-05 19:26:31 +01:00
James Benton
e66a2b79bd snd_core: Set MaxVoices to 96, just like in a real Wii U. 2016-07-05 19:26:31 +01:00
James Benton
ec8cfb944e snd_core: Stub some more AX functions and move enums to use common enum macros. 2016-07-05 19:26:30 +01:00
James Benton
72349b0176 vpad: Move to use common enum macros. 2016-07-05 19:26:30 +01:00
James Benton
43fa78ef16 gx2: Init color & depth buffer registers before we use them in custom pm4 commands. 2016-07-05 19:26:29 +01:00
James Benton
404803a415 opengl: Make some unimplemented graphics stuff throw exceptions. 2016-07-05 19:26:29 +01:00
James Benton
ac7dab4085 gx2: Move to use common enum macros. 2016-07-05 19:26:28 +01:00
James Benton
d702065af6 coreinit: Move to use common enum macros. 2016-07-05 19:20:01 +01:00
James Benton
0af83202f3 common: Add enum helper macros. 2016-07-05 19:19:45 +01:00
Brett Lawson
489a07cd92 Fix issue with BlendControl register targetting. 2016-07-05 04:52:53 -07:00
Brett Lawson
5f641516cd Handle the default texture format type of 0 by picking RGBA8. 2016-07-05 04:02:59 -07:00
Brett Lawson
b0a575ca5e Support some more texture formats. 2016-07-05 04:02:59 -07:00
James Benton
b17b3979e0 glsl: Explicitly use different names for uniforms in separate shader stages. 2016-07-05 12:01:06 +01:00
Brett Lawson
96e056f73c Stop forcing color buffer to a particular format. 2016-07-05 03:50:50 -07:00
Brett Lawson
72cbe6b85d Updated GPU to GL surface format translation to be more accurate. 2016-07-05 03:50:50 -07:00
Brett Lawson
04b52ff701 Implement AXSetVoiceOffsets and AXGetVoiceOffsets stub functions. 2016-07-05 03:50:50 -07:00
Brett Lawson
4e5b9d8f92 Validate framebuffer completeness before rendering.
This allows us to more easily detect cases where it has failed
as well as allows us to avoid breaking Nsight.
2016-07-05 03:50:50 -07:00
Brett Lawson
53a464a7e2 Store some useful information about surfaces with the surface. 2016-07-05 03:50:49 -07:00
Brett Lawson
1ff153710c Fix issue with context state values being overwritten. 2016-07-05 03:50:49 -07:00