Commit graph

3748 commits

Author SHA1 Message Date
Peter Mackay
acd8313e91 host: Move log_import_calls declaration to functions.h 2019-03-21 21:35:51 +00:00
Peter Mackay
6dcc7633ea host: Move several items from host to emulator:
* init
* handle_events
* screen_render.cpp and screen_render.h
* app.cpp and app.h
* config functions
* discrete GPU exports
* emulator-called SFO functions
2019-03-21 21:35:51 +00:00
Peter Mackay
a5502792b0 SceSysmodule: Remove unnecessary include 2019-03-21 21:35:51 +00:00
Peter Mackay
60587f9f40 host: Remove unnecessary include 2019-03-21 21:35:51 +00:00
Peter Mackay
47504d569e gui: Remove dependency on AppRunType 2019-03-21 21:35:51 +00:00
Peter Mackay
e976239094 host: Don't use app exit code as return code from config init 2019-03-21 21:35:51 +00:00
Peter Mackay
d02e930b9a host: Remove unnecessary include 2019-03-21 21:35:51 +00:00
Peter Mackay
dd09667e72 SceDisplay: Remove some unnecessary includes 2019-03-21 21:35:51 +00:00
Peter Mackay
2373c87f31 host: Clean up app.h 2019-03-21 21:35:51 +00:00
Peter Mackay
76f86131ae host: Remove unnecessary include 2019-03-21 21:35:51 +00:00
hgen264
4c902d5fb4 shader: Support load f16
Store is not yet
2019-03-21 21:56:03 +07:00
hgen264
7b5bd06cb3 shader/recompiler: Emit temp registers with 4-aligned name
SInce they are all vec4s
2019-03-20 22:32:38 +07:00
hgen264
577934c373 shader/translator: Implement VFRC/VFRC16 2019-03-20 22:29:52 +07:00
hgen264
a8ec17d7c9 shader: Add a way to compare identical register 2019-03-20 22:29:34 +07:00
hgen264
bb12d6025b gxm: Change variable maybe_literals_offset to literals_offset
Introducing Sure, brother of Not Sure!! Hii Not Sure-san!
2019-03-20 22:06:17 +07:00
hgen264
a46ae577af shader/recompiler: Adjust literal size to 1 float 2019-03-20 22:00:11 +07:00
hgen264
46ea41d538 shader/recompiler: Add literals support 2019-03-20 22:00:10 +07:00
Nicolas Jallamion
c736c73e46 kernel/load_self: Fix var imports load module (#437)
* kernel/load_self: Fix var imports load module

* formatting: Fix clang format on host
2019-03-19 22:57:45 +07:00
Francisco José García García
6e7fa3ad7f kernel/load_self: Fix for stubbed var imports (#436) 2019-03-19 11:19:30 +02:00
scribam
7982047808 sceGxm: Stub some functions (#431) 2019-03-18 01:50:09 +02:00
Nicolas
eec8324d4e gui/config: Hide GUI after booting game (#433) 2019-03-17 23:46:46 +02:00
Rinnegatamante
a9469d1bf3 modules/SceRtc: Implemented sceRtcSetTime funcs. 2019-03-17 19:47:13 +01:00
Rinnegatamante
ec69ef23f3 rtc: Properly implement timezones. 2019-03-17 19:47:13 +01:00
Rinnegatamante
a2327cad97 modules/SceProcessmgr: Fixed sceKernelLibcGettimeofday. 2019-03-17 19:47:13 +01:00
Rinnegatamante
ae3853ee39 rtc: Fixed ticking system. 2019-03-17 19:47:13 +01:00
Rinnegatamante
6be3ac5b1b rtc: Code refactoring. 2019-03-17 19:47:13 +01:00
Rinnegatamante
c44563f7d6 modules/SceRtc: Implemented several functions. 2019-03-17 19:47:13 +01:00
Rinnegatamante
297ab8e47b kernel/thread: Added raise_waiting_threads to thread_functions.h 2019-03-16 11:45:57 +01:00
Rinnegatamante
8789f7e884 kernel/thread: Distinguishing between callback and thread returning 2019-03-16 11:45:57 +01:00
Rinnegatamante
b51ec9787b kernel/thread: Raising waiting threads when a thread returns. 2019-03-16 11:45:57 +01:00
pent0
3a65c0ad1c
Merge pull request #429 from pent0/gxmmiscs4
Another miscs
2019-03-15 20:21:50 +07:00
hgen264
ebe61d7418 modules/gxm: Do static cast on some assignment and returns 2019-03-15 18:31:04 +07:00
hgen264
6ce36ac90c shader/translator: Implement VADD and VF16ADD
Many GXP shaders use them.
2019-03-15 18:30:30 +07:00
hgen264
72e9b48400 modules/gxm: Implement sceGxmTextureInitSwizzled 2019-03-15 17:57:34 +07:00
Rinnegatamante
49a4f0d00b touch: Masking only reportNum when sampling is disabled. 2019-03-15 11:53:06 +01:00
hgen264
3daf2ad537 renderer/uniforms: Iterates through uniforms to find uniform type with given name
On some drivers, location might be same as index, but on some, it's different. This commit iterates through all given uniforms to find the correspond uniforms with given name, than store and get the type, to determine whenether to use glUniformMatrix4fv or glUniform4fv
2019-03-15 17:41:31 +07:00
hgen264
d70cfd1834 module/bridge: Don't enable call with returns value if ret is void
Workaround MSVCv142 error
2019-03-15 17:39:44 +07:00
pent0
81bd2e077f
Fixes and miscs (#421)
* gxm: Add more SceGxmProgram fields and SceGxmProgramParameterContainer

* shaders: Use ATTR offset provided by parameter and container

* shader: Make each writeable SA 4 bytes

Align each pa variable to pa0_temp, pa4_temp and make all of them a vec4

* shaders: Check for null container

Simply use the absolute offset if container not available

* shader: Add offset with size of 1 element after generate 1 array element

* shader: Check if two registers has the same component count as dest

The optimization requires that the dest component count must also equal to original register component count

* shader: Support array type

* render/uniforms: Remove unroll

* shader: Handle properly creating new writeable PA and correct the constant hack

* shader: Implement VMIN, VMAX, VF16MIN, VF16MAX

* shader: Fix some warnings

* renderer/uniform: Pass uniform data as matrix if the uniform type is matrix

* shader: Support for reading/writing non-referenced SAs on parameter lists

There are total 128 registers, sometimes shader will use some of them for temporary usage or read from it. Some of those registers are not reference from parameter lists

* shader: Correct SA supply index
2019-03-15 11:01:48 +07:00
Nicolas
f47c084c46 gui: add app_ver in game list and in log. (#427)
Submodule update.
2019-03-15 03:56:12 +02:00
Rinnegatamante
636513fa54 io: Properly statting files in read_dir. 2019-03-13 12:22:34 +01:00
Rinnegatamante
6287050172 io: Setting SCE_S_IFREG only to files on Windows. 2019-03-13 12:22:34 +01:00
Rinnegatamante
170ecac64a io: Fix path trimming and added dot trimming. 2019-03-13 12:22:34 +01:00
pent0
06d0474021
Implement vargs and printf functions (#322)
* module: Implement vargs and printf functions

- Source code of printf is here: https://github.com/mpaland/printf, modify for vita3k usage

* [module] Pass layout state as argument rather than tuple

* module: Get rid of state array and don't continue layout if meet varargs

* module/test: Readjust test as requests and add test for vargs

* module: Remove unneccesary thin function is_arg_vargs

* module: Add newline
2019-03-13 14:44:56 +07:00
pent0
4279f9678b shader: Remove explicit qualification in convert_gxp_usse_to_spirv 2019-03-09 17:52:41 +02:00
Peter Mackay
48bcb675a4
Merge pull request #420 from petmac/gui-cleanup
GUI cleanup
2019-03-08 17:43:20 +00:00
Peter Mackay
dd11b24884 util: Formatting 2019-03-07 22:22:38 +00:00
Peter Mackay
39e00dc21c gui: Move menu states inside structs 2019-03-07 22:22:02 +00:00
Peter Mackay
d4b3772f81 gui: Split up menu functions 2019-03-07 21:31:37 +00:00
Peter Mackay
b2171bda10 gui: Formatting 2019-03-06 16:57:00 +00:00
Peter Mackay
a7f1445276 gui: Tidy up source files 2019-03-05 23:49:10 +00:00