Skip to content

lima: add support for half float textures

Erico Nunes requested to merge enunes/mesa:lima-half-float-tex into master

Add support for the half float texel type and pixel types. This enables the OES_texture_half_float extension.

Tested with piglit test oes_texture_float (half float and with linear filtering) and passes all deqp half float related tests. With conversion from float to half-float it also passes https://gitlab.freedesktop.org/mesa/demos/-/blob/master/src/tests/floattex.c .

The mesa patch allows half floats to be exposed on a non-GLES context, which I found to be a bit problematic since the OES extension applies only to GLES and we can't really implement ARB_texture_float without 32-bit floats. I had a brief discussion about it on IRC with @ajax .

Supersedes !3048 (closed)

Merge request reports