Skip to content

egl/wayland: intersect modifiers from display and render GPUs

Michael Skorokhodov requested to merge GL/mesa:fix/dri_prime_image_intel into main

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:

  1. Build VK-GL-CTS with the DEQP_TARGET=wayland flag
  2. Apply this patch or you will get iris_reallocate_resource_inplace: Assertion old_res->mod_info == NULL failed.
  3. 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
  4. ../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

Merge request reports

Loading