Created attachment 141074 [details] vulkaninfo Broken rendering in Unity vulkan demos. See screenshots. linux-4.14.62, mesa-18.2.0-rc2, llvm-6.0.1 GPU: 01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Tonga PRO [Radeon R9 285/380] [1002:6939] (rev f1) (prog-if 00 [VGA controller])
Created attachment 141075 [details] CorridorLightingExample.png
Created attachment 141076 [details] VikingVillage.png
This is a regression in mesa-18.2. Demos rendered just fine on the same system with mesa-18.1.
Also both demos causes VM faults: [39619.603973] amdgpu 0000:01:00.0: GPU fault detected: 146 0x0e68240c [39619.610244] amdgpu 0000:01:00.0: VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x001197CD [39619.617749] amdgpu 0000:01:00.0: VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x0202400C [39619.625251] amdgpu 0000:01:00.0: VM fault (0x0c, vmid 1) at page 1152973, read from 'DB2' (0x44423200) (36) [39619.635022] amdgpu 0000:01:00.0: GPU fault detected: 146 0x0e28240c [39619.641280] amdgpu 0000:01:00.0: VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x001197C7 [39619.648762] amdgpu 0000:01:00.0: VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x020D400C [39619.656242] amdgpu 0000:01:00.0: VM fault (0x0c, vmid 1) at page 1152967, read from 'DB7' (0x44423700) (212) [39633.831895] amdgpu 0000:01:00.0: GPU fault detected: 146 0x0828540c [39633.838168] amdgpu 0000:01:00.0: VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x0011D105 [39633.845644] amdgpu 0000:01:00.0: VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x0405400C [39633.853116] amdgpu 0000:01:00.0: VM fault (0x0c, vmid 2) at page 1167621, read from 'DB1' (0x44423100) (84) [39633.862864] amdgpu 0000:01:00.0: GPU fault detected: 146 0x0318d40c [39633.869123] amdgpu 0000:01:00.0: VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x0011D30B [39633.876603] amdgpu 0000:01:00.0: VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x040A400C [39633.884084] amdgpu 0000:01:00.0: VM fault (0x0c, vmid 2) at page 1168139, read from 'DB4' (0x44423400) (164)
Can you try to record a renderdoc trace that reproduces the issue please?
Not sure if I did it right: https://www.dropbox.com/s/glc70mfzirow9c5/CorridorLightingExample.rdc.xz?dl=0
Thanks for the trace, I can reproduce the problem. You might want to try two things: 1) RADV_DEBUG=nodcc fixes the rendering issue 2) RADV_DEBUG=nohiz seems to fix the VM faults I'm working on.
(In reply to Samuel Pitoiset from comment #7) > 1) RADV_DEBUG=nodcc fixes the rendering issue Yes. Also your patch [1] fixes it. > 2) RADV_DEBUG=nohiz seems to fix the VM faults I confirm that. [1] https://patchwork.freedesktop.org/patch/244950/
The rendering issue is fixed with https://cgit.freedesktop.org/mesa/mesa/commit/?id=0aacb5eab6120aa1410966d23101e16eea3fbcd7
This patch should fix the VM faults https://patchwork.freedesktop.org/series/53914/
I actually found the root cause of the VM faults. Should be fixed with https://cgit.freedesktop.org/mesa/mesa/commit/?id=3a2e93147f7fa4a6fd17313353113a33291c5ce0
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.