protonscr

Broken sun, shadows and light in Grand Theft Auto V

dxvkclosed bugnvidia proprietary
doitsujin/dxvk#286 · opened 2018-04-15 by ljmf00 · updated 2018-05-09 · 7 comments · github
Lljmf00 2018-04-15 github

image

Seems like some other things is broken too, like shadows and light.

Software information

Grand Theft Auto V

System information

  • GPU: GTX 950
  • Driver: 390.48.0
  • Wine version: wine-staging (wine-gaming-nine) - 3.6-1
  • DXVK version: v0.42

Log files

  • d3d11.log:
info:  D3D11CreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
info:  D3D11CreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
warn:  D3D11Device: No matching border color found for (1,0,0,0)
warn:  D3D11RasterizerState: Depth clamp not properly supported
warn:  D3D11RasterizerState: Depth clamp not properly supported
warn:  D3D11RasterizerState: Depth clamp not properly supported
warn:  D3D11RasterizerState: Depth clamp not properly supported
warn:  D3D11RasterizerState: Depth clamp not properly supported
err:   D3D11: Invalid blend factor: 1205503520
err:   D3D11: Invalid blend factor: 1213985360
err:   D3D11: Invalid blend op: 1213985208
err:   D3D11: Invalid blend factor: 1205503520
err:   D3D11: Invalid blend factor: 1213985360
err:   D3D11: Invalid blend op: 1213985208
err:   D3D11: Invalid blend factor: 1205503520
err:   D3D11: Invalid blend factor: 1213985360
err:   D3D11: Invalid blend op: 1213985208
err:   D3D11: Invalid blend factor: 1205503520
err:   D3D11: Invalid blend factor: 1213985360
err:   D3D11: Invalid blend op: 1213985208
err:   D3D11: Invalid blend factor: 1205503520
err:   D3D11: Invalid blend factor: 1213985360
err:   D3D11: Invalid blend op: 1213985208
err:   D3D11: Invalid blend factor: 1205503520
err:   D3D11: Invalid blend factor: 1213985360
err:   D3D11: Invalid blend op: 1213985208
err:   D3D11: Invalid blend factor: 1205503520
err:   D3D11: Invalid blend factor: 1213985360
err:   D3D11: Invalid blend op: 1213985208
err:   D3D11: Invalid blend factor: 1205503520
err:   D3D11: Invalid blend factor: 1213985360
err:   D3D11: Invalid blend op: 1213985208
err:   D3D11: Invalid blend factor: 1205503520
err:   D3D11: Invalid blend factor: 1213985360
err:   D3D11: Invalid blend op: 1213985208
err:   D3D11: Invalid blend factor: 1205503520
err:   D3D11: Invalid blend factor: 1213985360
err:   D3D11: Invalid blend op: 1213985208
err:   D3D11: Invalid blend factor: 1205503520
err:   D3D11: Invalid blend factor: 1213985360
err:   D3D11: Invalid blend op: 1213985208
err:   D3D11: Invalid blend factor: 1205503520
err:   D3D11: Invalid blend factor: 1213985360
err:   D3D11: Invalid blend op: 1213985208
err:   D3D11: Invalid blend factor: 1205503520
err:   D3D11: Invalid blend factor: 1213985360
err:   D3D11: Invalid blend op: 1213985208
err:   D3D11: Invalid blend factor: 1205503520
err:   D3D11: Invalid blend factor: 1213985360
err:   D3D11: Invalid blend op: 1213985208
err:   D3D11: Invalid blend factor: 1205503520
err:   D3D11: Invalid blend factor: 1213985360
err:   D3D11: Invalid blend op: 1213985208
err:   D3D11: Invalid blend factor: 1205503520
err:   D3D11: Invalid blend factor: 1213985360
err:   D3D11: Invalid blend op: 1213985208
warn:  Dxvk: GpEmulateInstanceFetchRate not handled yet
  • dxgi.log:
info:  Enabled instance layers:
info:  Enabled instance extensions:
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  GeForce GTX 950:
info:    Driver: 390.48.0
info:    Vulkan: 1.0.65
info:  Enabled instance layers:
info:  Enabled instance extensions:
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  GeForce GTX 950:
info:    Driver: 390.48.0
info:    Vulkan: 1.0.65
warn:  Vulkan extension VK_KHR_maintenance2 not supported
info:  Enabled device extensions:
info:    VK_KHR_descriptor_update_template
info:    VK_KHR_sampler_mirror_clamp_to_edge
info:    VK_KHR_maintenance1
info:    VK_KHR_shader_draw_parameters
info:    VK_KHR_swapchain
warn:  DXGI: MakeWindowAssociation: Ignoring flags
info:  DxgiVkPresenter: Recreating swap chain: 
  Format:       VK_FORMAT_B8G8R8A8_UNORM
  Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR
  Buffer size:  1920x1080
info:  Enabled instance layers:
info:  Enabled instance extensions:
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  GeForce GTX 950:
info:    Driver: 390.48.0
info:    Vulkan: 1.0.65
Xxpander69 2018-04-15 github

Its a driver issue. 396.18 with new compiler fixes sun issue, but these drivers perform badly atm.
Shadows work if you enable nvidia PCSS shadows from game options

Ddoitsujin maintainer 2018-04-15 github

Sun issue should be fixed by the current Nvidia beta driver.

I'm aware of the shadow issue but I cannot debug it at the moment as the game does not work with DXVK on RADV. From what I've heard it happens with wined3d as well, but someone reported that it doesn't happen with DXVK on Windows so the issue might be somthing else.

Iinsunaa 2018-04-18 github

Can anybody confirm if the new nvidia driver fixes the indoor lighting issues? All light sources aside from the sun don't appear to illuminate the scene on my end.

For comparison

Edit: Or rather it seems to be directional light sources... But not all of them either, because headlights work... Sorry, this just makes it more confusing.
Reflections, such as mirrors, seem to render the correct lighting, however.
Like this

Lljmf00 2018-04-22 github

Using Nvidia PCSS Shadows settings, seems less bugy

Iinsunaa 2018-05-09 github

For me personally indoor lighting seems to render correctly in GTA V now. So at least my addition to to this issue is fixed now. Sun was fixed by Nvidia.

Ddoitsujin maintainer 2018-05-09 github

Right, from what i've heard it seems to run quite well with the latest driver updates. Please re-open if there are any issues remaining.

Xxpander69 2018-05-09 github

ohh yes, i forgot to mention before, i haven't seen any issues with lighting iindoors with 396.18.07/.08 nor with 396.24 drivers

Nothing extracted yet.