[i.MX][Etnaviv] drm platform: drmModeAddFB2WithModifiers returns ENOENT
I'm experimenting with the experimental drm platform. It seems that the framebuffer object passed to on_export_dmabuf_resource() cannot be found.
What's the current state of this platform? Is it expected to work in some limited capacity on some system or is it entirely work in progress?
Can you describe your hardware and software stack?
So far this was working on Intel integrated GPUs. Pull #145 adds support for wl_resource imports and the drmModeAddFB2 fallback, which got it to work on a RockPi using the open-source stack (i.e. Mesa with Panfrost).
I have i.MX6Q running etnaviv (mesa 19.0) on kernel 4.19. I will test the PR and see if it works.
I tested it on my side, and it still doesn't seem to work:
08:25:50.272168 ioctl(10, DRM_IOCTL_MODE_ADDFB2, 0xbeeca458) = -1 ENOENT (No such file or directory)
08:25:50.272537 ioctl(10, DRM_IOCTL_MODE_ADDFB2, 0xbeeca430) = -1 ENOENT (No such file or directory)
I'm having this issue too. Linux 5.4 & mesa 20.0.7 I can investigate, but will need some directions/input
I traced it down to: DRM_DEBUG_KMS("Failed to lookup GEM object\n"); in drivers/gpu/drm/drm_gem_framebuffer_helper.c
Same issue on IMX6DL
# cog --version
0.10.0 (WPE WebKit 2.32.1)
# uname -a
Linux gtv 5.4.77 #1 SMP Tue Jun 22 12:41:11 CEST 2021 armv7l GNU/Linux
# glmark2-es2-wayland
=======================================================
glmark2 2020.04
=======================================================
OpenGL Information
GL_VENDOR: etnaviv
GL_RENDERER: Vivante GC880 rev 5106
GL_VERSION: OpenGL ES 2.0 Mesa 20.3.5
Can you try with this patch for Mesa/Etnaviv ?
There is here a report of someone that could make cog start with that (with i.MX and Etnaviv), but the screen is still not showing properly the webview.
Issue seems still apparent with mesa 23.2.1 / linux 6.1.38 Tried above suggestions/patches but no progress