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
Hi Link, it would be helpful to have a reproducer for this issue, to have possibility to debug/investigate it
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.
-- 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.