<div dir="ltr">Hi,<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 26, 2018 at 7:54 PM, Mario Kleiner <span dir="ltr"><<a href="mailto:mario.kleiner.de@gmail.com" target="_blank">mario.kleiner.de@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[...]<br>
I haven't had time to retest with the latest patch on master of Adam<br>
"modesetting: Fix up some XXX from removing GLAMOR_HAS_DRM_*"<br>
yet, so maybe that makes a positive difference? My testing was with<br>
master as of "modesetting: Fix page flipping under DRI 3.2." plus the<br>
argb8888 -> xrgb8888 snippet to make modesetting work at all on<br>
Ivybridge/Ironlake.<br></blockquote><div><br></div><div>commit  ba0c75177 (ajax latest commit) makes no difference for the incompatible format issue, it's more about clean-up and being able to work if atomic modesetting is not available, which is not the case here.<br><br></div><div>The funny thing is, I noticed it works (as in “a mode is set”) when using drmModeAddFB() (as“before”) instead of drmModeAddFB2WithModifiers() in drmmode_bo_import() - Thus the perceived regression, it worked before.<br><br>drmModeAddFB() and drmModeAddFB2WithModifiers()  translate respectively as drm_mode_addfb() and drm_mode_addfb2() in the kernel (drivers/gpu/drm/drm_framebuffer.c), and drm_mode_addfb() will eventually call drm_mode_addfb2() after determining itself the format to use with drm_mode_legacy_fb_format() [1].<br><br>drm_mode_legacy_fb_format() is defined in drivers/gpu/drm/drm_fourcc.c [2] and will use DRM_FORMAT_XRGB8888 for depth 24 and DRM_FORMAT_XRGB2101010 for depth 30, and DRM_FORMAT_ARGB8888 for anything else.<br><br>Cheers,<br>Olivier<br><br>[1] <a href="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/drm_framebuffer.c#n95">https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/drm_framebuffer.c#n95</a><br>[2] <a href="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/drm_fourcc.c#n38">https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/drm_fourcc.c#n38</a><br><br></div></div><br></div></div>