Bug 111589

Summary: Mismatch in modifiers between winsys handle and dmabuf fd
Product: Mesa Reporter: Link Mauve <bugs>
Component: Drivers/Gallium/IrisAssignee: Intel 3D Bugs Mailing List <intel-3d-bugs>
Status: RESOLVED MOVED QA Contact: Intel 3D Bugs Mailing List <intel-3d-bugs>
Severity: critical    
Priority: not set    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Link Mauve 2019-09-08 10:13:12 UTC
In iris_resource_from_handle(), when a Wayland client created an I915_FORMAT_MOD_Y_TILED_CCS buffer, whandle->modifier and res->bo->tiling_mode end up desynchronised, the first one being Y-tiled, the second linear, leading to the assert on line 967 to crash Weston.

I haven’t been able to figure out where this bo gets created without the proper tiling mode though, but the resource doesn’t have the CCS aux bo either.

A I915_FORMAT_MOD_Y_TILED buffer works, as does a linear one.

Running latest ArchLinux, Mesa f83f9d7daa (master), Weston master, testing with Dolphin on this PR: https://github.com/dolphin-emu/dolphin/pull/7452
Comment 1 Denis 2019-09-09 08:00:06 UTC
Hi Link, it would be helpful to have a reproducer for this issue, to have possibility to debug/investigate it
Comment 2 Link Mauve 2019-09-12 14:11:12 UTC
Hi Denis, my testcase is:
- Have Iris master built without NDEBUG, installed, and used by default on UHD 620.
- Start `weston` from TTY.
- Start any Dolphin game, or Firefox nightly with WebRender, or PyTouhou, or any other Wayland client using Y_TILED_CCS.
- See Weston crash there.
Comment 3 GitLab Migration User 2019-09-25 18:47:48 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1363.

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.