Multiplanar GBM buffers can point to different objects from each plane. Use the _for_plane API when possible to retrieve the correct prime FD for each plane.
7d5ad2d37 xwayland: properly get FDs from multiplanar GBM BOs
hw/xwayland/xwayland-glamor-gbm.c | 66 +++++++++++++++++++++++++++++++++------
1 file changed, 57 insertions(+), 9 deletions(-)