Commit graph

5222 commits

Author SHA1 Message Date
James Benton
d299ef2fe2 Fix int constants in shader decompiler. 2015-10-26 00:11:53 +00:00
James Benton
030f2637e1 Fix root signature. 2015-10-25 23:37:05 +00:00
James Benton
0b8a0c401b Fix build. 2015-10-25 22:40:01 +00:00
Brett Lawson
2db9fb1f8f Implement PrimitiveRestartIndex and split Pixel/Vertex Registers. 2015-10-26 02:05:04 -03:00
Brett Lawson
71ea16be36 Minor changes to shader GPR numbers.
Don't want to be at 666 commits on the project either.
2015-10-25 02:05:41 -03:00
Brett Lawson
89123f72b9 Implement Pixel Uniforms.
This is based on the assumption that both the shader
and vertex stages both share the same register space.
2015-10-25 02:02:48 -03:00
Brett Lawson
96ac1b990f Add logging messages when calling GX2 stubs. 2015-10-25 02:02:48 -03:00
Brett Lawson
48ed67c21b Woah! Display Lists kinda work maybe-ish now? 2015-10-25 02:02:48 -03:00
Brett Lawson
b15ebbfba7 Add command list tracking thingy. 2015-10-25 02:02:48 -03:00
James Benton
81c8d36aed Change OSSleepTicks to use OSSleepThread. 2015-10-24 13:14:49 +01:00
James Benton
340d51e4dc Change region to the land of freedom.
America wins again.
2015-10-24 13:08:38 +01:00
Brett Lawson
7e7de64f40 Fix display lists so that they do not trample memory. 2015-10-24 03:54:28 -03:00
Brett Lawson
2f0b2186f7 Do not lock scheduler for alarm setup in SleepTicks.
This can cause a deadlock (it was stopping DKCTF from progressing).
2015-10-24 03:29:52 -03:00
Brett Lawson
558bc7e162 Handle OSRunThread return value correctly.
Some games rely on this to determine if they can use a
particular default thread or not.
2015-10-24 03:28:55 -03:00
Brett Lawson
b26d74a2e0 Log to trace when a thread is queued to be run. 2015-10-24 03:28:13 -03:00
Brett Lawson
e80a910a87 Added OSCoherencyBarrier stub as it was being spammed. 2015-10-24 02:41:29 -03:00
Brett Lawson
908a6492d0 Properly handle multiple textures and QUAD decomposition. 2015-10-24 01:39:49 -03:00
Brett Lawson
8990a4c644 Added alignment support to GPU buffers. 2015-10-24 01:39:08 -03:00
Brett Lawson
a18810a0db Added a log message for an nn::act pointer method. 2015-10-24 01:38:50 -03:00
Brett Lawson
225df7c93b Use D3D12 debug layer in all builds. 2015-10-24 00:19:09 -03:00
Brett Lawson
064349db80 Create more than a single sampler. 2015-10-24 00:19:09 -03:00
Brett Lawson
12e8a357cc Fix signed/unsigned warning. 2015-10-24 00:19:09 -03:00
Brett Lawson
a660ed4f1b Fail fast if we run out of GPU buffer space. 2015-10-24 00:19:09 -03:00
Brett Lawson
5f19279137 Turns on GSL_THROWS_FOR_TESTING. 2015-10-24 00:19:08 -03:00
James Benton
24bf34b035 Add support for integer ALU source & dest. 2015-10-24 00:29:27 +01:00
James Benton
19b9627cf3 Fix PreviousScalar being defined as a vector type. 2015-10-24 00:28:58 +01:00
James Benton
9a9a040b6c Add some crazy logic for sorting labels with same cfPC. 2015-10-23 23:44:55 +01:00
James Benton
e71d4e07d5 Add CF POP to disassembler. 2015-10-23 23:44:42 +01:00
James Benton
f84bef3c1d Fix HLSL blockify to handle multiple labels per instruction. 2015-10-23 23:44:30 +01:00
archshift
03e5c34a1b trace.h: don't declare TraceFieldValue::ValueType in anonymous union
The CPP standard forbids struct declarations in anonymous unions,
MSVC allows it however.
2015-10-22 21:10:02 -07:00
Brett Lawson
872095bc52 Don't run instruction tracing by default. 2015-10-22 21:19:38 -04:00
Brett Lawson
d7bcd2313a Make loader print referenced but unimplemented data symbols. 2015-10-22 20:23:54 -04:00
Brett Lawson
dd4cc20d3e Fix incorrect naming of cpp_exception_ptr. 2015-10-22 20:23:38 -04:00
James Benton
7814f4a3fd Add some UserConfig key/values.
Issue #6.
2015-10-23 18:26:25 +01:00
Brett Lawson
c8b082bd7d Reverse some UC members from Donkey Kong!
Related to #6.
2015-10-22 19:02:15 -04:00
James Benton
ef92342272 Reverse some MCP members from Donkey Kong!
Issue #6.
2015-10-22 23:46:34 +01:00
James Benton
6bb4f6b87a Some formatting fixes. 2015-10-22 23:09:22 +01:00
James Benton
337000fb9e Fix potential race conditions around fiber scheduling. 2015-10-22 23:09:17 +01:00
James Benton
809122ae47 Set interrupt thread priority to -1. 2015-10-22 23:09:12 +01:00
James Benton
b01417831b Add missing platform files 2015-10-22 22:00:35 +01:00
James Benton
ea269bac72 Move bit_cast and byte_swap to own files 2015-10-22 21:52:14 +01:00
James Benton
e33dede34a Refactor platform.h 2015-10-22 21:51:39 +01:00
James Benton
b60e93acad Add all swkbd arguments.
Note: can use the ghs-demangle tool to discover arguments for all
libraries which are using C++ exports. Return values must be manually
reversed though.
2015-10-22 21:50:12 +01:00
James Benton
461bdc244f Clean up some gx2 stuff. 2015-10-22 21:50:12 +01:00
Brett Lawson
9b82fc0e7a Clean up more cpu namespace stuff. 2015-10-22 17:09:02 -03:00
Brett Lawson
c65dbe1ce9 Implement interrupts better in cpu namespace. 2015-10-22 17:09:01 -03:00
James
791d4aa990 Merge pull request #63 from archshift/portable-byteswap
bitutils: Add Linux and Mac byteswap implementations
2015-10-22 17:29:12 +01:00
James
1f324c5772 Merge pull request #66 from lioncash/const
hlsl_generator: Mark some reference variables and parameters const
2015-10-22 10:58:30 +01:00
archshift
7149b50659 bitutils: Add Linux and Mac byteswap implementations
_byteswap_u*** is a MSVC intrinsic and is non-portable.
2015-10-22 01:42:24 -07:00
Lioncash
f632265c91 hlsl_generator: Mark some reference variables and parameters const
These aren't modified in the scope of the function.
2015-10-22 01:25:14 -04:00