<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 06/06/18 18:27, Jason Ekstrand
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAOFGe94Tva9guqhUuAsFG3a8QyYoC1S62GQy7Z-MQASfRLtZRg@mail.gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Wed, Jun 6, 2018 at 7:57 AM,
Lionel Landwerlin <span dir="ltr"><<a
href="mailto:lionel.g.landwerlin@intel.com"
target="_blank" moz-do-not-send="true">lionel.g.landwerlin@intel.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Found by
Eero.<br>
<br>
v2: Add G16R16 formats (Lionel)<br>
<span class=""><br>
Signed-off-by: Lionel Landwerlin <<a
href="mailto:lionel.g.landwerlin@intel.com"
moz-do-not-send="true">lionel.g.landwerlin@intel.com</a><wbr>><br>
Bugzilla: <a
href="https://bugs.freedesktop.org/show_bug.cgi?id=106642"
rel="noreferrer" target="_blank"
moz-do-not-send="true">https://bugs.freedesktop.org/<wbr>show_bug.cgi?id=106642</a><br>
---<br>
</span> src/mesa/drivers/dri/common/<wbr>dri_util.c | 16
++++++++++++++++<br>
1 file changed, 16 insertions(+)<br>
<br>
diff --git a/src/mesa/drivers/dri/common/<wbr>dri_util.c
b/src/mesa/drivers/dri/common/<wbr>dri_util.c<br>
index a591dfcd7d2..bc861d066d1 100644<br>
--- a/src/mesa/drivers/dri/common/<wbr>dri_util.c<br>
+++ b/src/mesa/drivers/dri/common/<wbr>dri_util.c<br>
@@ -936,6 +936,22 @@ static const struct {<br>
<span class=""> .image_format =
__DRI_IMAGE_FORMAT_SARGB8,<br>
.mesa_format = MESA_FORMAT_B8G8R8A8_SRGB,<br>
},<br>
+ {<br>
+ .image_format = __DRI_IMAGE_FORMAT_R16,<br>
+ .mesa_format = MESA_FORMAT_R_UNORM16,<br>
+ },<br>
+ {<br>
+ .image_format = __DRI_IMAGE_FORMAT_R16,<br>
+ .mesa_format = MESA_FORMAT_L_UNORM16,<br>
+ },<br>
</span>+ {<br>
+ .image_format = __DRI_IMAGE_FORMAT_GR1616,<br>
+ .mesa_format = MESA_FORMAT_G16R16_UNORM,<br>
</blockquote>
<div><br>
</div>
<div>I think the MESA_FORMAT here is backwards. Hooray for
endianness...<br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
Dammit! Thanks!<br>
<br>
<blockquote type="cite"
cite="mid:CAOFGe94Tva9guqhUuAsFG3a8QyYoC1S62GQy7Z-MQASfRLtZRg@mail.gmail.com">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
+ },<br>
+ {<br>
+ .image_format = __DRI_IMAGE_FORMAT_GR1616,<br>
+ .mesa_format = MESA_FORMAT_L16A16_UNORM,<br>
<span class="im HOEnZb">+ },<br>
};<br>
<br>
uint32_t<br>
-- <br>
2.17.1<br>
<br>
</span>
<div class="HOEnZb">
<div class="h5">______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org"
moz-do-not-send="true">mesa-dev@lists.freedesktop.org</a><br>
<a
href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev"
rel="noreferrer" target="_blank"
moz-do-not-send="true">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
mesa-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>