Commit graph

4506 commits

Author SHA1 Message Date
James Benton
948192d3d7 Fix has_arg. 2015-10-31 01:07:52 +00:00
archshift
f4e5b337c0 coreinit_systeminfo: use make_gm_time, added to platform_time
On Windows, continue to use _mkgmtime, on POSIX, timegm
2015-10-30 17:58:23 -07:00
archshift
aba3792cf8 platform_posix_time.cpp: place code in proper namespace 2015-10-30 17:54:41 -07:00
James
8446db7dae Merge pull request #86 from lioncash/strdup
system: Get rid of a _strdup usage
2015-10-31 00:21:34 +00:00
archshift
5e92890a12 GX2 null: add and fix several stubs which were causing linker errors 2015-10-30 16:51:06 -07:00
archshift
c3e121651d GX2 null: Fix erroneous references to GX2***::Mode instead of ::Value 2015-10-30 16:50:25 -07:00
Lioncash
e99736f69f system: Get rid of a _strdup usage 2015-10-30 19:41:21 -04:00
James Benton
6ea903bfa1 Fix gtx-convert build.
Closes #84.
2015-10-30 20:07:48 +00:00
James Benton
1fd3e77a0b Add a global config which can be serialised to/from file. 2015-10-30 19:49:56 +00:00
Brett Lawson
14da835783 Only allocate descriptors for needed slots. 2015-10-29 23:02:20 -04:00
Brett Lawson
2f18593c8a Implement sampler variable border colors. 2015-10-29 22:38:18 -04:00
James Benton
fcf8141c53 Fix GetKeyboardState.
Apparently its 256, not 255 values.
2015-10-30 02:20:07 +00:00
James Benton
eb60aea2d8 Fix jit. 2015-10-30 02:20:03 +00:00
James Benton
6978729d78 Add some basic keyboard reading for VPADRead. 2015-10-30 00:52:37 +00:00
James Benton
c8a795e428 Fix OSCheckThreadStackUsage when thread == null. 2015-10-30 00:52:43 +00:00
Brett Lawson
6806e48d04 Add support for interrupts inside JIT.
Not the best implementation.  In the future we will use
page read-only access to trigger page-faults.
2015-10-30 01:13:43 -03:00
Brett Lawson
12546f2bc2 Support --jit on hwtest mode. 2015-10-30 01:13:42 -03:00
James Benton
055314c8bc Add .gtx file dumper to gx2 debug texture dumper. 2015-10-30 02:49:08 +00:00
Brett Lawson
4914f3bc29 DX12 did not enjoy the new multi-target blending setup. 2015-10-29 23:48:59 -03:00
Brett Lawson
affe953320 Re-enable multiple-target blending controls. 2015-10-29 23:46:46 -03:00
Brett Lawson
55b4020341 Implement texture component selection.
This fixes lots of graphical bugs.
2015-10-29 23:42:04 -03:00
Brett Lawson
d3eca1e888 Acquire CPU lock when doing timer interrupt.
This is neccessary to avoid a race condition between
checking for the interrupt and blocking on the wait
condition in the primaryFiber.
2015-10-29 23:16:12 -03:00
Brett Lawson
8aaf346b8d Handle CPU interrupts in a central location.
This also corrects an issue where interrupts were only
handled when there was no other threads to run.
2015-10-29 23:03:42 -03:00
Brett Lawson
a65106aa89 Increase framecount to work around allocator issues for the moment. 2015-10-29 06:00:19 -04:00
Brett Lawson
0aa68844d0 Corrected pipeline state comparison to behave properly. 2015-10-29 16:57:26 -03:00
Brett Lawson
e3d60925ab Minor fixes to alpha blending configuration. 2015-10-29 05:15:17 -04:00
Brett Lawson
5e1624747d Disable MRT state configuration for now. 2015-10-29 05:13:27 -04:00
Brett Lawson
a3961106bf Do a better job of checking PSO equivalency. 2015-10-29 04:17:24 -04:00
Brett Lawson
ca9cffa313 Added support for alpha testing. 2015-10-29 03:40:43 -04:00
Brett Lawson
3ea62fd8f4 Turns out that texture copy boxes have depth too. 2015-10-29 02:21:44 -04:00
Brett Lawson
d04515f7f0 Implement zlib uncompress. 2015-10-29 02:17:57 -04:00
James Benton
5a19b2305c Implement task queue.
Introduce be_volatile for a volatile be_val.
Closes issue #74.
2015-10-29 02:03:15 +00:00
Brett Lawson
1f3c7fa5cb Added specific box to avoid wierd copy errors. 2015-10-29 01:16:02 -04:00
Brett Lawson
100b74f962 Fixup some minor things with GX2FetchShader. 2015-10-29 00:51:37 -04:00
Brett Lawson
a032c94518 Make sure uploaded uniform blocks are aligned. 2015-10-29 00:51:10 -04:00
Brett Lawson
c82e0ff9cf Don't forget to actually set the sampler to the heap. 2015-10-29 00:05:16 -04:00
Brett Lawson
5ab8b08c5f Fix issue causing warnings related to sampler heap usage. 2015-10-28 23:09:44 -04:00
Brett Lawson
aabaf86af0 Improve DX12 pipeline state creation.
Added support for logic ops, and create pipeline states for
each blending type.
2015-10-29 10:04:01 -03:00
Brett Lawson
31e5414056 Use temporary buffers per frame.
Avoids running out of memory in the buffers.
2015-10-28 22:27:08 -04:00
Brett Lawson
6f294f2c22 Added support for samplers to DX12 layer. 2015-10-28 22:21:45 -04:00
James Benton
e48b8d80e9 Fix GX2CalcSurfaceSizeAndAlignment for 1D formats. 2015-10-29 02:37:42 +00:00
James Benton
3bbe6a9fd3 Add static_cast to prevent warning in floatToFixedPoint. 2015-10-29 02:19:41 +00:00
James Benton
76bef0d59f Implement GX2CalcSurfaceSizeAndAlignment.
Change untile integer types to size_t.
2015-10-29 02:14:23 +00:00
James Benton
22b2ab6c50 Reverse most of GX2Sampler data. 2015-10-29 01:53:00 +00:00
James Benton
2c77717dc5 Fix CND*_INT converting outputs. 2015-10-28 21:56:30 +00:00
James Benton
a793c934cc Remove pipeline state flag debug. Nvidia says nono. 2015-10-28 20:14:41 +00:00
Brett Lawson
aeef989e1e Samplers... Arg. 2015-10-28 03:08:32 -04:00
Brett Lawson
4f76499f56 Fix stupid assert and disable depth engine. 2015-10-28 02:46:08 -04:00
Brett Lawson
2ee570184f Fix index data being uploaded incorrectly. 2015-10-28 02:23:01 -04:00
Brett Lawson
8f0f803af6 Lots of random shenanigans... Working on NESR. 2015-10-28 02:18:58 -04:00