Closed clapbr closed 5 years ago
Ohh, this is very bad. I was informed on reddit, that i use undefined behavior, no maybe vkBasalt does not work on all drivers other than nvidia currently.
Can confirm that. I have the exact same errors with RADV and AMDVLK with an RX 580.
System: Host: blackhole Kernel: 5.4.0-1.rc3-tkg-cfs x86_64 bits: 64 Desktop: KDE Plasma 5.16.5 Distro: Manjaro Linux
Machine: Type: Desktop System: Dell product: Precision WorkStation T5500 v: N/A serial: <root required>
Mobo: Dell model: 0D883F v: A06 serial: <root required> BIOS: Dell v: A17 date: 03/11/2018
CPU: 2x Quad Core: Intel Xeon X5687 type: MT MCP SMP speed: 1596 MHz min/max: 1596/3592 MHz
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] driver: amdgpu
v: kernel
Display: x11 server: X.Org 1.20.5 driver: amdgpu resolution: 1920x1080~60Hz
OpenGL: renderer: Radeon RX 580 Series (POLARIS10 DRM 3.35.0 5.4.0-1.rc3-tkg-cfs LLVM 10.0.0)
v: 4.5 Mesa 19.3.0-devel (git-4c9b9ed5f9)
Network: Device-1: Broadcom and subsidiaries NetXtreme BCM5761 Gigabit Ethernet PCIe driver: tg3
Drives: Local Storage: total: 2.43 TiB used: 1.86 TiB (76.3%)
Info: Processes: 437 Uptime: 3h 43m Memory: 47.05 GiB used: 2.79 GiB (5.9%) Shell: bash inxi: 3.0.36
@fluffykittyrevenge @clapbr, can someone of you test this build and see if this fixes it? vkBasalt.tar.gz
@fluffykittyrevenge @clapbr, can someone of you test this build and see if this fixes it? vkBasalt.tar.gz
Got the same issue and tested your .tar.gz While the application does not segfault anymore, the image immediately freezes. Here's the output:
i am doing something
found graphic capable queue
1
queue 0x56266709ae90
queue 0x56266709ae90
queue 0x56266709ae90
format 44
format 44
device 0x562667089d00
format 44
swapchain 0x562667170da0
Interrupted create swapchain
Interrupted get swapchain images 0
Interrupted get swapchain images 3
queue 0x56266709ae90
swapchain 0x562667170da0
format 44
device 0x562667089d00
before creating descriptor Pool
set count 3
after creating descriptor Pool
before allocating descriptor Sets 1
before writing descriptor Sets
before writing descriptor Sets
before writing descriptor Sets
0x562666f900b0
0
0x20
0x5626671c0a10
0x5626671c7520
0x5626671cf040
after allocateCommandBuffer
0x5626671c0a10
0x5626671c7520
0x5626671cf040
before begin commandbuffer 0x5626671c0a10
before command buffer step 1
before command buffer step 2
before command buffer step 3
before command buffer step 4
before ending command buffer
before begin commandbuffer 0x5626671c7520
before command buffer step 1
before command buffer step 2
before command buffer step 3
before command buffer step 4
before ending command buffer
before begin commandbuffer 0x5626671cf040
before command buffer step 1
before command buffer step 2
before command buffer step 3
before command buffer step 4
before ending command buffer
0writen commandbuffer0x5626671c0a10
1writen commandbuffer0x5626671c7520
2writen commandbuffer0x5626671cf040
This is good and bad. I fixed an obvious error. The bad part is, I have never seen such an issue. Does the window stay open?
@alex9k1
Tested that with both RADV and AMDVLK with the same results as you, doesn't crash but freezes.
This is good and bad. I fixed an obvious error. The bad part is, I have never seen such an issue. Does the window stay open?
It does with what @alex9k1 posted, but not with yours.
EDIT: Tried from the latest commit and now vkcube is freezing upon launch
This is good and bad. I fixed an obvious error. The bad part is, I have never seen such an issue. Does the window stay open?
Yes
This build will not solve the problem, but could give me some info, so please try it: vkBasalt.tar.gz
This build will not solve the problem, but could give me some info, so please try it: vkBasalt.tar.gz
Segfaults but has more output
This build will not solve the problem, but could give me some info, so please try it: vkBasalt.tar.gz
i am doing something
found graphic capable queue
1
queue 0x5578e7a60390
queue 0x5578e7a60390
queue 0x5578e7a60390
format 44
format 44
device 0x5578e7a4f200
format 44
swapchain 0x5578e7b370e0
Interrupted create swapchain
Interrupted get swapchain images 0
Interrupted get swapchain images 3
queue 0x5578e7a60390
swapchain 0x5578e7b370e0
format 44
device 0x5578e7a4f200
before creating descriptor Pool
set count 3
after creating descriptor Pool
before allocating descriptor Sets 1
before writing descriptor Sets
before writing descriptor Sets
before writing descriptor Sets
0x5578e76dfbe0
0
0x20
0x5578e7b86680
0x5578e7b8d190
0x5578e7b94cb0
after allocateCommandBuffer
0x5578e7b86680
0x5578e7b8d190
0x5578e7b94cb0
before begin commandbuffer 0x5578e7b86680
before command buffer step 1
before command buffer step 2
before command buffer step 3
before command buffer step 4
before ending command buffer
before begin commandbuffer 0x5578e7b8d190
before command buffer step 1
before command buffer step 2
before command buffer step 3
before command buffer step 4
before ending command buffer
before begin commandbuffer 0x5578e7b94cb0
before command buffer step 1
before command buffer step 2
before command buffer step 3
before command buffer step 4
before ending command buffer
0writen commandbuffer0x5578e7b86680
1writen commandbuffer0x5578e7b8d190
2writen commandbuffer0x5578e7b94cb0
Interrupted QueuePresentKHR with queue: 0x5578e7a60390
queue in device info: 0x5578e7a60390
zsh: segmentation fault (core dumped) ENABLE_VKBASALT=1 vkcube
can someone test if this programm cas build.tar.gz does create a out.png file?
It's an empty folder
castest.tar.gz man I am stupid
Yes, it creates out.png.
This build will not solve the problem, but could give me some info, so please try it: vkBasalt.tar.gz
I tested one game, and it works fine for me. I use AMD HD 8750M (Mesa 19.2.99)
@ahmed-elsayed2017 really? does it look different?
@fluffykittyrevenge thanks, this mean the undefined behavior works on amd and there is a different problem. At this point I have no clear Idea, what to... Maybe I should by a cheap Amd gpu and test my self.
@ahmed-elsayed2017 really? does it look different?
Yeah. I noticed the difference from the intro video. The colors are so vivide. It is like using ReShade, and there is more terminal outputs than the usual.
@fluffykittyrevenge @clapbr, can someone of you test this build and see if this fixes it? https://github.com/DadSchoorse/vkBasalt/files/3748220/vkBasalt.tar.gz
@ahmed-elsayed2017 does this build work too?
@fluffykittyrevenge @clapbr, can someone of you test this build and see if this fixes it? https://github.com/DadSchoorse/vkBasalt/files/3748220/vkBasalt.tar.gz
@ahmed-elsayed2017 does this build work too?
Yes, it does. I have just tried it now.
@ahmed-elsayed2017 then use that build, it should have better performance
@fluffykittyrevenge @clapbr, can someone of you test this build and see if this fixes it? https://github.com/DadSchoorse/vkBasalt/files/3748220/vkBasalt.tar.gz
@ahmed-elsayed2017 does this build work too?
still segvaults
vkcube: amdvlk.txt radv.txt
hitman 2: hitman2-amdvlk.txt hitman2-radv.txt
Figured I'd add some variety to the mix :cat2:
@ahmed-elsayed2017 then use that build, it should have better performance
Ok, Thanks. Could you please add .deb releases in the future?
Man I am a bit lost, I am going to sleep now and see If come up if an idea next week.
No problems. I'll keep an eye on my notifications in case you want more testing.
Could everybody try 0.0.4 and see if this fixes it?
Could everybody try 0.0.4 and see if this fixes it?
vkcube is working now. I'll test other applications later.
That fixes it for me with vkcube and games, though for some reason the effect isn't applied on vkcube with AMDVLK. I can tell that it is working in the games since I tested everything in this post with RADV & AMDVLK with vkBasalt enabled and disabled.
With Hitman 2 (DXVK), it works great. Notice how the trees and bushes look sharper and lose a bit of blur. No vkBasalt:
With vkBasalt:
With Mad Max (native), it works, notice the details of the car and how Max isn't blurry, but it makes it so dark that the gamma needs to be turned all the way up (it could actually go another 10-20% more than the game allows). No vkBasalt, Gamma 50:
With vkBasalt, Gamma 100:
RADV/AMDVLK makes no difference in regards to the in-game darkness with MadMax.
Just wanted to add: Thanks.
Ok, I will close this for now.
specs
Tried with latest RADV:
With amdgpu-pro: