Commit graph

218 commits

Author SHA1 Message Date
Zangetsu38
134603c947 modules/SceGxm: fix regression in loop of both StateSetAllUniformBuffers 2021-12-01 16:42:03 +01:00
Larry
d402ebcdea modules/SceGxm: Implement SetParamsInstanced and support instanced draw 2021-11-30 13:54:29 +01:00
Zangetsu38
f8ad0b98c5 modules/SceGxm: Stub PrecomputedDrawSetParamsInstanced.
- implement sceGxmPrecomputedVertexStateSetAllTextures & sceGxmPrecomputedVertexStateSetTexture.
- implement add texture for vertex texture in sceGxmDrawPrecomputed.
- add support of vertex texture in SceGxmPrecomputedVertex.
2021-11-30 13:54:29 +01:00
Larry
7f679634ed modules/SceGxm: Add first step cube texture support. 2021-11-30 06:17:37 +01:00
Larry
ef9510cfae modules/SceGxm: Implement sceGxmSetVertexTexture.
- Add vertex texture implementation, add set vertex texture for non precomputed
2021-11-24 10:20:56 +01:00
Larry
39f4cc0f3f modules/SceGxm: Fix mip count. 2021-11-24 10:15:44 +01:00
pent0
a435a49bcf shader: Group all buffers to single SSBO per stage
renderer: Fix wrong uniform buffer location in SSBO
2021-11-17 15:54:54 +01:00
Larry
f3002d2b0e modules/SceGxm: Implement full sceGxmTextureSetFormat.
modules/SceGxm: Don't set viewport and clp of deferred context on command list begin.
2021-11-15 05:01:02 +01:00
pent0
1c6336d004 modules/SceGxm: Improve sceGxmMidSceneFlush. 2021-11-11 00:48:21 +01:00
Zangetsu38
afae99635e modules/SceGxm: stub sceGxmMidSceneFlush. 2021-11-08 10:03:26 +01:00
Zangetsu38
c08c94945a modules/SceGxm: fix debug compile of TextureGetPalette.
return null if is not palette texture.
2021-10-21 20:44:34 +02:00
sunho
1eefb8a3e3 renderer: fix gxmFinish to wait for the last submitted scene 2021-10-16 16:00:28 +02:00
hobyst
168dfb19ca Add license notice on source files which didn't have one
- Also updated the copyright notice year on all files to 2021
2021-08-19 23:14:27 +02:00
Zangetsu38
157f1be011 modules/SceGxm: Stub BeginSceneEx.
- allow some game move to ingame, ex: valkyrie drive.
2021-06-01 03:32:04 +02:00
Zangetsu38
55e52805f6 modules/SceGxm: Stub SetVisibilityBuffer.
- Set all visible.

Co-authored-by: kd-11 <karokidii@gmail.com>
2021-05-29 02:03:47 +02:00
Foma Nikitin
02e8847526 shader: Fix mask write decoding and vmad2 modifiers 2021-05-28 09:36:35 +02:00
Foma Nikitin
ed7b8a415f modules/SceGxm: Fix data size submitting 2021-05-28 09:36:35 +02:00
sunho
dcfdb2a01b kernel: Rename thread functions and move thread runner out from thread.cpp
kernel: Fill init cpu context from kernel
kernel: Various style nits
2021-05-26 04:53:21 +02:00
sunho
c6790fa021 kernel: Merge thread state and functions & fix gdb 2021-05-22 21:12:11 +02:00
pent0
899fe29bfb modules: Fix texture size for swizzled and cubed 2021-05-19 19:44:26 +02:00
sunho
7d6d79c399 kernel: Merge state and functions 2021-05-19 11:36:18 +09:00
pent0
78bd06500a modules/SceGxm: Fix ProgramFindParameterBySemantic implementation. 2021-05-18 08:33:42 +02:00
sunho
c6a20fc894 kernel: Redesign guest function calling 2021-05-18 03:18:25 +09:00
pent0
4cc41a8c0c modules/SceGxm: More robust and optimised allocation algorithm. 2021-05-15 18:31:12 +02:00
pent0
7e8112c3f8 modules/SceGxm: Fix wrong texture being binded when draw normally after precompute
- Fix persona 4 golden random funny textures
2021-05-15 18:31:12 +02:00
mangren
21c83203f4 modules/SceGxm: Allow reserving more memory when needed for deferred. 2021-05-15 18:31:12 +02:00
mangren
b6e4400b97 modules/SceGxm: Implement notifications and command list generate/execute 2021-05-15 18:31:12 +02:00
mangren
762414b84d modules/SceGxm: Implement deferred get/set buffer functions 2021-05-15 18:31:12 +02:00
mangren
fb75dfef09 modules/SceGxm: Remodel part 2 to make state saveable from client side
- Reducing memory footprint, with the ability to keep track when should a command be sent (in order to prevent malicious command spamming)
- Ability to do some synchronization logics from client side
- Synchronize deferred and immediate logic, with it this way, less changes is required for deferred
2021-05-15 18:31:12 +02:00
mangren
beb2c8d5b5 modules/SceGxm: Remodel part 1 to use VDM space game provided
Not for deferred, only for immediate for now. This is a stepping place for separate command list

