Commit graph

1326 commits

Author SHA1 Message Date
DummyCatz
2b40e89bd2 refactoring & bug fix
Module system is still work in progress.
2019-10-04 14:37:30 +08:00
Inori
38ed6c4b39 Use a hack to solve compile error. 2019-10-04 02:29:02 +08:00
Inori
6ae4894cb4 Update CodeStyle.md 2019-10-04 01:18:21 +08:00
Asuka
09b9af7572 Rename SpirvRegisterArray to SpirvGprArray 2019-10-03 19:44:38 +08:00
Asuka
4829e6e122 Begin support uniform buffer 2019-10-03 19:43:10 +08:00
Asuka
ff60f2d413 Ignore 2019-10-03 17:57:30 +08:00
Asuka
ad249eddeb Add some new instruction class defs 2019-10-03 17:56:21 +08:00
Asuka
2e811bc157 ignore 2019-10-03 17:52:02 +08:00
Asuka
0b73ec3a09 Add some helper functions 2019-10-03 17:51:52 +08:00
Asuka
9ba1df58fb Move enums to a single header file 2019-10-03 17:51:30 +08:00
Asuka
b0f405061b Ignore switch warning 2019-10-03 17:22:27 +08:00
Asuka
734588eb42 Support exp param 2019-10-03 17:22:05 +08:00
Inori
dc9a6a68d5 Don't need to load 2019-10-03 01:51:59 +08:00
Inori
5eb193ce8b Restore tzcnt 2019-10-03 01:43:22 +08:00
Inori
3e6dc2fe03 fix compile warnings and errors 2019-10-03 01:37:53 +08:00
Asuka
48aa220972 Reform Program Flow handlers 2019-10-02 23:32:39 +08:00
Asuka
b53d8fe623 Support S_MOV_B32 2019-10-02 23:05:43 +08:00
Asuka
982316d942 Support V_MOV_B32 2019-10-02 23:05:31 +08:00
Asuka
8c9a4c8e25 ignore S_SWAPPC_B64 s[0:1], s[0:1] 2019-10-02 23:05:12 +08:00
Asuka
7a26e12d23 Support exp 2019-10-02 23:04:56 +08:00
Asuka
482c079cd4 Dummy implement S_TTRACEDATA 2019-10-02 23:04:42 +08:00
Asuka
b290e81bc2 reform operand load store 2019-10-02 23:04:21 +08:00
Asuka
59d9ecd3e2 ignore 2019-10-02 23:03:52 +08:00
Asuka
ae5e9fade5 Dummy support VCC mov 2019-10-01 23:54:44 +08:00
Asuka
d736930814 Add literalConst param to emitLoadScalarOperand 2019-10-01 23:22:14 +08:00
Asuka
28ef5cc617 Remove useless code 2019-10-01 22:52:59 +08:00
Asuka
2704ef787f Support S_MOV_B32 2019-10-01 22:51:46 +08:00
Asuka
be30d30155 refactoring reg load and store code 2019-10-01 22:51:30 +08:00
Asuka
fd996c2d79 Add GcnRegSwizzle and GcnRegMask class 2019-10-01 22:50:21 +08:00
Asuka
fc54318c51 Add VectorGPRMin and VectorGPRMax define 2019-10-01 22:50:06 +08:00
Asuka
b9cb9df02b Add LdsDirect field, Add operand defination in Instruction class 2019-10-01 22:49:49 +08:00
DummyCatz
401c43dc6e fix incorrect image PLT RELA size
- Fix a bug caused by incorrect PLT RELA size.
- Clean up codes
2019-10-01 17:57:25 +08:00
Asuka
eefc353789 ignore 2019-10-01 00:30:33 +08:00
Asuka
8d9aaa08a5 Use union for exec and vcc 2019-10-01 00:30:26 +08:00
Asuka
3e93d8e63d emulate fetch shader 2019-09-30 19:48:19 +08:00
DummyCatz
1fb2cb5f37 Update symbol parsing 2019-09-30 13:17:33 +08:00
DummyCatz
c03c49e982 Add codes for relocation
- Code refactoring
- Codes for relocation
2019-09-29 23:49:38 +08:00
Asuka
eea2b45da9 Merge branch 'master' of https://github.com/Inori/GPCS4 2019-09-29 23:37:42 +08:00
Asuka
2825de9bd9 ignore 2019-09-29 23:37:33 +08:00
Asuka
76b04ae2f5 move shader compile to draw 2019-09-29 23:37:26 +08:00
Asuka
8c708051bd Reform some functions 2019-09-29 23:37:07 +08:00
DummyCatz
5e373ec279 Update module system and loader
- Add some test codes, which should be removed after finishing the new module system.
- Add a new overridability level to the module system, which allows specifying which file we allow to load.
- Add export module and export libray table to the MemoryMappedModule.
- Fix typos.
2019-09-28 13:43:05 +08:00
DummyCatz
f7dc0edf1b wip on linker&loader
work in progress on linker and loader. the code has not been tested.
2019-09-28 10:34:56 +08:00
Asuka
223236124b Add GCNAnalyzer 2019-09-27 12:05:59 +08:00
Asuka
0e5cf40196 Save bytecode to GveShader and dump spv bytecode 2019-09-27 11:41:27 +08:00
Asuka
ee0711f5cc Add state register declare 2019-09-26 23:54:07 +08:00
Asuka
3cf3e429d1 Add main function and entrypoint genrerator code 2019-09-26 23:49:41 +08:00
DummyCatz
abd9c35042 Update module system
- New implementation of three level override mechanism.
- Add RegisterFunction() to register function before/after initialization.
2019-09-26 23:04:29 +08:00
Asuka
9e77073ea4 Add some shader compiler init code 2019-09-26 21:01:41 +08:00
DummyCatz
12d8057aa5
Update SceModuleSystem.cpp
comment out some code style violations.
2019-09-26 12:50:01 +08:00