Skip to content

iris: try to set the specified tiling when importing a dmabuf

James Xiong requested to merge jamesxio/mesa:issue1 into master

When importing a dmabuf with a specified tiling, the dmabuf user should always try to set the tiling mode because: 1) the exporter can set tiling AFTER exporting/importing. 2) a dmabuf could be exported from a kernel driver other than i915, in this case the dmabuf user and exporter need to set tiling separately.

This is to fix a problem when running vkmark under weston with iris on ICL, it crashed to console with the following assert, this test works fine with i965 as i965 always tries to set the specified tiling mode. weston: ../src/gallium/drivers/iris/iris_resource.c:990: iris_resource_from_handle: Assertion `res->bo->tiling_mode == isl_tiling_to_i915_tiling(res->surf.tiling)' failed. Signed-off-by: James Xiong james.xiong@intel.com

Edited by James Xiong

Merge request reports