Commit graph

1554 commits

Author SHA1 Message Date
mailwl
daaa2b338e
Using native Fios2 (#73) 2020-03-01 01:05:47 +08:00
Asuka
5386eb5929 style fixes 2020-03-01 01:02:06 +08:00
Asuka
eb2f0dd977 use VirtualAlloc instead of malloc 2020-03-01 01:01:58 +08:00
mailwl
6999a72d99 Using native Fios2 2020-02-28 19:02:36 +03:00
Asuka
df2f21304d refine some shader functions 2020-02-28 00:51:04 +08:00
Asuka
aa5ac9e19b rename source file 2020-02-27 20:06:44 +08:00
Asuka
b5ca0dc399 add spi shader reg fields definitions
and fix script
2020-02-27 20:00:08 +08:00
Asuka
36ac6ed41d add script to convert AMD macros into structures 2020-02-27 19:49:02 +08:00
Asuka
6624a97ede first step to translate compute shader 2020-02-26 02:46:53 +08:00
Asuka
e04a508dea fix default pipeline state contructor
for GveRasterizationInfo and GveColorBlendInfo
2020-02-26 02:46:26 +08:00
Asuka
d98c6b7783 delete dummy multisample state
not needed anymore
2020-02-25 04:24:37 +08:00
Asuka
4f4bd58f4f add guide for linux tls implement 2020-02-25 04:24:12 +08:00
Asuka
ec149790fc refactory pipeline state infos 2020-02-25 03:50:12 +08:00
Asuka
fbdf2a36eb use std::queue to store cmdlist 2020-02-24 21:03:40 +08:00
Asuka
25fa84c666 track staging buffer reference count 2020-02-24 20:55:39 +08:00
Asuka
f29fb9c27f batch copy operations into one main command buffer
still have problems on staging buffer allocation
2020-02-24 05:34:36 +08:00
Asuka
07b0496932 fix m_recordBegin flag clear 2020-02-23 21:13:33 +08:00
Asuka
2c8968220e handle no initializeDefaultHardwareState call
initializeDefaultHardwareState is not necessary  to be called at every frame start according to the manual.
2020-02-23 21:11:36 +08:00
Asuka
46b71bf5d1 add some comments 2020-02-23 08:57:18 +08:00
Asuka
a0890f14bb force using dedicated compute queue 2020-02-22 08:04:39 +08:00
Asuka
e855f60c46 add a dummy submission queue
currently just a sync queue for future modification
2020-02-22 08:04:18 +08:00
Asuka
5a2a3de45a add a link about vulkan synchronization 2020-02-22 08:03:10 +08:00
Asuka
966ef4c581 redirect compute queue creatation functions to gnmdriver 2020-02-22 01:40:26 +08:00
Asuka
6a669e43f8 use array instead of map to store gprs 2020-02-22 00:57:56 +08:00
Asuka
3fb6b80fb6 ignore 2020-02-21 03:37:49 +08:00
Asuka
ef1f28c1d3 fix cmdlist refcount
keep refcount set to 1 in recycle list
2020-02-21 03:33:26 +08:00
Asuka
b3ef98c760 fix refactoring errors
now can run basic_compute
2020-02-21 02:53:36 +08:00
Asuka
4da02151b3 done first step of refactoring
fully implement GpuQueue.
fix cmdlist usage errors.
split submit and present
fix compile
2020-02-21 02:21:51 +08:00
Asuka
a8a4a2afd1 many refactoring
use SceGpuQueue to emulate hareware GPU queue.
use compute and transfer queue and cmdbuffer
unified device create functions
not complete, can't compile
2020-02-20 05:55:55 +08:00
Asuka
564d4578b6 add ScePresenter 2020-02-20 01:49:32 +08:00
Asuka
332de2e65c record only one vulkan cmdlist
not complete, can't compile
2020-02-19 04:48:05 +08:00
Asuka
c0d47ad1a7 reverse and recover more gnm calls 2020-02-18 21:25:43 +08:00
Asuka
6817682805 Update .clang-format
add Util iinclude directory
2020-02-18 21:24:31 +08:00
Asuka
e7f2f49f30 reverse more dcb method for compute 2020-02-18 04:44:45 +08:00
jvipond
36716a0218
Fixes to get some games to boot further (#71) 2020-02-17 22:11:25 +08:00
Asuka
8732f804a4 change GveSharpResourceManager method
split original createOrGet
2020-02-17 11:44:30 +08:00
Asuka
b274badaa0 align function parameter by identifier 2020-02-17 11:43:32 +08:00
Asuka
335729bdaf Merge branch 'master' into nier 2020-02-17 10:52:07 +08:00
Asuka
1c123c9113 rename RenderTarget to GnmRenderTarget 2020-02-17 10:51:57 +08:00
Asuka
157752f782 add assert in setEmbeddedVsShader 2020-02-17 10:34:20 +08:00
BoredPerson
588881d248
Load files from working dir instead of the exe dir (#70)
* Load files from working dir instead of the exe dir

This allows game data to be located in different folders and to change games by changing working directory.

* Update DeveloperGuide.md
2020-02-17 08:41:39 +08:00
Asuka
389baa37e2 fix compile 2020-02-17 01:19:53 +08:00
Asuka
88b96cd2cb fix V_LSHLREV_B32 instruction type 2020-02-17 01:19:42 +08:00
BoredPerson
574f594fb9
Implements embedded vs shader (#69)
* Implement embedded vs shader

basic sample works now
implements V_ADD_I32 and V_LSHLREV_B32
fixes bindImmConstBuffer for vs and ps shader
fixes GCNCompiler::emitVsInit() when there is no fetch shader

* move embedded vs shader code from global to function

* fix VectorConv instruction src type

V_CVT_F32_U32
V_CVT_F32_I32

Co-authored-by: Asuka <bingkan@outlook.com>
2020-02-17 00:46:46 +08:00
Asuka
e851f67232 fix VectorConv instruction bug 2020-02-16 03:53:49 +08:00
Asuka
5f1f271bc5 fix compile error after merge 2020-02-16 02:46:11 +08:00
Asuka
e0932493de Merge branch 'nier' 2020-02-15 22:46:04 +08:00
Asuka
f33f17e811 Update UsefulLinks.md 2020-02-15 22:42:20 +08:00
Asuka
5fce7e07ee fix v0 initialization bugg 2020-02-15 19:38:19 +08:00
Asuka
075229af66 reform fetch shader interface
to better support shader which do not have fetch shader
2020-02-15 06:36:11 +08:00