felixdoerre / primus_vk

Vulkan GPU-offloading layer
BSD 2-Clause "Simplified" License
229 stars 17 forks source link

Displayed image is too dark #36

Open ghost opened 5 years ago

ghost commented 5 years ago

Hello,

Not sure what the problem is here so maybe you can shed some light(pun intended) on this It seems that everything i run using the pvkrun and Vulkan looks really dark If i run the game with primusrun and opengl, it looks fine Not really sure is it because of pvkrun, vulkan or even my GPU This is Rise of the Tomb Raider with gamma on max Screenshot_20190504_103506 Screenshot_20190504_103520

As you can see, it's really dark, I can't see a thing most of the time Other games look like this too but i don't have any screenshots at the moment, but Mad Max with vulkan is at least 50% darker than the OpenGL and i have to crank up gamma to the max to see

You did an awesome job with this btw.

My system:

OS: Debian Buster(testing) Kernel: 4.19.0-4-amd64 Nvidia Driver: 410.104 Nvidia GPU: GTX 765m

Thank you very much! Kind regards,

felixdoerre commented 5 years ago

Have you tried the intel-vulkan-drivers? Is the image dark there as well?

edoantonioco commented 5 years ago

Hello. I just wanted to say that I also have this issue with Mad Max. It looks way darker in vulkan mode, so its sadly not an option to be played that way.

here is a couple of screenshots, dark one is in vulkan mode other one in opengl https://imgur.com/a/KZwKr2e

In intel card (vulkan mode) the game crashes in my case.

@Tkopic001 you could try in nvidia-xrun to see if you can repro the issue there. Unfortunately since I reinstalled my OS I cant use that tool anymore so I cant test it there.

edoantonioco commented 5 years ago

Now that nvidia finally supports optimus, I can see the bug in Mad Max vulkan mode no longer happens. So its probably related to this library somehow (which is still useful for people with older cards)

felixdoerre commented 5 years ago

That's interesting. The best guess I have why the image would get dark, is that something is wrong with color space conversion (UNORM <-> SRGB).