mirror of
https://github.com/Cxbx-Reloaded/Cxbx-Reloaded.git
synced 2025-04-02 11:11:52 -04:00
Commit graph
Select branches
Hide pull requests
dx11
master
master-fixup-test
#100
#1000
#1001
#1002
#1003
#1004
#1005
#1006
#1007
#1009
#1010
#1011
#1012
#1016
#1017
#1018
#1019
#102
#1020
#1022
#1023
#1025
#1026
#1027
#1027
#1028
#1029
#1030
#1031
#1033
#1034
#1035
#1036
#1037
#1039
#1040
#1041
#1042
#1043
#1044
#1045
#1046
#1047
#1047
#1048
#1049
#105
#1050
#1050
#1054
#1056
#1057
#1058
#106
#106
#1060
#1063
#1065
#1065
#1066
#1066
#107
#1071
#1072
#1072
#1073
#1076
#1077
#1079
#1081
#1084
#1085
#1087
#1089
#109
#1090
#1092
#1092
#1093
#1094
#1098
#110
#1100
#1101
#1102
#1104
#1105
#1109
#1110
#1111
#1112
#1113
#1114
#1116
#112
#1123
#1124
#1125
#1126
#1127
#1128
#1128
#113
#1130
#1131
#1135
#1135
#1140
#1142
#1143
#1144
#1146
#1147
#1149
#115
#1150
#1152
#116
#1161
#1162
#1163
#1164
#1168
#1169
#1171
#1178
#1179
#118
#1180
#1183
#1184
#1186
#1187
#1188
#1189
#1189
#1190
#1191
#1192
#1193
#1194
#1196
#1197
#1198
#12
#120
#1200
#1201
#1202
#1205
#1208
#1210
#1211
#1212
#1213
#1214
#1215
#1216
#1217
#1217
#1218
#122
#1220
#1221
#1226
#1227
#1228
#1229
#123
#1230
#1231
#1232
#1233
#1235
#1236
#1240
#1241
#1243
#1243
#1244
#1245
#1246
#1247
#1248
#1250
#1251
#1252
#1253
#1257
#1258
#1259
#126
#1260
#1262
#1264
#1265
#1268
#1269
#1269
#1270
#1271
#1272
#1279
#128
#1280
#1281
#1282
#1284
#1285
#1286
#1287
#1288
#1289
#1291
#1295
#1296
#1297
#1298
#1299
#130
#1300
#1301
#1302
#1303
#1304
#1305
#1307
#1308
#1310
#1311
#1314
#1317
#132
#1320
#1326
#1327
#1328
#133
#133
#1332
#1333
#1334
#1337
#1341
#1343
#1343
#1345
#1346
#1346
#1347
#1348
#1349
#1350
#1351
#1355
#1357
#1365
#1366
#1368
#1369
#137
#137
#1370
#1371
#1372
#1373
#1374
#1375
#1376
#1377
#1380
#1383
#1384
#1386
#1388
#1389
#139
#1392
#1393
#1394
#1395
#1398
#1399
#140
#1400
#1402
#1403
#1404
#1405
#1407
#1408
#141
#141
#1410
#1411
#1412
#1413
#1414
#1415
#1417
#1418
#1419
#142
#1420
#1421
#1422
#1422
#1423
#1424
#1425
#1426
#1427
#143
#1434
#1436
#1437
#1439
#1440
#1441
#1442
#1443
#1444
#1445
#1449
#145
#1451
#1452
#1453
#1454
#1455
#1457
#1458
#1460
#1461
#1462
#1463
#1464
#1466
#147
#148
#1481
#1482
#1485
#1488
#1489
#149
#1490
#1491
#1492
#1493
#1494
#1495
#1497
#1499
#15
#150
#1503
#1504
#1505
#1507
#1508
#1509
#1510
#1511
#1512
#1515
#1516
#1517
#1519
#152
#1520
#1521
#1522
#1523
#1526
#1527
#1529
#153
#1530
#1531
#1532
#1533
#1534
#1535
#1537
#1538
#154
#1541
#1543
#1544
#1545
#1546
#1547
#1548
#1549
#1552
#1553
#1556
#1557
#1558
#1560
#1561
#1563
#1564
#1565
#1567
#1568
#157
#157
#1570
#1572
#1573
#1574
#1575
#1577
#1578
#1579
#158
#1581
#1582
#1583
#1584
#1586
#1588
#1589
#159
#1590
#1592
#1593
#1594
#1595
#1596
#1597
#1599
#160
#1601
#1602
#1603
#1605
#1606
#1607
#1608
#1609
#161
#1611
#1612
#1613
#1614
#1615
#1618
#1619
#1620
#1621
#1622
#1623
#1624
#1626
#1627
#1629
#163
#1631
#1632
#1633
#1635
#1636
#1637
#1639
#164
#1641
#1642
#1644
#1646
#1647
#1648
#1649
#165
#1650
#1651
#1652
#1654
#1655
#1657
#166
#1662
#1664
#1666
#1667
#1668
#1669
#167
#167
#1670
#1671
#1672
#1673
#1674
#1675
#1676
#1677
#1678
#1679
#168
#1680
#1682
#1683
#1684
#1686
#1687
#1688
#169
#1692
#1694
#1695
#1696
#1697
#170
#1700
#1701
#1702
#1703
#1704
#1705
#1707
#1708
#1709
#171
#1713
#1715
#1716
#1717
#1719
#172
#1720
#1721
#1722
#1723
#1725
#1726
#1728
#1729
#1730
#1731
#1735
#1736
#1737
#1738
#1741
#1742
#1745
#1746
#1747
#1748
#1750
#1752
#1754
#1755
#1756
#1757
#1759
#176
#1761
#1763
#1765
#1766
#1767
#1769
#1770
#1771
#1772
#1774
#1776
#178
#1780
#1781
#1782
#1783
#1785
#1789
#179
#1791
#1796
#1797
#1799
#18
#180
#1800
#1801
#1805
#1806
#1807
#1808
#1809
#181
#1811
#1812
#1813
#1814
#1815
#1816
#1817
#1818
#1820
#1821
#1823
#1824
#1825
#1827
#1828
#1829
#1833
#1834
#1835
#1837
#1838
#1839
#184
#1840
#1842
#1843
#1844
#1845
#1846
#1847
#1849
#185
#1850
#1851
#1852
#1853
#1854
#1856
#1857
#1859
#186
#1862
#1863
#1864
#1865
#1866
#1867
#1868
#1869
#187
#1870
#1871
#1872
#1877
#1879
#188
#1881
#1887
#1888
#1889
#189
#1890
#1891
#1892
#1894
#190
#1901
#1904
#1905
#1906
#191
#1911
#1913
#1914
#1915
#1916
#1917
#1918
#1921
#1922
#1923
#1925
#1928
#1929
#1932
#1934
#1935
#1938
#1940
#1941
#1942
#1943
#1944
#1945
#1946
#1947
#1948
#1952
#1955
#1956
#1957
#1964
#1965
#1966
#1967
#1968
#1969
#1970
#1972
#1974
#1975
#1976
#1977
#1978
#1981
#1982
#1983
#1984
#1985
#1986
#1987
#1989
#1990
#1991
#1992
#1993
#1994
#1995
#1996
#1997
#1998
#1999
#20
#200
#2000
#2001
#2002
#2003
#2004
#2005
#2007
#2008
#201
#201
#2011
#2012
#2014
#2015
#2021
#2022
#2028
#2029
#203
#203
#2030
#2031
#2032
#2033
#2034
#2036
#2037
#2038
#2039
#204
#2040
#2041
#2044
#2045
#2047
#2048
#2049
#2050
#2052
#2053
#2055
#2058
#2059
#2060
#2067
#2068
#2069
#2070
#2071
#2072
#2073
#2074
#2075
#2076
#2078
#208
#210
#2104
#2105
#2106
#2107
#2108
#2109
#211
#2110
#2112
#2116
#2117
#2118
#2120
#2121
#2122
#2123
#2124
#2125
#2126
#2127
#2128
#2129
#2130
#2131
#2133
#2134
#2135
#2136
#2138
#214
#2140
#2141
#2146
#2147
#2148
#2149
#215
#2150
#2151
#2152
#2153
#2154
#2155
#2156
#2157
#2158
#2160
#2163
#2164
#2165
#2167
#2168
#217
#2170
#2171
#2172
#2174
#2176
#2178
#2179
#2181
#2182
#2183
#2184
#2185
#2188
#2189
#2192
#2193
#2194
#2196
#2197
#2198
#2199
#220
#2200
#2201
#2202
#2203
#2204
#2205
#2206
#2207
#2209
#221
#2210
#2211
#2212
#2213
#2214
#2215
#2217
#2218
#2219
#2220
#2221
#2222
#2223
#2224
#2227
#2228
#2230
#2231
#2232
#2233
#2233
#2234
#2235
#2236
#2237
#2238
#2239
#2240
#2241
#2242
#2243
#2244
#2245
#2246
#2247
#2248
#2249
#2250
#2252
#2254
#2255
#2256
#2257
#2259
#2261
#2265
#2266
#2267
#2268
#2269
#227
#2271
#2278
#2280
#2281
#2282
#2284
#2285
#2286
#2288
#2289
#2290
#2291
#2292
#2294
#2295
#2296
#2297
#2298
#2299
#23
#2301
#2302
#2305
#2306
#2308
#2309
#2309
#2310
#2311
#2312
#2315
#2318
#2319
#232
#2320
#2321
#2325
#2326
#2327
#2328
#233
#2334
#2336
#2337
#2339
#234
#2340
#2341
#2342
#2345
#2348
#2349
#2350
#2351
#2353
#2355
#2356
#2357
#2358
#2359
#2360
#2362
#2363
#2364
#2365
#2369
#2370
#2374
#2375
#2377
#2378
#238
#2380
#2381
#2382
#2383
#2384
#2385
#2386
#2387
#2388
#2389
#239
#2390
#2391
#2393
#2397
#2398
#240
#2400
#2401
#2403
#2404
#2406
#2408
#2409
#2411
#2412
#2413
#2414
#2416
#2417
#2418
#242
#2426
#2428
#2429
#2429
#2432
#2434
#2434
#2436
#2436
#2437
#2438
#2438
#2439
#244
#2440
#2441
#2444
#2445
#2451
#2452
#2455
#2456
#2457
#2458
#2462
#2463
#2468
#2469
#2470
#2470
#2472
#2473
#2474
#2484
#2485
#2485
#249
#252
#253
#254
#255
#256
#258
#259
#260
#263
#264
#267
#27
#270
#281
#284
#286
#287
#289
#291
#292
#293
#294
#299
#301
#303
#304
#305
#307
#318
#319
#321
#324
#324
#325
#326
#327
#328
#329
#33
#330
#331
#333
#334
#345
#347
#348
#350
#356
#357
#359
#36
#363
#364
#365
#366
#367
#368
#37
#370
#374
#375
#376
#379
#380
#381
#382
#383
#384
#385
#387
#388
#389
#390
#392
#393
#394
#395
#396
#397
#398
#40
#400
#405
#406
#41
#410
#417
#419
#42
#420
#421
#422
#423
#424
#428
#43
#432
#433
#434
#435
#436
#437
#439
#440
#441
#443
#450
#453
#458
#458
#459
#460
#461
#462
#463
#464
#465
#468
#469
#471
#473
#474
#480
#484
#486
#491
#492
#496
#498
#50
#501
#503
#505
#506
#507
#508
#509
#51
#510
#511
#514
#529
#53
#534
#536
#537
#538
#539
#54
#540
#542
#543
#544
#548
#554
#555
#556
#557
#558
#56
#562
#564
#57
#571
#572
#575
#576
#577
#580
#581
#582
#585
#59
#592
#595
#598
#601
#615
#616
#618
#62
#626
#66
#66
#67
#672
#673
#676
#681
#683
#683
#684
#687
#689
#690
#691
#693
#694
#695
#696
#698
#699
#701
#702
#703
#704
#708
#71
#710
#711
#712
#713
#714
#715
#718
#719
#720
#721
#722
#722
#724
#726
#727
#729
#73
#732
#733
#734
#735
#736
#737
#738
#739
#740
#741
#742
#744
#745
#749
#751
#752
#753
#755
#756
#757
#758
#759
#76
#760
#761
#763
#764
#765
#768
#77
#770
#771
#772
#773
#774
#775
#777
#778
#78
#780
#781
#782
#785
#786
#787
#79
#790
#795
#797
#80
#800
#801
#802
#804
#805
#806
#809
#810
#811
#812
#814
#816
#819
#821
#822
#823
#824
#825
#826
#828
#83
#830
#833
#835
#837
#838
#839
#839
#84
#840
#841
#843
#844
#845
#846
#848
#85
#851
#852
#853
#854
#856
#858
#859
#86
#862
#864
#865
#866
#867
#868
#869
#87
#872
#874
#875
#876
#88
#881
#882
#883
#884
#886
#887
#888
#889
#891
#892
#893
#895
#896
#897
#898
#899
#899
#90
#900
#903
#905
#906
#907
#908
#909
#910
#911
#912
#914
#915
#917
#918
#919
#920
#921
#922
#923
#924
#925
#926
#927
#928
#929
#93
#930
#932
#933
#933
#934
#935
#935
#936
#938
#939
#940
#940
#941
#943
#944
#945
#947
#949
#95
#950
#951
#954
#956
#957
#958
#961
#963
#964
#965
#967
#968
#969
#970
#971
#973
#975
#976
#977
#977
#979
#980
#983
#984
#989
#99
#990
#992
#993
#994
#995
#995
#997
#999
CI-0007d20
CI-0043e45
CI-018a806
CI-0217200
CI-049a070
CI-067aa82
CI-06fadd6
CI-0799214
CI-09e744e
CI-0afcf04
CI-0b69563
CI-0c28aca
CI-0f853f3
CI-1034185
CI-1077115
CI-10ba282
CI-111728f
CI-13bd79f
CI-16ffe3a
CI-1710f01
CI-17b0cb8
CI-187f4a8
CI-1887f3a
CI-1b10e1b
CI-1c46540
CI-1c67c0d
CI-1e05973
CI-1e300d6
CI-1ee1239
CI-204dcf8
CI-213dd2f
CI-216b5c2
CI-21c27b4
CI-238dda1
CI-2397ece
CI-23a3bc4
CI-23c1dcf
CI-23c8d37
CI-246d1fa
CI-24c4e3d
CI-25b9a2e
CI-2695d91
CI-2833314
CI-28d031d
CI-2a23634
CI-2c72faa
CI-2d3977b
CI-2d63e89
CI-2f74af1
CI-30956c1
CI-30dbba8
CI-31a47cd
CI-31ff15b
CI-34f8d30
CI-3515449
CI-357948a
CI-362c938
CI-374ba5e
CI-38242d4
CI-38aaf71
CI-3908a8c
CI-3a7b233
CI-3b82af6
CI-3bdd689
CI-3bf2eff
CI-3d244b7
CI-3e5272d
CI-3edc388
CI-3f4f141
CI-401337a
CI-41c9d7a
CI-41d45dd
CI-4204640
CI-42ff76c
CI-4457d11
CI-44f0aee
CI-44f1e09
CI-471f389
CI-47795ba
CI-4808be6
CI-484a2c3
CI-48814d3
CI-494ef0b
CI-4b5bef2
CI-4b5edbd
CI-4b735c5
CI-4c384ef
CI-4d06712
CI-4d4f6dd
CI-4e6068f
CI-4f24048
CI-4ff30ff
CI-50334cb
CI-52c88d7
CI-52cdb4e
CI-547c3ae
CI-555f240
CI-55da0a2
CI-56eede2
CI-59534bd
CI-5995641
CI-5a1b8b5
CI-5a454aa
CI-5d222c1
CI-5e42d18
CI-5e928e5
CI-5f7b941
CI-5fe769b
CI-6111fc9
CI-615b702
CI-61e7e30
CI-6283232
CI-629d6d2
CI-6350aba
CI-6389cb6
CI-65959ec
CI-66bccac
CI-6788bf1
CI-68b3f0f
CI-696d498
CI-6a70a08
CI-6c530fb
CI-6cfad6f
CI-6d187f1
CI-6db6256
CI-6e68433
CI-6f32d89
CI-6f81d21
CI-70088b3
CI-71dc7e9
CI-724a1ca
CI-7290824
CI-72acea2
CI-74138d1
CI-74c8b0c
CI-756ad91
CI-764304c
CI-7767250
CI-7938142
CI-79391fc
CI-7a59d77
CI-7a69834
CI-7bfd8be
CI-7c630d6
CI-7e0f8f4
CI-807f95c
CI-8087b15
CI-827a321
CI-8415397
CI-84cd4e3
CI-8588230
CI-85daa21
CI-8602274
CI-8667d22
CI-86788a5
CI-875f97b
CI-88a37ac
CI-8919d99
CI-8a1e4b1
CI-8a4c746
CI-8a87fd8
CI-8ac5d14
CI-8ae094d
CI-8b35389
CI-8b9b26b
CI-8bfbcb5
CI-8c1ee7d
CI-8c754be
CI-8c986c2
CI-8cc9c73
CI-8d8ebd7
CI-8f848f8
CI-8fcc2f5
CI-8fe6092
CI-917bf50
CI-91a77b0
CI-935fab7
CI-94f0258
CI-95b789e
CI-9635ba9
CI-967f53a
CI-97012d6
CI-971318a
CI-97b90fc
CI-97bf1d9
CI-9a773ef
CI-9b5fe39
CI-9d714c4
CI-9e9f78e
CI-9ebdef8
CI-9f5b4e0
CI-9f87854
CI-9fab1d5
CI-a1dfa3d
CI-a25e455
CI-a380927
CI-a53f360
CI-a5f4b3b
CI-a5fa409
CI-a650fd2
CI-a6e17bc
CI-a852c3e
CI-aa3c09c
CI-ab6b478
CI-abb50d6
CI-abe0c82
CI-ac5289d
CI-ac68fd4
CI-ad7328d
CI-addf4b4
CI-ae43ded
CI-b07ca85
CI-b1bd9dd
CI-b2ca281
CI-b2f6391
CI-b304e53
CI-b33ed95
CI-b3f1e61
CI-b405153
CI-b43f6bb
CI-b4dadb1
CI-b6d4c76
CI-ba980d2
CI-ba9ee5f
CI-bc9cbec
CI-be4fb1d
CI-bf1483a
CI-bf6d8b8
CI-bf931d2
CI-bfb1009
CI-c36da13
CI-c382d0f
CI-c3993c6
CI-c594e34
CI-c65d26a
CI-c7bf62c
CI-c7e75d7
CI-c808cf2
CI-c89e1ba
CI-c9fe07a
CI-ca0b978
CI-cd768c6
CI-cdb3b13
CI-ce05ea1
CI-cec1b0b
CI-cf87eae
CI-cfa7be7
CI-d0b4c6a
CI-d1580cd
CI-d26e028
CI-d3544f7
CI-d42e3ee
CI-d51743a
CI-d5af846
CI-d95249c
CI-d9b994c
CI-d9ec434
CI-da7a917
CI-db1bae2
CI-db545a3
CI-db640d5
CI-dc1f93b
CI-dc5f562
CI-dd36dd5
CI-dd7fbe3
CI-de16fe3
CI-df22c8b
CI-dff5fb0
CI-e0f41fe
CI-e1ea10c
CI-e34c990
CI-e4ef9c1
CI-e5af2b1
CI-e6b2ed8
CI-e6d9c6d
CI-e6e0d5d
CI-e774044
CI-e7f2e88
CI-e8f943e
CI-ea70070
CI-eb90237
CI-ec6987d
CI-eca9c33
CI-ed57ca9
CI-ed8a612
CI-eddc14e
CI-ee6a61c
CI-ef30044
CI-efda454
CI-efe42f4
CI-efee57a
CI-f0e99ba
CI-f1d09af
CI-f1e54be
CI-f296636
CI-f32a2e7
CI-f390c79
CI-f3aaea3
CI-f3d7ae6
CI-f44f35f
CI-f5b4878
CI-f6274cc
CI-f6e54ac
CI-f7042be
CI-f857593
CI-f8593e6
CI-f8b449d
CI-f8e0b73
CI-f9449d0
CI-fa6387a
CI-fb4b988
CI-fb4ca71
CI-fca206c
CI-fe0c2db
CI-fe398a4
CI-fe84236
CI-ff4f4f0
CI-ffe3b95
v0.1
v0.1-alpha
-
242196b036
code clean up with XBPushBuffer.cpp
Jack Chen
2023-10-18 06:36:47 +08:00 -
053fbcec49
unpatch fence related apis
Jack Chen
2023-10-18 05:54:51 +08:00 -
f0f73dfb2e
revise combiner special ICW/OCW translation, this fix Otogi1 level selection menu
Jack Chen
2023-10-18 05:23:44 +08:00 -
68b7f4c625
revised g_XGVertexBufferData array size to 100, this won't deal with CrimsonSky, not even with 2000 array elements. todo: try ringbuffer
Jack Chen
2023-10-18 04:56:12 +08:00 -
f080095cb6
add handling for combiner translation with colorICW=0x04200000 and colorOCW=0x00010c00
Jack Chen
2023-10-18 04:54:54 +08:00 -
03eaa98a01
unpatch XGSetTextureHeader(), XGSetSurfaceHeader(), XGSetVetetxBufferHeader(), D3DDevice_SetTile(),D3DDevice_GetTile() because current cache couldn't handle edge cases like CrimsonSky. may revised to ring buffer.
Jack Chen
2023-10-18 04:53:28 +08:00 -
35b8626a04
revised input coord padding from 1 to 0, pad 1 to w only
Jack Chen
2023-10-18 04:51:42 +08:00 -
8b35101b5a
fix color/alpha OP modulate setup with correct mask. playfield works.
Jack Chen
2023-10-17 08:47:35 +08:00 -
89514b6339
set scene material to host d3d
Jack Chen
2023-10-17 06:48:18 +08:00 -
151dd11f3f
correct scene ambient color, scene material ambient/emissive color calculation. add hack color scale to scale up scene ambient color and light colors since we have no way to reverse scene material colors from NV2A directly. current color scale is 2.1 using conditions from HighDynamicRange sample. this fixs HighDynamicRange sample.
Jack Chen
2023-10-17 06:05:49 +08:00 -
2c15a2fb54
use projected texcoord in pixel shader instead of vertex shader. fixs ProjectedTexture sample.
Jack Chen
2023-10-16 20:44:37 +08:00 -
7d621ccda7
set X_D3DRS_LOCALVIEWER with NV097_SET_LIGHT_CONTROL handler.
Jack Chen
2023-10-16 17:42:31 +08:00 -
8bde690ff9
revise texcoord input padding, and output projection logic. PixelShader sample works with NV2A texture transform matrix.
Jack Chen
2023-10-16 17:41:53 +08:00 -
4808be65c4
NZJenkins
2023-10-16 19:51:56 +13:00 -
5d46c9da44
fix default warp setting and composing logic in CxbxrImpl_LazySetTextureState() with correct warp mask. fix texcoord index logic to skip unused texcoord slots. clean up XbPushBuffer.cpp
Jack Chen
2023-10-16 04:24:19 +08:00 -
feed74b5c1
XBPixelShader.cpp clean up
Jack Chen
2023-10-16 04:21:04 +08:00 -
62c7f9a089
add XGSetSurfaceHeader() patch, implement XGSetSurfaceHeader() XGSetTextureHeader() D3DDevice_GetTile() D3DDevice_SetTile(). not really working yet.
Jack Chen
2023-10-16 04:19:56 +08:00 -
55befe98c2
correct shift for NV097_SET_TEXTURE_ADDRESS_CYLWRAP_Q_TRUE
Jack Chen
2023-10-16 04:17:32 +08:00 -
25fb1fe5c8
add texture cache for back buffer/depth stencil created with XGSetTextureHeader()
Jack Chen
2023-10-15 06:40:52 +08:00 -
90f12f3d9b
enable Lock3DSurface() patch. add patches/trampolines for D3DDevice_SetTile(), D3DDevice_GetTile() and XGSetTextureHeader(). function body not implemented yet.
Jack Chen
2023-10-15 06:08:23 +08:00 -
1dadb9f1e0
fix D3DTOP_LERP logic in CxbxrImpl_LazySetCombiners(), fixs SkyBox sample
Jack Chen
2023-10-15 04:11:47 +08:00 -
1a2bafcddb
fix LodBias calculation, displacement map sample shows correct effect with first texture.
Jack Chen
2023-10-14 16:27:58 +08:00 -
6a840de943
update xbox data hash and related time variables to prevent unnecessary host surface update in LoadSurfaceDataFromHost()
Jack Chen
2023-10-14 13:18:00 +08:00 -
e4402d3333
generalize xbox parent texture setting in CxbxrImpl_SetRenderTargetTexture().
Jack Chen
2023-10-14 13:14:07 +08:00 -
85d8e69fce
change CXBX_D3DCOMMON_IDENTIFYING_MASK to exclude X_D3DCOMMON_D3DCREATED. this will automatically enable two xbox textures/surfaces sharing the same format/data offset to use the same host resource.
Jack Chen
2023-10-14 12:46:07 +08:00 -
52def6ebaa
generalize Lock2DSurface()/Lock3DSurface() with newly added LoadSurfaceDataFromHost() and GetXboxSurfaceAndTransferFromHostSurface(). use LoadSurfaceDataFromHost() in CxbxrImpl_SetRenderTarget() as well.
Jack Chen
2023-10-14 07:21:31 +08:00 -
97931f30b8
add XGSetVertexBufferHeader() patches and g_XGVertexBufferData cache for vertex buffer created using this api. preparation for linking render target with vertex buffer created using this api.
Jack Chen
2023-10-11 05:37:01 +08:00 -
d310e7deab
temp commit to fix pRenderTarget's content got altered when D3DDevice_SetRenderTarget() reached CxbxrImpl_SetRenderTarget(). we have to pass the whole render target and depth setncil buffer to pushbuffer to prevent xbox side alter the content after leaving D3DDevice_SetRenderTarget().
Jack Chen
2023-10-10 21:08:02 +08:00 -
2d40de3f1b
add wrongliy deleted "float4 temp;" line in CxbxVertexShaderTemplate.hlsl fix VSLight sample crash when lights reduced to 3.
Jack Chen
2023-10-09 16:43:29 +08:00 -
110c41b0dd
update logic for setting color OP/alpha OP to diabled in stage 0 in CxbxrImpl_LazySetCombiners(). add further check with ColorICW[1] and AlphaICW[1]. this fixs ProjectedTexture sample.
Jack Chen
2023-10-09 14:58:39 +08:00 -
be34728548
tmp commit for converting RectPatch to indexed triangle strip. this works in HLE, but in LLE there is no rendering at all.
Jack Chen
2023-10-07 01:16:07 +08:00 -
e262885272
forces X_D3DRS_LIGHTING to true in CxbxrImpl_LazySetLights() when vertex shader is not fixed mode. xbox always set KelvinPrimitive.SetLightingEnable to false when the vertex shader is in passthrough or program mode no matter what the setting is in X_D3DRS_LIGHTING render state. so we have to force set it to true.
Jack Chen
2023-10-07 01:25:26 +08:00 -
8172c68099
add code to convert RectPatch to indexed triangle strips.
Jack Chen
2023-10-07 00:41:11 +08:00 -
9838d27bb5
experiment for HLE D3DDevice_DrawRectPatch()
Jack Chen
2023-10-06 07:29:10 +08:00 -
6ab723e1d4
X_D3DRS_MULTISAMPLEMODE X_D3DRS_MULTISAMPLERENDERTARGETMODE render states setup via pg->KelvinPrimitive.SetSurfaceFormat
Jack Chen
2023-10-06 05:54:52 +08:00 -
ad805afa4e
repatch D3DDevice_GetBackBuffer() D3DDevice_GetBackBuffer2() D3DDevice_GetBackBuffer2_0__LTCG_eax1() and always return current xbox backbuffer. update xbox back buffer host surface with xbox surface data if it's been locked before draw call or swap. this fixs TrueTypeFont sample
Jack Chen
2023-10-05 21:57:32 +08:00 -
2fc22ad7fb
patch D3DDevice_BeginPushBuffer() and D3DDevice_EndPushBuffer() to use g_pXbox_BeginPush_Buffer as flag for pushbuffer recording. we need this flag to determine whether to trampoline certain function.
Jack Chen
2023-10-05 18:36:11 +08:00 -
060e21affd
use default AvSavedDataAddress as persisted surface for D3D_GetPersistedSurface() and AvGetSavedDataAddress()
Jack Chen
2023-10-05 18:14:37 +08:00 -
d1133c1bef
fix GetAVSavedSurface() enable D3DDevice_GetPersistedSurface(). got bugs when xbox title tries to release AVSavedAddress.
Jack Chen
2023-10-05 17:43:55 +08:00 -
3bdc5b677b
Remove/localize includes to speed up build
Anthony
2023-10-05 20:31:47 +13:00 -
d22f0be039
remove filesystem include to reduce build time
Anthony
2023-10-05 20:08:55 +13:00 -
d7650d13c0
unpatch D3DDevice_GetPersistedSurface() D3DDevice_GetPersistedSurface_0() and let AvGetSavedDataAddress(void) do it's job
Jack Chen
2023-10-05 13:00:25 +08:00 -
846fb3bae2
sync D3DDevice_EndVisibilityTest() D3DDevice_EndVisibilityTest_0() D3DDevice_BeginVisibilityTest() with pgraph using WaitForPGRAPH flag. fix VisibilityText sample
Jack Chen
2023-10-04 22:07:13 +08:00 -
b27b4770c4
add DrawMode::PrimeVertexCache in pgraph and implement logics to handle D3DDevice_PrimeVertexCache(). fix Ripple sample.
Jack Chen
2023-10-04 21:11:05 +08:00 -
c90fb04b85
add HLE patches for D3DDevice_GetPersistedSurface() and D3DDevice_GetPersistedSurface2() and implement D3DDevice_PersistDisplay()
Jack Chen
2023-10-04 16:45:18 +08:00 -
64f6bb4030
correct Light.Position/Light.Direction calculation using inverse view transform matrix. correct D3DDevice_SetLight() token setup by passing whole *pLight to pushbuffer.
Jack Chen
2023-10-04 13:22:33 +08:00 -
96a8597914
add HLE to prgaph toke template for allocating 128 bytes pushbuffer space including command word.
Jack Chen
2023-10-04 13:20:48 +08:00 -
16d20fd5ce
use xbox view matrix in fix mode vertex shader constant light setup.
Jack Chen
2023-10-04 06:42:24 +08:00 -
b227c7a54b
fix fog mode constant update code with program vertex shader. remove wrongly applied double DWtoF() conversion. fix Fog sample
Jack Chen
2023-10-04 05:37:09 +08:00 -
65e8417fed
fix state shader input handling when pData is nullptr. test case: StateSahder sample.
Jack Chen
2023-10-03 23:19:32 +08:00 -
dcc7d0ef41
move linkage of render target surface with texture stage input texture code to CxbxrImpl_SetRenderTarget(). add experiment code for linking depth stencil buffer with texture stage input texture, not working yet.
Jack Chen
2023-10-03 22:16:36 +08:00 -
45b57ab75f
update host texture format checking logic in CxbxUpdateHostTextures(). when not being used as bumpmap texture, we check whether the host texture is bumpmap texture format or not.
Jack Chen
2023-10-01 21:12:37 +08:00 -
8886925f4b
add SetHostResourcePCFormat() in CxbxrImpl_SetTexture() to set host resource PCFormat when a rentarget type host resource was recreated as texture and used in texture stage. this fixs regressed DynamicGamma sample. prevent wrongly handling of bumpmap format textures inside CxbxUpdateHostTextures()
Jack Chen
2023-10-01 21:03:05 +08:00 -
e9767851ad
check duplicated texcoord vertex attribute slots and set texcoord index texture stage states accordingly. also fix texcoord index setup code in CxbxrImpl_LazySetTextureTransform()
Jack Chen
2023-10-01 19:57:20 +08:00 -
e3783f9516
revert: fix host stream stride and vertex element offset calculation when there are two or more vertex elements sharing the same vertex element.
303e132a
Jack Chen
2023-10-01 19:08:30 +08:00 -
f46a5528b4
change unnecessary static wait flag decl. to none static
Jack Chen
2023-10-01 00:19:08 +08:00 -
3cc1ee6824
sync Lock2DSurface() Loc3DSurface() with pgrph using wait flag to make sure HLE side can access the right data.
Jack Chen
2023-10-01 00:17:59 +08:00 -
6cb60f1cc5
confirm texture transform matrix setup in UpdateFixedFunctionVertexShaderState(). duplicate transform matrix setup in HLE direct model view mode although it's not used in LLE. clean code a bit.
Jack Chen
2023-09-30 17:23:35 +08:00 -
cb5d590add
add support for bumpmap X_D3DFMT_L6V5U5 and X_D3DFMT_LIN_L6V5U5 to D3DFMT_X8L8R8G8 conversion. and X_D3DFMT_V16U16 and X_D3DFMT_LIN_V16U16 to D3DFMT_X8L8R8G8 conversion.
Jack Chen
2023-09-29 21:57:25 +08:00 -
303e132aaf
fix host stream stride and vertex element offset calculation when there are two or more vertex elements shaing the same vertex element.
Jack Chen
2023-09-30 21:49:45 +08:00 -
bcf65f05f9
temp fix for transform matrix vertex constant update for fixed mode vertex shader. fix wrongly setup view matrix(should use matrix from D3DDevice_SetTransform()), inverse modelview matrix (matrix from NV2A should be transposed.
Jack Chen
2023-09-29 19:54:57 +08:00 -
ef791276ef
add stageMode[stage]!=NV097_SET_SHADER_STAGE_PROGRAM_STAGE1_PROGRAM_NONE check in CxbxUpdateHostTextures() to skip unnecessary texture stage texture setup.
Jack Chen
2023-09-28 16:40:29 +08:00 -
37aa2676f7
sync D3DDevice_Swap() and D3DD3vice_Present() with pgraph by using WaitForPGRAPH flag to pause HLE api and wait prgaph to flush all pushbuffer commands. this fix tripple dolphins being rendered in FiledRender xdk sample.
Jack Chen
2023-09-28 16:30:19 +08:00 -
6603a97c0f
using signed UV format as default foramt for all UV bump map texture formats. convert to ARGB when not in bumpenv stage or colorsign not set.
Jack Chen
2023-09-28 16:14:57 +08:00 -
5c07eb68b2
use offline pixel shader HLSL for the ease of shader code debugging. add CxbxPixelShaderTemplate.hlsl for program pixel shader template
Jack Chen
2023-09-27 22:53:38 +08:00 -
e1c12a6978
remove extra ;
medievil1
2023-09-24 20:29:07 -04:00 -
e81491197b
Small performance improvement (barely measurable, so perhaps not worth it) in the tooling functions I used in the libyuv-derived color conversion functions.
PatrickvL
2022-10-14 18:43:16 +02:00 -
b5082dc7fd
fix jsrf boost dash being dark and kotor character
medievil1
2023-09-24 13:33:04 -04:00 -
e69baa0e85
medievil1
2023-09-24 11:27:19 -04:00 -
71a25a8b20
add UV2ARGB(src) to pixel shader template and use it in DoBumpEnv(), this fixed the bumplens sample. there is still artifects around the center Y axis of the bump effect texture.
Jack Chen
2023-09-24 17:17:50 +08:00 -
75bc0ad44d
add bool is_bumpmap member in struct _FormatInfo to indicate whether the texture format is an bumpmap or not. force all bumpmap format texture to be converted to ARGB. we'll handle the pixel color value signed to unsigned conversion in pixel shader.
Jack Chen
2023-09-24 17:16:29 +08:00 -
49e18692b2
add NAN handling in vertex shader template. this fixs Otogi 1 and 2 character rendering. todo: make the NAN handling optional with detection of whether there is fog used in final combiner or not.
Jack Chen
2023-09-21 16:51:22 +08:00 -
110e755801
add code might be uesful to enable gamma ramp. disabled for now since no effect so far.
Jack Chen
2023-09-21 01:39:46 +08:00 -
57055ae894
fix wrong compare operator in CxbxrImpl_LazySetCombiners()
Jack Chen
2023-09-21 01:39:16 +08:00 -
def10ff466
Margen67
2023-09-20 01:28:42 -07:00 -
99bf557214
revert diabled calling CxbxrImpl_SetVertexShader() and sync with pgraph. we need this to enable rendering in RSC and character rendering in JSRF
Jack Chen
2023-09-18 20:53:15 +08:00 -
87b6b62cca
check if the input texture/surface for D3DDevice_SetTexture() was used as render target before or not. if it was render target, then get the host base texture of that render target and set the host texture to the input xbox texture's host resource with SetHostResouce() for resource cache. this establishes the link between xbox texture and host render target. fix the lumin render in DynamicGamma sample
Jack Chen
2023-09-18 17:53:16 +08:00 -
b3052712c8
forced CxbxrImpl_LazySetCombiners(d) in D3D_draw_state_update() when fixed mode pixel shader was set. this has performance impact but could make the render state more compliant with xbox title's setting, for the ease of graph debug. it has no actuall effect, should be revert after we finish most graph debugging.
Jack Chen
2023-09-18 17:48:20 +08:00 -
9ebb8668d4
add list of HLE apis which synced with pgraph
Jack Chen
2023-09-17 22:53:02 +08:00 -
a71247052c
disable calling CxbxrImpl_SetVertexShader() since we're in full LLE.
Jack Chen
2023-09-17 22:52:43 +08:00 -
b94b74afa2
revised texture stage texture cache, now cache the whole texture/surface in map. this could reserve the common member of texture/surface for better link to host resource.
Jack Chen
2023-09-17 22:31:42 +08:00 -
34a02e0a6b
remove unnecessary code in CxbxrImpl_Lock2DSurface() onle force rehash xbox data when the X_D3DLOCK_READONLY is not set.
Jack Chen
2023-09-17 21:05:49 +08:00 -
81db403bfa
hRet=pHostSourceSurface->GetDesc(&HostSurfaceDesc); set hRet so we don't fall in errored warning in next line
Jack Chen
2023-09-17 20:59:39 +08:00 -
9550dd4116
sync D3DDevice_Reset() D3DDevice_Reset_0__LTCG_edi1() D3DDevice_Reset_0__LTCG_ebx1() with pgraph. fix RallySportChallenge crash in freeing backbuffer when calling D3DDevice_Reset()
Jack Chen
2023-09-17 20:58:24 +08:00 -
d648599938
add forward decl of EmuKickOff(); in HleInNv2a.h
Jack Chen
2023-09-17 20:55:34 +08:00 -
9901866940
sync D3DDevice_SetGammaRamp() and D3DDevice_GetGammaRamp() with pgraph. use D3DSGR_NO_CALIBRATION flag in g_pD3DDevice->SetGammaRamp() DynamicGamma sample now shows the correct GammaRamp graph. still missing the lumin histogram.
Jack Chen
2023-09-17 20:51:25 +08:00 -
19d187e9e0
add HLE sync pgraph in HLE side template
Jack Chen
2023-09-17 20:38:22 +08:00 -
145eb94c9f
modify EMUPATCH(Lock2DSurface), transfer host texture/surface data to xbox data when EMUPATCH(Lock2DSurface) was called. currently only support no data conversion.
Jack Chen
2023-09-16 21:07:14 +08:00 -
705f9034e9
unpatch Lock2DSurface() unsync HLE Lock2DSurface() and Lock3DSurface() trying to fix DynamicGamma sample
Jack Chen
2023-09-15 00:32:25 +08:00 -
da8f2bcd2c
unpatch HLE D3DDevice_SetGammaRamp(), implement CxbxrImpl__SetGammaRamp() and sync with pgraph trying to fix DynamicGamma sample, not working yet.
Jack Chen
2023-09-14 23:16:22 +08:00 -
4baf5b4710
abort when g_xbox_transform_matrix is nullptr in CxbxrImpl_SetTransformFast()
Jack Chen
2023-09-14 21:31:57 +08:00 -
66e10cd8a8
unpatch D3DDevice_SetShaderConstantMode() and D3DDevice_SetShaderConstantMode_0__LTCG_eax1()
Jack Chen
2023-09-14 21:28:46 +08:00 -
a21408c201
substract register bias when calling CxbxrImpl_SetVertexShaderConstant() in CxbxrImpl_SetShaderConstantMode()
Jack Chen
2023-09-14 21:28:04 +08:00 -
d332e0b42c
unpatch D3DDevice_SetStreamSource() and it's variants
Jack Chen
2023-09-14 20:15:04 +08:00 -
8c1ebbe5cc
patch HLE D3DDevice_BlockOnFence() D3DDevice_IsBusy() D3D_BlockOnTime() D3D_BlockOnTime_4() because we don't implement them yet.
Jack Chen
2023-09-14 19:37:36 +08:00 -
2730adb06a
unpatch HLE D3DDevice_LoadVertexShader() D3DDevice_SelectVertexShader() D3DDevice_SelectVertexShader_0__LTCG_eax1_ebx2() D3DDevice_SelectVertexShader_4__LTCG_eax1()
Jack Chen
2023-09-14 18:28:46 +08:00 -
55afb974c3
add default vertex attribute setting in NV097_SET_VERTEX_DATA4F_M method hander. test case Halo 2
Jack Chen
2023-09-14 17:33:32 +08:00 -
a9bc0c54fe
add dirty flag settting for X_D3DDIRTYFLAG_SHADER_STAGE_PROGRAM X_D3DDIRTYFLAG_COMBINERS X_D3DDIRTYFLAG_SPECFOG_COMBINER in pgraph method hander. call CxbxrImpl_LazySetShaderStageProgram(d) whenever one of there 3 flags was set.
Jack Chen
2023-09-14 17:08:09 +08:00 -
b016a0bebe
always update NV2A_PSDef.PSFinalCombinerInputsABCD and NV2A_PSDef.PSFinalCombinerInputsEFG with KelvinPrimitive.SetCombinerSpecularFogCW0 and KelvinPrimitive.SetCombinerSpecularFogCW1 fixs Dolphin series sea buttom rendering.
Jack Chen
2023-09-14 14:45:32 +08:00 -
80efe0a180
return &g_NV2AVertexAttributeFormat in GetXboxVertexAttributeFormat() when is_pgraph_using_NV2A_Kelvin() returns true. remove the usages of set_IVB_DECL_override() and reset_IVB_DECL_override() in pgraph NV097_SET_BEGIN_END method handler draw calls.
Jack Chen
2023-09-14 14:05:06 +08:00