- Separate command list may not be used or intentionally malliciously abadoned, leading to memory leak if we gonna allocate using new operator from C++
- This one changes some stuffs so:
   * Allow change pointer of data when command execute process is launched, result in command only have extra c++ side data when it's certain to be executed, no more memory leak scary
   * Depend on VDM buffer of the guest provided to build up command list, using the mspace algorithm. Because graphics is a real-time application, with command being allocated at very fast rate, I use mspace for fast speed, not using the mempool
2021-05-15 18:31:12 +02:00
mangren
a09fec27a5 gxm: Initial deferred work 2021-05-15 18:31:12 +02:00
sunho
20677bee52 kernel: Refactor handling of exiting thread 2021-05-08 14:34:20 +02:00
sunho
f76f2f2c39 cpu: Fix dynarmic exclusive instructions, halting, breakpoint, stepping
kernel: Refactor CPUDepInject
config: Add dynarmic_cpu option
2021-05-08 14:34:20 +02:00
Zangetsu38
fb71377695 modules/SceGxm: Implement PrecomputedFragmentStateSetUniformBuffer. 2021-04-27 05:00:14 +02:00
bookmist
3cf4d7ee7d modules/SceGxm fix compiler warnings 2021-04-26 02:02:17 +02:00
pent0
36d7103a11 gxm: Handle front/back fragment disable. 2021-04-21 08:15:28 +07:00
scribam
ab690d199a
gxm: Improve cube textures (#1214) 2021-04-08 08:03:58 +02:00
Zangetsu38
831cba66d1 Modules/SceGxm: remove old texture warning unnecessary anymore. 2021-03-16 23:23:50 +01:00
Zangetsu38
dc27b868ba modules/SceGxm: Stub TextureInitCube. 2021-02-24 10:43:22 +01:00
Pedro Montes Alcalde
100a7a6bfe
vita3k: Some refactor on compiler warnings (#1170) 2021-02-22 15:59:47 +01:00
Pedro Montes Alcalde
560a3f6749
Add missing checks in draw precomputed and lock lw mutex (#1169) 2021-02-22 03:12:23 +01:00
sunho
3d86d89aa0 modules: use new run_callback 2021-02-20 20:08:28 +01:00
mangren
0b41fa7e9a gxm: Handle and implement instancing 2021-02-19 21:01:38 +07:00
Pedro Montes Alcalde
082f7a867d
gxm: Implement sceGxmProgramIsEquivalent. (#1146) 2021-02-16 13:05:47 +01:00
Zangetsu38
c6a21685cf modules/gxm: implement sceGxmTextureSet(LodBias/LodMin).
gl/texture: set glTexParameter(f/i) for GL_TEXTURE_(MIN_LOD/LOD_BIAS).
2021-02-16 13:03:32 +01:00
mangren
e61594c38d gxm: Remove compability features for handwritten shader 2021-02-16 10:21:36 +01:00
scribam
5e3a6eb982
Update submodules + minor changes (#1137)
* cmake: Add NOMINMAX globally to avoid Windows compilation issues with std::min/std::max

* main/net: add missing include files

* rtc: Remove convert_filetime/convert_timespec functions as they have been replaced with _wstat/stat

* external: Update better-enums to tag "0.11.3"

* external: Update CLI11 to tag "v1.9.1"

* external: Update elfio to tag "Release_3.8"

* external: Update glad to tag "0.1.34"

* external: Update googletest to tag "release-1.10.0"

* external: Update imgui to tag "v1.80"

* external: Update imgui_club

* external: Update miniz to tag "2.1.0"

* external: Update pugixml to tag "v1.11.4"

* external: Update spdlog to tag "v1.8.2"

* external: Update stb

* external: Update yaml-cpp to tag "yaml-cpp-0.6.3"

* external: Switch to vitasdk/vita-toolchain

* external: Refactor xxHash integration
2021-02-09 21:49:54 +01:00
Nicolas Jallamion
cf510e4cd8
modules/SceGxm: implement both PrecomputedStateSetAllUniformBuffers. (#1134) 2021-02-08 20:35:32 +07:00
scribam
4ca67af2f8 SceGxm: Add minor error checks 2021-02-06 22:41:28 +01:00
Zangetsu38
fa3e9b2027 modules/SceGxm: Implement both DefaultUniformBuffer function. 2021-02-06 14:58:57 +01:00