Commit graph

124 commits

Author SHA1 Message Date
Jean-Philip Desjardins
5a0ee10a9b Style fix. 2021-09-18 12:11:16 -04:00
Jean-Philip Desjardins
6e8209508f Refactor first pass in prep for mobile vulkan merge. 2021-09-18 12:11:16 -04:00
Jean-Philip Desjardins
6e5b7ad138 Style fix. 2021-08-10 10:30:15 -04:00
Jean-Philip Desjardins
cd30ca16cc Implement FBA GS register. 2021-08-09 12:48:40 -04:00
Jean-Philip Desjardins
d7613b9523 Remove fp dst color.
At this state, MGS3 and Castlevania: CoD seem to give proper results. GoW's fog is still a problem.
2021-08-06 16:54:48 -04:00
Jean-Philip Desjardins
c62df6173b Move code around to make it clearer. 2021-08-06 14:23:08 -04:00
Jean-Philip Desjardins
69008efde8 Name some more variables. 2021-08-06 13:49:55 -04:00
Jean-Philip Desjardins
851424e5be Name variables. 2021-08-06 11:38:20 -04:00
Jean-Philip Desjardins
39f4f46c2e Fix blending formulae and test color clamping. 2021-08-06 11:16:04 -04:00
Jean-Philip Desjardins
62db8844e8 Blend using integer values.
Preparing for color clamping support.
2021-08-04 17:27:04 -04:00
Jean-Philip Desjardins
a4d7bb7db8 Cleanup. 2021-08-04 17:25:13 -04:00
Jean-Philip Desjardins
cfb81ed686 Add support for points in Vulkan. 2021-07-14 14:07:46 -04:00
Jean-Philip Desjardins
130fe2898e Mask CLUT address.
Fixes Vulkan GPU crash in Wild Arms 3.
2021-05-27 10:47:10 -04:00
Jean-Philip Desjardins
50f69fbee2 Reduce the number of times we copy GS RAM.
Batch non overlapping sprites to use the same copy.
2021-05-04 17:11:54 -04:00
Jean-Philip Desjardins
75cca15cc0 Specify coherent attribute on memory array.
Fixes some visual artifacts (probably on overlapping triangles in a same draw call).
2021-04-27 13:51:59 -04:00
Jean-Philip Desjardins
6e39978990 Restrict/optimize further. 2021-04-12 15:39:33 -04:00
Jean-Philip Desjardins
cfe9060ab5 Flush render pass when we need a memory copy. 2021-04-12 15:38:30 -04:00
Jean-Philip Desjardins
03e5b3bd6e When output buffer pointers and texture pointer are the same, sample off a RAM copy. 2021-04-12 11:42:42 -04:00
Jean-Philip Desjardins
6ce95b5f53 Disable pipeline barrier on macOS. 2021-03-31 13:15:08 -04:00
Jean-Philip Desjardins
77791ab8d1 Make memory types explicit. 2021-03-30 16:01:36 -04:00
Jean-Philip Desjardins
6dec2d2dec Add scan mask support on Vulkan. 2021-03-24 16:56:14 -04:00
Jean-Philip Desjardins
ecba765963 Restrict the pipeline barrier further.
Fixes some artifacts on Vulkan in MGS2.
2021-03-24 16:56:13 -04:00
rcaridade145
fcfc61fdb0 Fix clang format 2021-03-10 20:20:44 +00:00
rcaridade145
009d61dba2 Fix some issues pointed out by running Play Vulkan validation layers active. 2021-03-09 20:32:49 +00:00
Jean-Philip Desjardins
52c1aaa2f9 Add missing cases. 2021-01-11 15:59:04 -05:00
Jean-Philip Desjardins
236d82d872 Fix shader compilation warning. 2020-12-20 11:28:28 -05:00
jpd002
8a13257f7d Remove useless assert. 2020-09-22 08:45:59 -04:00
jpd002
0ec6abf2b5 Fix code style. 2020-09-22 08:45:59 -04:00
jpd002
460455ca84 Implement line rendering in Vulkan. 2020-09-22 08:45:59 -04:00
jpd002
c781a7f848 Implement HIGHLIGHT texture function. 2020-08-17 10:41:37 -04:00
jpd002
9d751a69f8 Increase draw area size.
BGDA (and other Snowblind games) use a viewport larger than 1024.
2020-08-17 10:41:09 -04:00
jpd002
065b4ae8c8 Mask frame buffer and depth buffer write addresses. 2020-07-22 10:45:44 -04:00
jpd002
0b783ce99d Convert some temporaries into variables.
For easier debugging.
2020-06-11 08:20:14 -04:00
Jean-Philip Desjardins
967835cd9d Fix build error. 2020-06-02 14:37:29 -04:00
Jean-Philip Desjardins
85e4aa1809 Fix formatting. 2020-06-02 12:03:33 -04:00
jpd002
a8b8115405 Enable linear filtering in some scenarios. 2020-05-27 20:08:01 -04:00
jpd002
c863df8d09 Linear texture sampling (not enabled yet). 2020-05-27 20:08:01 -04:00
jpd002
e5b6f8d812 Fix warnings. 2020-05-27 20:08:01 -04:00
jpd002
84006a6f6d Apply (0.5, 0.5) offset to snap on pixel grid. 2020-05-27 20:08:01 -04:00
jpd002
3a14b4dae1 Add support for some missing pixel formats. 2020-05-27 20:08:01 -04:00
Jean-Philip Desjardins
9ce5398d49 Code style fixes. 2020-03-11 20:46:11 -04:00
Jean-Philip Desjardins
40967f88cb Add PSMZ16 swizzle table. 2020-03-11 19:27:49 -04:00
Jean-Philip Desjardins
1916a5bdab Fix validation warning. 2020-03-11 19:27:49 -04:00
Jean-Philip Desjardins
c1a2b74fca Cache CLUT transfers. Allow previous transfers to be reused. 2020-03-11 19:27:49 -04:00
Jean-Philip Desjardins
2fdc414c40 Store CLUT in a buffer instead of image. 2020-03-11 19:27:49 -04:00
Jean-Philip Desjardins
b04e3af86d Fix destination alpha test. 2020-03-11 19:27:49 -04:00
Jean-Philip Desjardins
12626631db Add destination alpha test for 32-bit frame buffers. 2020-03-11 19:27:49 -04:00
Jean-Philip Desjardins
b8a3c27d80 Add destination alpha test. 2020-03-11 19:27:49 -04:00
Jean-Philip Desjardins
ee75e7268d Add missing alpha test condition. 2020-03-11 19:27:48 -04:00
Jean-Philip Desjardins
61b503013f Code stylin'. 2020-02-04 09:29:13 -05:00