Bug 107563 - [RADV] Broken rendering in Unity demos
Summary: [RADV] Broken rendering in Unity demos
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Vulkan/radeon (show other bugs)
Version: 18.2
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-14 05:33 UTC by Alexander Tsoy
Modified: 2019-03-14 16:22 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
vulkaninfo (97.34 KB, text/plain)
2018-08-14 05:33 UTC, Alexander Tsoy
Details
CorridorLightingExample.png (831.01 KB, image/png)
2018-08-14 05:34 UTC, Alexander Tsoy
Details
VikingVillage.png (17.32 KB, image/png)
2018-08-14 05:35 UTC, Alexander Tsoy
Details

Description Alexander Tsoy 2018-08-14 05:33:30 UTC
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])
Comment 1 Alexander Tsoy 2018-08-14 05:34:46 UTC
Created attachment 141075 [details]
CorridorLightingExample.png
Comment 2 Alexander Tsoy 2018-08-14 05:35:15 UTC
Created attachment 141076 [details]
VikingVillage.png
Comment 3 Alexander Tsoy 2018-08-14 06:02:42 UTC
This is a regression in mesa-18.2. Demos rendered just fine on the same system with mesa-18.1.
Comment 4 Alexander Tsoy 2018-08-14 06:59:34 UTC
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)
Comment 5 Samuel Pitoiset 2018-08-15 13:18:24 UTC
Can you try to record a renderdoc trace that reproduces the issue please?
Comment 6 Alexander Tsoy 2018-08-15 19:29:59 UTC
Not sure if I did it right:
https://www.dropbox.com/s/glc70mfzirow9c5/CorridorLightingExample.rdc.xz?dl=0
Comment 7 Samuel Pitoiset 2018-08-16 12:19:27 UTC
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.
Comment 8 Alexander Tsoy 2018-08-16 19:47:06 UTC
(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/
Comment 9 Samuel Pitoiset 2018-08-20 09:54:08 UTC
The rendering issue is fixed with https://cgit.freedesktop.org/mesa/mesa/commit/?id=0aacb5eab6120aa1410966d23101e16eea3fbcd7
Comment 10 Samuel Pitoiset 2018-12-11 21:03:39 UTC
This patch should fix the VM faults https://patchwork.freedesktop.org/series/53914/
Comment 11 Samuel Pitoiset 2019-03-14 16:22:19 UTC
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.