Commit Graph

53 Commits

Author SHA1 Message Date
Dario
e260b2b076 Add submodules. 2024-07-15 19:22:55 -03:00
Darío
56316549da
Use DXIL Linker to reduce compilation time of specializations significantly. (#55)
* Use DXIL Linker to reduce shader optimization time.

* Use string view on render params text.
2024-07-12 00:15:21 -03:00
Mr-Wiseguy
1c33a5ff42 Fixed windows clang warnings 2024-07-06 12:35:23 -04:00
Wiseguy
eb981eb47b
Add egbi command to bypass the segment table for K0 CPU addresses to allow extending rdram (#54)
* Add egbi command to bypass the segment table for K0 CPU addresses to allow extending rdram

* Fix capitalization of RDRAM for consistency
2024-07-05 22:13:53 -03:00
Reonu
5c1562d66a
Workaround Nvidia Linux hang on Wayland (#52) 2024-06-30 17:07:40 -03:00
Anghelo Carvajal
ed7511300c
Fix most warnings (#35)
* Turn on warnings

* -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function

* Fix -Wformat

```
warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
```

* Fix -Wrange-loop-construct warning

```
warning: loop variable 'it' creates a copy from type 'std::pair<const std::basic_string<char>, RT64::PresetLights::Light> const' [-Wrange-loop-construct]
```

* -Wsign-compare

```
comparison of integers of different signs: 'int32_t' (aka 'int') and 'uint32_t' (aka 'unsigned int')
```

* -Wrange-loop-construct

```
warning: loop variable ‘it’ creates a copy from type ‘const std::pair<const std::__cxx11::basic_string<char>, RT64::PresetDrawCall>’
```

* rerun

* Fix -Wparentheses

```
warning: suggest parentheses around arithmetic in operand of ‘^’
```

* -Wsign-compare

```
warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘unsigned int’
```

* Update hlslpp to fix a number of warnings

* Remove `#pragma once` in cpp file

```
warning: #pragma once in main file
```

* -Wswitch

```
warning: enumeration value ‘None’ not handled in switch
```

* -Wformat-security

```
warning: format not a string literal and no format arguments
```

* regen

* Move warnings to clang check

* Fix -Wdelete-non-abstract-non-virtual-dtor

```
warning: destructor called on non-final 'RT64::PresetMaterial' that has virtual functions but non-virtual destructor
```

* remove warnings file

* Fix one unused parameter

* Fix assert wrapping

* Add -Werror flag

* Change type of `dstIndex` to `uint32_t`

* More uses I missed

* Fix new warnings
2024-06-20 18:57:24 -03:00
Darío
7d8954e734
Be extra cautious and only free XRRCrtcInfo if it's not nullptr in case the implementation doesn't handle it. 2024-06-20 18:49:48 -03:00
Anghelo Carvajal
e52aa9eea1
Add missing XRRFreeCrtcInfo and XRRFreeScreenResources functions (#46) 2024-06-20 18:44:17 -03:00
Wiseguy
e106c18965
Show offline list count and current specialized shader count in debugger (#44) 2024-06-02 12:59:19 -04:00
Darío
1c9594d95b
RDNA3 Workaround. (#41) 2024-06-01 13:45:50 -04:00
Dario
e4af592195 Only prefer devices based on VRAM in D3D12. Fixes #18. 2024-05-28 20:01:29 -03:00
Dario
1adcbea31a Merge branch 'main' of https://github.com/rt64/rt64 2024-05-26 11:22:54 -03:00
Dario
036abf55f1 Shader cache dumping fix, removed SM 5.1 from supported models. 2024-05-26 11:22:45 -03:00
David Chavez
48e2adeebf
Fix CI config (#32) 2024-05-25 20:44:27 +02:00
Darío
64b9e166f7
Add dither noise approximation using post-blending draws. (#33) 2024-05-24 19:50:45 -03:00
Darío
9b9237f097
Support for high precision framebuffers. (#31)
* Support for high precision framebuffers.

* Missing header.

* Add detection logic for devices with low VRAM.

* Add HDR handling to shader cache dumping and parsing.

* Internal color format in configuration.
2024-05-24 16:39:34 -03:00
Dario
c84eb6a984 Add F3DEX2 2.04H and S2DEX2 2.04. 2024-05-23 19:24:45 -03:00
Dario
627571e5e6 MSAA Workaround for Decals on a non-NoN game (See #24). 2024-05-21 22:16:20 -03:00
Anghelo Carvajal
051af43bd8
Define the D3D12_RESOURCE_STATE_ALL_SHADER_RESOURCE macro (#26) 2024-05-20 18:51:18 -03:00
Dario
1dd801264d Undef ControlMask. Fixes #22. 2024-05-19 22:54:30 -03:00
Anghelo Carvajal
ca26fb8096
Link against Xrandr on Linux (#20)
* Add `Xrandr` to `target_link_libraries`

* Use the fancy cmake stuff
2024-05-19 12:56:46 -03:00
Dario
a64519b897 Round down the left and top coordinates in fill mode or copy mode. 2024-05-19 00:01:44 -03:00
Dario
ed7acede71 Fix else condition in modulo. 2024-05-18 22:31:48 -03:00
Dario
b2e98b9d28 Fix division by zero possibility during frame matching. 2024-05-18 21:25:51 -03:00
Dario
df5bd0cfd1 Merge branch 'main' of https://github.com/rt64/rt64 2024-05-17 00:02:29 -03:00
Dario
0d0bd88e8d Add S2DEX 1.07 and F3DEX2.NoN.fifo 2.08H. 2024-05-17 00:02:19 -03:00
Isaac Marovitz
2b3f759468
FIx main branch name in CI (#14) 2024-05-15 23:37:35 -03:00
Dario
9d2f11e515 Fix edge case of blender passthrough for second cycle not picking the correct input color. 2024-05-15 00:09:33 -03:00
Dario
6ba9d9dd0b Fix behavior with depth targets not being guaranteed to be at the right size if modified by framebuffer operations. 2024-05-15 00:09:27 -03:00
David Chavez
21cfeae50c
Standalone Graphics Test (#4)
* Add graphics test [WIP]

* Ignore IDEA files

* Explicit cast from size_t to uint64_t

* Build statically when buiding examples

* Remove unused file

* Runs on ARM64 Linux

* Update .gitignore
2024-05-14 21:35:45 -03:00
David Chavez
ecdd609c49
Fix CI Workflow (#5)
* Add gtk-3

* Make dxc executable

* Point to latest dxc-bin

* Remove unnecessary chmod
2024-05-12 00:30:16 -03:00
Dario
d64100a058 Use available counter instead of count. 2024-05-06 22:04:30 -03:00
Dario
ab3c1a1029 Fix race condition between workload and present queue that could occur when multiple workloads are queued without presents in the middle. 2024-05-06 21:48:00 -03:00
Dario
95fa9cbbd8 Add idle thread priority option, use it in shader compilation threads. 2024-05-05 12:49:03 -03:00
Dario
66057e8d51 Fix initialization warnings from Clang. 2024-05-01 09:06:36 -03:00
Dario
5a47ca123b Add missing include and hlsli files. 2024-05-01 08:53:05 -03:00
Mr-Wiseguy
611d26a7c8 Added missing changes in shader include files for dithering 2024-05-01 04:19:46 -04:00
Dario
92cf3845a0 Dither paths, render hook deinit, undef Success. 2024-04-30 21:17:40 -03:00
Dario
abb1b4c01e Improve error detection for creation of both D3D12 and Vulkan. 2024-04-27 23:59:04 -03:00
Dario
e9cdcb0f60 Workaround for refresh rate truncation on Windows. 2024-04-27 20:43:58 -03:00
Dario
92ae002acf Clear handle when releasing the swap chain. 2024-04-25 19:04:18 -03:00
Dario
4c2ba6406b Rework swap chain behavior in Vulkan. 2024-04-25 17:54:40 -03:00
Darío
404f38c806
Linux changes (#3)
* WIP changes for linux

* Missing include.

* Thread names, file dialog, refresh rate detection changes.

---------

Co-authored-by: Mr-Wiseguy <mrwiseguyromhacking@gmail.com>
2024-04-22 20:11:59 -03:00
Dario
04a7aa2187 Merge branch 'main' of https://github.com/rt64/rt64 2024-04-18 23:31:22 -03:00
Dario
d3d5590ed3 Fix barrier for VI renderer. 2024-04-18 23:31:11 -03:00
Darío
884656c580
Update README.md 2024-04-17 11:20:06 -03:00
Darío
bcbdeeb239
Update README.md 2024-04-16 21:24:08 -03:00
Darío
2b69fafc5f
Update README.md 2024-04-16 21:20:30 -03:00
Darío
56528cf421
Update README.md 2024-04-16 20:46:37 -03:00
Darío
a3bdffb580
Update README.md 2024-04-16 20:46:00 -03:00