Commit Graph

743 Commits

Author SHA1 Message Date
Anthony Pesch 81c8f90add added jit_opdef to replace sh4_opdef / armv3_desc 2017-05-27 11:09:36 -04:00
Anthony Pesch 7f0a8a7436 disabled frame skipping 2017-05-26 20:47:21 -04:00
Anthony Pesch a2cedfdd6c remove libsoundio library 2017-05-25 22:22:21 -04:00
Anthony Pesch 245ac62938 replace libsoundio with sdl audio 2017-05-25 22:22:05 -04:00
Anthony Pesch 00534496b4 replace one-off mergesort with the one in core 2017-05-25 20:33:41 -04:00
Anthony Pesch c699ef62aa raise gdrom dma max 2017-05-25 19:56:39 -04:00
Anthony Pesch e914e0df48 added retrace tool 2017-05-23 13:34:27 -04:00
Anthony Pesch d3118a9ae8 perform a perspective-correct interpolation of each vertex's w component
in the ta shader

explicitly write out a logarithmic value to the depth buffer inside of
the fragment shader based on the interpolated w componet. using the
log2(1 + w) / log2(max) provides much better precision in the mantissa
compared to w / wmax when normalizing the w values to be written to the
depth buffer
2017-05-21 16:02:46 -04:00
Anthony Pesch f10ec6c693 move texture cache out of ta and into emulator to move thread
synchronization safe guards into the correct location
2017-05-24 22:49:30 -04:00
Anthony Pesch 69ed32c442 added comments explaining the purpose of emulator.c 2017-05-24 16:59:49 -04:00
Anthony Pesch a4704f4c50 rename tr_parse_context to tr_convert_context 2017-05-24 00:57:25 -04:00
Anthony Pesch 1fa8019d8b add profile zones in tr_* 2017-05-24 00:51:17 -04:00
Anthony Pesch f127d33485 added viewport dimensions to render_backend 2017-05-24 00:31:32 -04:00
Anthony Pesch c7476efe7b rename entries to textures 2017-05-23 23:16:56 -04:00
Anthony Pesch 8872d250a5 remove ta_alloc_context 2017-05-23 19:08:41 -04:00
Anthony Pesch bfbfb521fa hardcode max dma size 2017-05-23 19:05:40 -04:00
Anthony Pesch 02b67e56d1 rename surface and vertex structs 2017-05-23 19:03:40 -04:00
Anthony Pesch 71032563ea rename sh4_ctx to sh4_context 2017-05-23 18:59:01 -04:00
Anthony Pesch b62f3df83f renamed tile_render_* to tr_*
rename tile_ctx to tile_context
2017-05-23 18:53:56 -04:00
Anthony Pesch 0f6e0df66b fix recc bitrot 2017-05-23 17:28:17 -04:00
Anthony Pesch b737e2d7bf directly invoke MMIO handlers for constant addresses
ensure exceptions occur due to an MMIO access in x64_handle_exception
move memory data structures from header to source file
2017-05-21 15:05:25 -04:00
Anthony Pesch 5eb59951ba fix cache size calculation 2017-05-21 12:34:00 -04:00
Anthony Pesch 7755f47e4c update current page conditional to work with latest Liquid 2017-05-20 20:05:07 -04:00
Anthony Pesch 11c89443e6 fix crash on exit 2017-05-20 16:59:01 -04:00
Anthony Pesch ece8279cc0 lazy-compile ta shaders 2017-05-20 16:50:01 -04:00
Anthony Pesch bc8fd61aaa lower default audio latency 2017-05-20 16:25:42 -04:00
Anthony Pesch 41dc2e1f4d resize video framebuffer as window size changes 2017-05-20 16:25:24 -04:00
Anthony Pesch b6fb597d7e check for interrupts less often in the interpreter 2017-05-20 13:47:08 -04:00
Anthony Pesch 8338547c82 added some PowerVR notes 2017-05-20 13:08:31 -04:00
Anthony Pesch ee8e47a1e5 added depth buffer debug option to tracer 2017-05-19 21:29:21 -04:00
Anthony Pesch f6532f55d1 inline polygon parsing helpers 2017-05-19 21:17:55 -04:00
Anthony Pesch 82bf344e02 remove fixed buffers for nuklear UI 2017-05-18 19:56:30 -04:00
Anthony Pesch 37904ef25d bind pt_alpha_ref uniform for every surface 2017-05-17 21:54:58 -04:00
Anthony Pesch ae144b09e8 don't bundle profiles directory with automated builds anymore 2017-05-17 20:29:29 -04:00
Anthony Pesch 11c4828dfc fix for tracer crash due to bit rot 2017-05-17 20:15:02 -04:00
Anthony Pesch 294392a64e set channel key state to off when a non-looping channel is stopped 2017-05-17 19:35:40 -04:00
Anthony Pesch 04a42d7b07 added warning when audio is underflowing 2017-05-17 19:47:40 -04:00
Anthony Pesch d104e21129 remove old controller profile settings 2017-05-17 18:21:40 -04:00
Anthony Pesch e92996dac7 windows build fixes 2017-05-17 17:55:53 -04:00
Anthony Pesch dcb80e199a removed glfw 2017-05-17 01:53:54 -04:00
Anthony Pesch 5277c51179 removed sdl 2.0.4 2017-05-17 01:53:24 -04:00
Anthony Pesch 4cefa5f807 swapped back to using SDL
made input code go through SDL's gamepad api vs the joypad api as it used to
2017-05-17 01:52:27 -04:00
Anthony Pesch 74d2b6e9f1 added sdl 2.0.5 2017-05-17 01:51:00 -04:00
Anthony Pesch a30d97a6da for now, the fudge value of 1.2 magically fixes ui rendering for
many scenes. more work needs to be done, we may need to create a
full 32-bit floating point depth buffer to match the pvr
2017-05-16 00:12:21 -04:00
Anthony Pesch 5540d33cf4 fixed carry flag calculation in negc op
added more tests for negc
sanitize bits stored in SR just as they are in FPSCR
removed unneeded disp_pc struct in sh4_instr union
emits calls to invalid_instr callback for INVALID ops
2017-05-16 00:00:02 -04:00
Anthony Pesch 08b6b5de1d reenabled gdb-based debugger 2017-05-15 07:37:19 -04:00
Anthony Pesch 32b1f75e37 more gdrom printfs 2017-05-15 07:13:19 -04:00
Anthony Pesch 309c9969df setup arm interpreter code path 2017-05-15 00:37:15 -04:00
Anthony Pesch 371aa5d94c use cycle count from opdef in interpreter main loop 2017-05-15 00:06:27 -04:00
Anthony Pesch c703da40f7 added sh4 interpreter
added OP_FLUSH_CONTEXT
fixed bug in ldcsr now that the GPRs are properly flushed when a bank change occurs
2017-05-14 23:26:36 -04:00