<div dir="ltr"><div dir="ltr">On Wed, Apr 10, 2019 at 12:40 PM Simon Ser <<a href="mailto:contact@emersion.fr" target="_blank">contact@emersion.fr</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wednesday, April 10, 2019 9:25 PM, Chia-I Wu <<a href="mailto:olvaffe@gmail.com" target="_blank">olvaffe@gmail.com</a>> wrote:<br>
> Both implementations support formats that have no explicit modifiers.<br>
> But when it comes to buffer creation, modifier_hi/lo is required<br>
> again.  It is unclear how to create a buffer for such formats.<br>
><br>
> This patch tries to clarify these issues, leaning toward mutter's<br>
> behavior.<br>
<br>
Is there a reason to standardize Mutter's behavior instead of Weston's<br>
and wlroots'? (Don't know about others)<br></blockquote><div>Frankly, there was no clear, strong argument to prefer one over the other to me.  Things I can think of are</div><div><br></div><div> - it is more intuitive to have format events for formats and modifier events for modifiers</div><div> - having both events makes the protocol more similar to EGL's equ<span style="color:rgb(0,0,0);white-space:pre-wrap">eglQueryDmaBufFormatsEXT / </span><span style="color:rgb(0,0,0);white-space:pre-wrap">eglQueryDmaBufModifiersEXT</span></div><div><br></div><div>I should bring this up that standardizing on Mutter's behavior means Weston and others require fixes, to send format events at least.  But standardizing on Weston's behavior means Mutter still works to some degree: it only loses formats that have no explicit modifiers because format events will be ignored.  But that degree of compatibility is not enough if the goal is to replace wl_drm ultimately.</div><div><br></div></div></div>