Commit Graph

4450 Commits

Author SHA1 Message Date
James Benton
29395e7403 libgfd: Always write a relocation block. 2017-05-10 17:58:24 +01:00
James Benton
004b2f06e4 libgfd: Add support for GFDBlockType GeometryShaderCopyProgram. 2017-05-10 17:58:13 +01:00
James Benton
411c6c21fd libgfd: Fix file and block versions.
File is Major, Minor, GPU.
Block is Major, Minor.
2017-05-10 17:55:37 +01:00
James Benton
0986d10cdb decaf-sdl: Fix input config reading. 2017-05-03 18:06:34 +01:00
James Benton
42b274f8b1 kernel: Fix allocVirtAddr syscall when called with no target address. 2017-05-03 01:08:53 +01:00
James Benton
276b067fbb kernel: Reserve 1 page of memory per for core "AvailPhysAddrRange".
Why? Who knows. The size is from Mii Maker, whether it is configurable
per application is unknown. There is nothing in the cos.xml or the RPL
file info section which seems to indicate this size.
2017-05-03 01:08:13 +01:00
James Benton
107312e4d4 coreinit: Fix return value for OSAllocVirtAddr.
Copy and pasting is bad for you kids.
2017-05-03 01:05:11 +01:00
James Benton
c5871e0970 cpu: Implement findFreeVirtualAddressInRange. 2017-05-03 01:04:56 +01:00
James Benton
e1d4f2175f coreinit: Fix default thread stack not being allocated from default heap. 2017-05-03 00:03:53 +01:00
James Benton
2479b37ff6 gx2: Fix pm4cap texture size calculations. 2017-05-02 23:29:44 +01:00
James Benton
6a197daf98 platform: Add openMemoryMappedFile function for memory mapped file reading. 2017-05-02 22:28:20 +01:00
James Benton
2b2a09b2ff gpu: Add latte::enumAsString(). 2017-05-02 22:28:20 +01:00
James Benton
8c0832fd2e Remove committed #pragma optimize("", off) statements 2017-05-02 22:28:20 +01:00
James Benton
600df0c6b4 cmake: Fix DECAF_SDL option to actually toggle building of SDL applications.
Also add DECAF_QT option for future use ;).
2017-05-02 22:28:20 +01:00
James Benton
b9834f7f1c gpu: Don't use cpu::VirtualPointer for pm4 buffers.
Short term change that will eventually be undone once we update to the
new gpu ringbuffer which uses tcl.rpl.

