iris: gbm_bo_get_offset() wrongly returns 0 for second plane of NV12/P010 buffers
Continuation from https://gitlab.gnome.org/GNOME/mutter/-/issues/3031:
gbm_bo_get_offset()
does not return the correct offset for the second plane when called with NV12 or P010 bo
s on various(all?) Intel GPUs. From what I understand the wrong value is returned in iris_resource_get_param()
here, called via dri2_query_image()
->dri2_query_image_by_resource_param()
while the correct value would get returned if dri2_query_image()
would take the dri2_query_image_by_resource_handle()
instead.
Note that this probably wasn't found earlier because projects like Weston use the original import data where needed instead of querying the value from the bo
again like Mutter does.
So while Mutter could work around this, it would be great if the issue could be fixed in Mesa directly :)