egl/wayland: intersect modifiers from display and render GPUs
In this case, there are different tiling settings in the linear_image and the dri_image that led to an error on the hardware blitter (Intel only).
Fixes: 224ff116 Related-to: #10993
Render GPU: RocketLake-S GT1 [UHD Graphics 750] (rev 04) Display GPU: DG2 [Arc A770] (rev 08)
Steps to repro:
- Build VK-GL-CTS with the
DEQP_TARGET=wayland
flag - Apply this patch or you will get
iris_reallocate_resource_inplace: Assertion old_res->mod_info == NULL failed.
- Run
dEQP-GL45-ES31.functional.texture.border_clamp.per_axis_wrap_mode.texture_2d.int_color.nearest.s_mirrored_repeat_t_clamp_to_border_npot
with DRI_PRIME=1 ../src/intel/blorp/blorp_genX_exec_brw.h:1874: xy_bcb_tiling: Assertion !"" "Invalid tiling for XY_BLOCK_COPY_BLT" failed.
About step 2: It's a different bug. I'll fix it as soon as possible, and then the main issue, #10993.
Edited by Michael Skorokhodov