For now let's not use cpu::VirtualPointer so we can send arbitrary buffers
from tools like pm4 replay.
2017-05-02 22:28:20 +01:00
James Benton
50c8ef84de glsl: Implement LOOP_BREAK and LOOP_CONTINUE. 2017-05-02 22:28:20 +01:00
James Benton
dfd587f9e7 glsl: Add missing condStart / condEnd around KILL. 2017-05-02 22:28:20 +01:00
James Benton
8a503eb095 snd_user: Create snd_user module and stub a few AXFX functions. 2017-05-02 22:28:20 +01:00
James Benton
6fff350f43 cmake: Specify render backend using DECAF_GL option.
Also changed define DECAF_NOGL to DECAF_GL.
Added skeleton code for Vulkan backend and driver.
2017-05-02 22:28:20 +01:00
James Benton
143b93589b decaf-sdl: Add missing display config options.
Also add backend option to pick betweeng graphics backends.
2017-05-02 22:28:20 +01:00
VelocityRa
e9d3878ea5 snd_core: Fix hardcoded argument to start() 2017-05-02 21:24:43 +01:00
James Benton
c300470ec4 cpu: Fix cpu::translate for nullptr. 2017-04-27 11:01:35 +01:00
James
a90b1db913 Merge pull request #430 from achurch/sigbus-fix
posix: Use TMPDIR instead of shm_open for memory backing files.
2017-04-26 13:18:52 +01:00
James Benton
6235b948d6 cpu: Fix copy paste error with BigEndianValue operator name. 2017-04-26 13:13:49 +01:00
James Benton
a0abca333b decaf: Adjust default logging configuration. 2017-04-26 12:42:02 +01:00
James Benton
8366215d59 cpu: Improve BigEndianValue operators to use decltype return type. 2017-04-26 12:31:16 +01:00
James Benton
173817ef55 decaf: Fix log path. 2017-04-26 12:30:53 +01:00
James Benton
2285b623e2 gpu: Add missing include 2017-04-26 11:58:04 +01:00
James Benton
3b0e811176 libgfd: Use std::runtime_error for exception base class 2017-04-26 11:57:49 +01:00
James Benton
61a66bcf8f config: Add config generating when no config exists. 2017-04-26 11:53:53 +01:00
James Benton
a7fa55f601 platform: Adjust some error message printing for platform_memory. 2017-04-26 11:52:09 +01:00
James Benton
776f360e6b Merge branch 'libgpu'
# Conflicts:
#	src/decaf-cli/main.cpp
#	src/decaf-sdl/config.cpp
#	src/decaf-sdl/main.cpp
2017-04-25 23:41:36 +01:00
James Benton
f0ae3f4039 Rewrite gfd reading / writing and move it to libgfd. 2017-04-25 23:34:10 +01:00
James Benton
2b585c874a gpu: Remove pragma once from null_driver.cpp 2017-04-24 23:51:39 +01:00
James Benton
b1e92d3563 cpu: Fix BigEndianValue operator-> and operator* 2017-04-24 23:50:16 +01:00
James Benton
ac11b49f85 decaf: Fix incorrect includes 2017-04-24 23:49:54 +01:00
James Benton
45027c2add common: Remove old cerealjsonoptionalinput.h 2017-04-24 23:32:35 +01:00
James Benton
a364565f8b Move to a .toml config file and try to unify config loading.
Still not an ideal solution, but it's at least a step in the right direction.
2017-04-24 23:32:00 +01:00
James Benton
457fa7b286 kernel: Adjust OverlayArena to map to virtual address 0xA0000000. 2017-04-24 18:16:14 +01:00
James Benton
5d6ead831d coreinit: Remove arbitrary memory allocation.
Fixes #401.
2017-04-24 18:16:14 +01:00
James Benton
214c7c2de6 kernel: Print a better section summary in loader. 2017-04-24 18:16:14 +01:00
James Benton
d67a59f6e4 Refactor GPU code out of libdecaf/gpu and in to libgpu. 2017-04-24 17:22:10 +01:00
Andrew Church
b8bc827072 Add a configuration option to set the path to the resources directory.
This allows the program to be run from outside the Decaf source tree.
The path can also be set with --resources-path on the command line.

Also remove the unused "--sys-path" option from the command line
option list.
2017-04-24 19:57:24 +09:00
Andrew Church
50b1b8b133 posix: Use TMPDIR instead of shm_open for memory backing files.
The amount of memory available for shm objects is limited on some
systems, so use a normal file instead of an shm object as the backing
store for emulated memory.

Also document the cause and workaround for SIGBUS crashes.
2017-04-24 18:07:58 +09:00
James Benton
036e3791ea cpu: Add pvr / pir support to libbinrec 2017-04-21 18:08:45 +01:00
James Benton
c65a3d5a3a debugger: Fix crashes when activeThread == nullptr 2017-04-21 18:04:36 +01:00
James
8ab39c2c2c Merge pull request #390 from achurch/gpu-sync-fixes
Reimplement GPU synchronization.
2017-04-21 18:03:27 +01:00
James Benton
5194ffb36f tests: Add some simple Catch powered libcpu tests to verify be_struct types. 2017-04-21 15:06:08 +01:00
James Benton
3fb14e34dd snd_core: Fix implicit 32 to 64 bit cast. 2017-04-21 14:00:34 +01:00
James Benton
8891d545df nn_boss: Fix uninitialised mVirtualTable in nn_boss::Title. 2017-04-21 14:00:19 +01:00