James Benton
edef3aad08
coreinit: Fix MEMAdjustExpHeap inspecting lastUsed instead of lastFree.
2016-08-15 23:01:56 +01:00
James Benton
64e8c0ed1c
bitfield: Fix gcc build.
...
y u do dis gcc plz
2016-08-15 18:23:28 +01:00
James Benton
faa1fa1e85
nn_act: Fix incorrect export name for GetPersistentIdEx.
2016-08-15 17:58:46 +01:00
James Benton
669344548d
nsysnet: Add endian swap functions.
2016-08-15 01:44:23 +01:00
James Benton
e4233a2bd7
snd_core: Implement AXInitWithParams.
2016-08-15 01:44:05 +01:00
James Benton
5040bbb8e0
coreinit: Add parent.enable user config option.
2016-08-15 01:43:59 +01:00
James Benton
8ba914b7d8
gx2: Implement GX2SetDRCConnectCallback.
2016-08-15 01:43:54 +01:00
James Benton
a0b3dbedf4
vpad: Stub VPADStopMotor.
2016-08-15 01:43:49 +01:00
James Benton
a9d3d3984b
nn_ac: Implement nn::acConnectAsync and nn::ac::GetStatus.
2016-08-15 01:43:44 +01:00
James Benton
39f0071e9d
gx2: Implement GX2IsVideoOutReady.
2016-08-15 01:43:38 +01:00
James Benton
4124f9cf04
gx2: Add GX2GetSurface{SwizzleOffset,MipSliceSize}.
2016-08-15 01:43:31 +01:00
James Benton
ee2658116d
coreinit: Implement MEMCreateUserHeapHandle.
2016-08-15 01:43:25 +01:00
James Benton
49cefc8d3a
coreinit: Implement IMGetTimeBeforeAPD.
2016-08-15 01:43:18 +01:00
James Benton
ab0143501d
coreinit: Stub OSWriteRegister16.
2016-08-15 01:43:11 +01:00
James Benton
e6c53d4b87
gx2: Implement GX2RInvalidateSurface.
2016-08-15 01:43:04 +01:00
James Benton
7db1960114
coreinit: Add input device register read/write.
2016-08-15 01:42:58 +01:00
James Benton
555d7ed823
opengl: Fix crash on exit.
...
Exit sends a nullptr command buffer to wake the graphics driver, we must
handle the nullptr gracefully!
2016-08-15 01:42:49 +01:00
James Benton
c2b17f9239
common: Fix bitfield for signed types.
2016-08-15 01:42:33 +01:00
Brett Lawson
f811e9f9d3
Fix bug causing YieldThread to not yield to all threads.
...
The current thread was put at the top of its priority in the
queue (after the new thread is removed). This caused multiple
threads with identical priorities who were yielding to each
other to only execute 2 threads instead of all of them.
2016-08-14 19:47:29 -07:00
Brett Lawson
a3a08d6151
Fix bug causing testThreadCancel to fail to function.
2016-08-14 19:47:25 -07:00
Brett Lawson
b548a5bf48
Implement FSGetCurrentCmdBlock and GSGetCmdPriority.
2016-08-14 19:47:20 -07:00
Brett Lawson
367dd21ae6
Fix DMAE to correctly byte-swap fill values.
2016-08-14 19:47:15 -07:00
Brett Lawson
dd2f8a5a5f
Switch to using steady_clock for CPU alarms.
...
This corrects a bug where our alarms were not firing at
the appropriate times (being off by up to 33ms). This
caused various tests to behave oddly.
2016-08-14 19:47:05 -07:00
Andrew Church
41733668f7
opengl: Fix pixel shader key handling wrt rasterization-disable.
2016-08-15 15:12:10 +09:00
Andrew Church
583a430a3c
opengl: Use the rasterization-disable flag to control pixel shader generation.
...
Transform-feedback shaders could potentially also output pixels, so
we shouldn't always disable pixel shaders just because transform
feedback is enabled.
2016-08-15 14:58:55 +09:00
James Benton
365c374b4d
gx2: Implement GX2Query{Begin,End}ConditionalRender
...
We still must implement the SET_PRED pm4 packet in the opengl_driver though.
2016-08-15 01:12:40 +01:00
James Benton
ebe3d3c194
gx2: Implement GX2QueryGetOcclusionResult.
2016-08-15 01:12:04 +01:00
James Benton
488b3cde8d
gx2: Implement GX2RSetStreamOutBuffer.
2016-08-15 00:12:30 +01:00
James Benton
858a313269
Remove rogue pragma optimize!
2016-08-14 23:24:51 +01:00
James Benton
85f43bbb80
opengl: Implement drawing for pm4 DRAW_INDEX_IMMD.
2016-08-14 23:23:27 +01:00
James Benton
ab06de9a1a
gx2: Implement GX2DrawIndexedImmediateEx
2016-08-14 23:23:02 +01:00
Andrew Church
d3aec4aba0
kernel: Fix missing format argument in coreStateToString().
2016-08-14 22:42:33 +09:00
Brett Lawson
7c6562c416
Clear entire GX2ContextState in GX2SetupContextState.
...
I noticed this while reversing some GX2 stuff.
2016-08-14 03:55:51 -07:00
Brett Lawson
9ae08f3e40
Implement a circular buffer to handle command buffer pool.
...
This more closely mimics the behaviour present in GX2. Note that
we currently require a lock to handle the pool itself, though in
the future, we may be able to implement a lock-free queue which
is used by the GPU to store `completed` buffers in, which can
later be picked up by GX2 when it tries to do an allocation. This
commit also cleans up a few things that were wierd about our
display list implementation.
2016-08-14 03:55:50 -07:00
Brett Lawson
d7ccb8b0b1
Refactor PM4 packet writer to predetermine the size of the packet.
...
This is a required to remove the need to call flushBuffer manually
from outside of the pm4 management code. This is a prerequisit of
updating the PM4 buffer pool code to behave more like GX2.
2016-08-14 03:55:50 -07:00
Brett Lawson
1d946fb371
Correct bug in bitfield size for pm4 packet header size.
2016-08-14 03:55:50 -07:00
Brett Lawson
2ffabcb830
Added support for rendering screen-space primitives.
2016-08-14 03:55:50 -07:00
Brett Lawson
e62806e788
Do not check fetch shader attribute count for valid draw.
...
It is legal to not have any input attributes for a draw call. In
these cases, the shader usually uses its constant buffers as well
as gl_VertexId.
2016-08-13 17:03:33 -07:00
Andrew Church
5031db7a31
opengl: Fix surface memory size calculation.
2016-08-14 06:08:20 +09:00
Andrew Church
68cb61b91c
gx2: Shift depth buffer addresses by 8 in PM4 depth-clear packet.
2016-08-14 05:31:52 +09:00
James Benton
3cce7c4cbd
decaf: When booting .rpx files mount /vol/code rather than just the rpx file.
...
This allows us to access any .rpl in the same folder.
2016-08-13 16:08:17 +01:00
James Benton
1d3f471b77
coreinit: Fix sneaky pointer shenanigans in MEMCreateUnitHeapEx.
2016-08-13 15:57:49 +01:00
James Benton
a93773b1a1
gx2: Implement GX2SurfaceIsCompressed.
2016-08-13 15:13:06 +01:00
James Benton
eb768dbfae
gx2: Fix bug where GX2RCreateBufferUserMemory would overwrite flags.
2016-08-13 15:01:31 +01:00
James Benton
6addccbc02
decaf: Add support for defining a content path external to game path.
2016-08-13 14:53:42 +01:00
James Benton
bee817b2a8
coreinit: Stub ENVGetEnvironmentVariable.
2016-08-13 14:42:55 +01:00
James Benton
9880873d06
coreinit: Call exit when a application entry point returns.
2016-08-13 14:38:24 +01:00
James Benton
5ee2516b74
coreinit: Fix bspGetHardwareVersion.
2016-08-13 14:25:34 +01:00
James Benton
999bdcc172
coreinit: Fix va_list offsets in coreinit_debug
2016-08-13 14:20:32 +01:00
James
724ea79ef1
Merge pull request #278 from achurch/data-buffer-expand-fix
...
opengl: Fix failure to upload new data when expanding a data buffer.
2016-08-13 13:41:54 +01:00