[Mesa-dev] [Bug 89068] glTexImage2D regression by texstore_rgba switch to _mesa_format_convert

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Feb 12 02:08:37 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=89068

Iago Toral <itoral at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at jlekstrand.net

--- Comment #7 from Iago Toral <itoral at igalia.com> ---
After testing with a binary provided by the reporter and comparing with the old
code it looks like the problem comes from the fact that they are using
transferOps for color scaling (which is effectively scaling 50% alpha values to
100%)... and we are not dealing with that in texstore_rgba.

If we need to apply transferOps (we can call _mesa_texstore_needs_transfer_ops
to check this) then we have to convert from the src format to RGBA_FLOAT, so we
can call calling mesa_apply_rgba_transfer_ops(), then convert the result from
RGBA_FLOAT to the dst format...

I think we should do this after we have handled swaping scenarios and before
the current call to _mesa_format_convert.

Jason, if you agree with this I can write a patch.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150212/9b6187c7/attachment.html>


More information about the mesa-dev mailing list