<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#c4">Comment # 4</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:jason@jlekstrand.net" title="Jason Ekstrand <jason@jlekstrand.net>"> <span class="fn">Jason Ekstrand</span></a>
</span></b>
<pre>(In reply to Iago Toral from <a href="show_bug.cgi?id=84566#c3">comment #3</a>)
<span class="quote">> (...)
> As far as I can see, functions in textstore do not receive a mesa_format
> for their src argument, instead they receive the GL format and data type, so
> in order to use the master function here we need to map this combination to
> a mesa_format or mesa_array_format first. It does not look like this
> conversion is available anywhere though, so I think we need to create a
> function that maps (GLformat, GLDataType)-> mesa_format. Something similar
> to what
> _mesa_format_to_type_and_comps does, but the other way around. Jason, does
> this make sense to you?</span >
Yes, that is more or less what I was intending. It shouldn't be hard to write
a function that takes a GL format and type and kicks out a mesa_format or
mesa_array_format. For most things it will be an array format. For other
things like GL_RGBA with GL_UNSIGNED_INT_8_8_8_8_REV or
GL_UNSIGNED_INT_5_5_5_1_REV, you would kick out a mesa_format. There aren't
many of these, so it should be a simple switch statement.</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>