Commit graph

3748 commits

Author SHA1 Message Date
Rinnegatamante
a9352891d0
[gui] Added sempahore and mutex dialogs. (#164) 2018-04-19 01:30:49 +02:00
Nick Renieris
7c354d9b71
Log Title and Title ID (#166)
Also eboot path and game category (from sfo).
2018-04-19 01:49:30 +03:00
Peter Mackay
095116802a Replace Bridge struct with function. 2018-04-18 19:37:08 +01:00
Peter Mackay
ba8b520f25 Remove struct templates. 2018-04-18 19:27:55 +01:00
Rinnegatamante
4fb2a54fd6
Implemented mutexes. (#159)
* Implemented mutexes.

* Better implementation.
2018-04-18 19:22:55 +02:00
Nicolas
b413b04ba9 [gxm] Added SCE_GXM_TEXTURE_FORMAT_U5U6U5_BGR support. (#163)
-fix correct value return for U5U6U5_RGB.
-Add log for indicate if value is missing.
2018-04-18 19:16:32 +02:00
Peter Mackay
3180042830
Merge pull request #161 from VelocityRa/fmt565
Support SCE_GXM_TEXTURE_FORMAT_U5U6U5_RGB
2018-04-18 14:13:13 +01:00
Peter Mackay
40620bf2e4 Remove unnecessary layer of templates. 2018-04-18 09:17:10 +01:00
Peter Mackay
6136341beb Use std::function for imports rather than function pointer. 2018-04-18 08:57:55 +01:00
VelocityRa
dd82cc0500 gxm/format: Change TODO positions 2018-04-18 02:56:09 +03:00
VelocityRa
ba0a98d7c7 gxm: Support SCE_GXM_TEXTURE_FORMAT_U4U4U4U4_ABGR 2018-04-18 02:55:33 +03:00
Rinnegatamante
ccfdd096e1
[gui] Added Thread ID info in Threads dialog. (#160) 2018-04-17 22:13:53 +02:00
Rinnegatamante
279c3f2fac [gxm] Using no filter as default for textures. 2018-04-17 21:16:47 +02:00
Rinnegatamante
59cfe9b3b7
Properly implemented semaphores. (#157)
* Implemented semaphores.

* Using vector instead of map for locked threads.

* Added semaphore mutex to avoid race conditions.

* Allowing more than a single thread to be raised.
2018-04-17 20:58:51 +02:00
Rinnegatamante
77383a0b72
Added sceAppMgrAppParamGetString implementation. (#143)
* Added sceAppMgrAppParamGetString.

* Fix identation.

* Added back error handling.
2018-04-17 18:16:28 +02:00
Francisco José García García
5a8fb4c150 Fix viewport when using imgui (#156) 2018-04-17 13:20:18 +02:00
Paco García
068cdb6134 Fix for version 120 2018-04-17 12:27:48 +02:00
Rinnegatamante
466a83883d Fixing changes to set_uniform. 2018-04-17 12:27:48 +02:00
Rinnegatamante
d7b3763b91
[gxm] Attrib location and set_uniform fixes. (#153)
* [gxm] Attrib location and set_uniform fixes.

* Fix identation.

* Replaced / 4 with / sizeof(uint32_t)
2018-04-16 23:56:30 +02:00
Rinnegatamante
68bb128b58
Added Flood It! shaders. (#152)
* Added Flood It! shaders.

* Fix identation.
2018-04-16 23:54:52 +02:00
Nick Renieris
7ed7452369 Display Threads fixes (#146)
* [host/kernel] Make abort bool atomic

* [threads/queue] Make pop() return a unique_ptr

Because it can actually fail, if aborted == true.
That way we can check for nullptr when calling it.

* [gxm] Quit display thread gracefully

pop() can return nullptr if Queue::abort == true, so if that's the case shut down the display thread

* [queue/SceDisplay] Don't release mutexes from locks (so they're unlocked)

Because we were releasing the mutexes (dissociating them from the unique_lock), they weren't being unlocked when the lock's destructor run.
2018-04-16 20:57:57 +02:00
VelocityRa
fe68640579 Fix formatting, refactor and rebase on master 2018-04-16 20:14:53 +02:00
Paco García
680db95399 Some Gxm functions 2018-04-16 20:14:53 +02:00
Paco García
d97f5e0443 Get libc.suprx working 2018-04-16 20:14:53 +02:00
Paco García
24f66efb9e Implement stdio fds 2018-04-16 20:14:53 +02:00
Paco García
52cf7114b2 Return 0 for actual process id 2018-04-16 20:14:53 +02:00
Paco García
6d768ace9e Some SceApp* functions 2018-04-16 20:14:53 +02:00
Paco García
fd647ef6f0 Some libstdcxx functions 2018-04-16 20:14:53 +02:00
Paco García
b726241b08 Run arm function on current thread 2018-04-16 20:14:53 +02:00
Francisco José García García
abbcd44469 Fix thumb_mode error and use read_pc 2018-04-16 20:14:53 +02:00
Paco García
adf54f6a45 WIP modules 2018-04-16 20:14:53 +02:00
Nick Renieris
00108ff1ba
Fix borders and refactor magic resolution/border values (#150) 2018-04-16 20:04:30 +03:00
Rinnegatamante
b0965b961e [gxm] Fixed SceGxmTextureSet*AddrMode. (#151)
* [gxm] Fixed SceGxmTextureSet*AddrMode.

* Fix identation.
2018-04-16 15:24:03 +03:00
Rinnegatamante
f68eb36c34 Fixed renderer window being cropped. (#149) 2018-04-15 22:56:03 +02:00
Rinnegatamante
a70ef8dda1 [threads] Refactoring "display" threads. (#148)
* Properly naming SceGxmDisplayQueue thread.

* Removed useless display thread.
2018-04-15 21:56:04 +02:00
Rinnegatamante
598243cee9 Added basic frontend using imgui. (#147)
* Added basic frontend using imgui.

* Fix assert issue in glbinding.

* Fix alpha pixels not being rendered correctly.

* Fixed window size.

* Added Thread dialog with some threads specific info

* Moved UI code to gui project.

* Moved to GL2 impl for Mac support.

* Modifications as per request.

* Fixed touch detected even when renderer was not focused.
2018-04-15 19:22:41 +02:00
Peter Mackay
02f6dd1570
Merge pull request #145 from petmac/fix-warnings
Fix warnings
2018-04-14 07:44:19 +01:00
Peter Mackay
9cd9e02bd4 Use auto rather than string::size_type. 2018-04-13 22:52:01 +01:00
Rinnegatamante
f27dfc53b6
Implemented sceGxmTextureSet*AddrModeSafe. (#139)
* Implemented sceGcmTextureSet*AddrModeSafe.

* Missing security branching.

* Format.

* Re-compatting swizzle switch.
2018-04-13 13:19:22 +02:00
Peter Mackay
d4e3ff32e8 Fix int overflow warnings. 2018-04-12 08:53:01 +01:00
Peter Mackay
6ac81b28ad Fix unused variable warning. 2018-04-12 08:46:18 +01:00
Peter Mackay
025e646376 Fix unhandled cases warning. Min & max blending are supported by OpenGL.
See https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glBlendEquationSeparate.xml
2018-04-12 08:44:19 +01:00
Peter Mackay
cb5811a18d Fix "comparison is always false" warning. 2018-04-12 08:35:11 +01:00
Rinnegatamante
2daa6d39d4 Ported format.sh to Windows. (#140)
* Ported format.sh to Windows.

* Added empty ending line.

* Shutting echoing to console.
2018-04-10 16:09:06 +03:00
Rinnegatamante
e704295898 Updated to latest vita-headers. (#138) 2018-04-09 19:46:57 +02:00
Nick Renieris
51f4a8c8ba
Merge pull request #118 from VelocityRa/fixes
gxm/log/formatting/io fixes
2018-04-09 18:21:17 +03:00
VelocityRa
568175dd2f [gxm] Replace function name strings with __func__ 2018-04-09 16:39:59 +03:00
VelocityRa
2f7f896a30 [rtc] Replace function name strings with __func__ 2018-04-09 16:39:59 +03:00
VelocityRa
f704d2ee8d [gxm] Acept more parameter types
Their different size is already properly handled.
2018-04-09 16:39:59 +03:00
VelocityRa
61dd6e57a4 [gxm] GLSL shader generation fixes
- Move to GLSL version 140
- Replace "attribute" deprecated qualifier with "in"
- Make fragment shader output green color to differentiate between clear color
- More log messages
2018-04-09 16:39:59 +03:00