]> code.ossystems Code Review - openembedded-core.git/commit
mesa.inc: enable texture float for gallium
authorTrevor Woerner <twoerner@gmail.com>
Sun, 11 Jun 2017 19:43:50 +0000 (15:43 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 12 Jun 2017 14:04:12 +0000 (15:04 +0100)
commit6fd63e24a1c6ac901edb393c9db8e245189a83e2
tree34546a50431f0196926c97a04ebb9c7173ece4b1
parent13024ce5aae453769b546d5fbe533443aec3d6fd
mesa.inc: enable texture float for gallium

Following the lead from Fedora (as suggested by Rob Clark) always enable
--enable-texture-float for all gallium drivers, but then modify the code to
not enable it, at runtime, where the implementation isn't backed by hardware.

The patch comes from unpacking fedora-25's mesa-17.0.5-3.fc25.src.rpm from
https://dl.fedoraproject.org/pub/fedora/linux/updates/25/SRPMS/m/

Somewhere along the path from OpenGL ES 2.0 to OpenGL ES 3.0 are some
algorithms that are encumbered by patents. These algorithms are enabled
with mesa's --enable-texture-float configure flag. However, if hardware
acceleration is being used and the hardware supports --enable-texture-float,
it means the hardware vendor has paid for the patents.

Note that with this solution, non-hardware gallium drivers (e.g. swrast) can't
--enable-texture-float, which might cause issues with some piglit tests.

This solution was discussed and agreed-to on the mailing list:
http://lists.openembedded.org/pipermail/openembedded-core/2017-May/137233.html

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/mesa/files/0002-hardware-gloat.patch [new file with mode: 0644]
meta/recipes-graphics/mesa/mesa.inc
meta/recipes-graphics/mesa/mesa_17.1.1.bb