<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>Oh, facepalm. I didn’t even think to look at the numeric value. Sorry for the confusion.
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Simon Ser <contact@emersion.fr><br>
<b>Sent:</b> Saturday, August 6, 2022 3:10:53 PM<br>
<b>To:</b> Hoosier, Matt<br>
<b>Cc:</b> Pekka Paalanen; dri-devel@lists.freedesktop.org; wayland-devel@lists.freedesktop.org<br>
<b>Subject:</b> Re: How to test whether a buffer is in linear format</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">CAUTION - EXTERNAL EMAIL: Do not click any links or open any attachments unless you trust the sender and know the content is safe.<br>
<br>
<br>
On Saturday, August 6th, 2022 at 21:56, Hoosier, Matt <Matt.Hoosier@garmin.com> wrote:<br>
<br>
> Any idea what’s up with some compositors adding code to infer<br>
> DRM_FORMAT_MOD_LINEAR semantics when the buffer’s modifiers are set<br>
> to 0?<br>
<br>
What does that mean? A buffer only has a single modifier, and LINEAR == 0.<br>
<br>
> Wlroots, for example, added this as a “safety net for drm drivers not announcing modifiers”.<br>
><br>
> <a href="https://urldefense.com/v3/__https://source.puri.sm/Librem5/wlroots/-/merge_requests/63__;!!EJc4YC3iFmQ!RegnOCvgB8sugB2skP7I220urpYpvjg8fLOw4lDYr0BxH49vOvVoFTbpykg8Nvb5Wxn33tnxgLNRAW2eePiR$">
https://urldefense.com/v3/__https://source.puri.sm/Librem5/wlroots/-/merge_requests/63__;!!EJc4YC3iFmQ!RegnOCvgB8sugB2skP7I220urpYpvjg8fLOw4lDYr0BxH49vOvVoFTbpykg8Nvb5Wxn33tnxgLNRAW2eePiR$</a><br>
<br>
This is not upstream wlroots. This change doesn't make sense to me at<br>
all. Either a driver supports modifiers and advertises support for it,<br>
either it doesn't and gbm_surface_create_with_modifiers fails. At any<br>
rate, forcing LINEAR in this code-path doesn't make sense.<br>
</div>
</span></font><br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
CONFIDENTIALITY NOTICE: This email and any attachments are for the sole use of the intended recipient(s) and contain information that may be Garmin confidential and/or Garmin legally privileged. If you have received this email in error, please notify the sender
 by reply email and delete the message. Any disclosure, copying, distribution or use of this communication (including attachments) by someone other than the intended recipient is prohibited. Thank you.<br>
</font>
</body>
</html>