<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Unify the format conversion code"
href="https://bugs.freedesktop.org/show_bug.cgi?id=84566#c36">Comment # 36</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Unify the format conversion code"
href="https://bugs.freedesktop.org/show_bug.cgi?id=84566">bug 84566</a>
from <span class="vcard"><a class="email" href="mailto:siglesias@igalia.com" title="Samuel Iglesias <siglesias@igalia.com>"> <span class="fn">Samuel Iglesias</span></a>
</span></b>
<pre>(In reply to Jason Ekstrand from <a href="show_bug.cgi?id=84566#c32">comment #32</a>)
<span class="quote">> (In reply to Iago Toral from <a href="show_bug.cgi?id=84566#c31">comment #31</a>)
> > Jason, there is an had-hoc path to deal with MESA_FORMAT_YCBCR* in
> > texstore.c. Seems that this path only allows conversion between these
> > formats, which is mostly a memcpy with some byte swapping when necessary.
> > Should we also keep this one as a special case to be handled outside the
> > master function?
>
> Yes, there's code for that in texstore.c and in format_unpack.c. We should
> make that consisten either by movint the code from texstore.c to
> format_pack.c or move it from format_unpack.c to readpixels. I'm ok with
> moving everything into the packing/unpacking functions and letting the
> conversion function handle it. It is a MESA_FORMAT after all.</span >
Looking at _mesa_texstore_ycbcr() inside texstore.c, it is just a memcpy
without any RGB to YCBCR conversion.
Do we need to implement RGB to YCBCR conversion in format_pack? Or we just need
to use a special case for that format in _mesa_format_convert (so that it uses
the function that memcopies instead of pack/unpack)? The second option would be
more efficient.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>