Mismatch in modifiers between winsys handle and dmabuf fd
Submitted by Link Mauve
Assigned to Intel 3D Bugs Mailing List
Link to original bug (#111589)
Description
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 f83f9d7d (master), Weston master, testing with Dolphin on this PR: https://github.com/dolphin-emu/dolphin/pull/7452
Version: git