mesa: allow half float textures based on ARB_half_float_pixel
authorErico Nunes <nunes.erico@gmail.com>
Wed, 9 Dec 2020 22:24:37 +0000 (23:24 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 11 Dec 2020 21:14:30 +0000 (21:14 +0000)
commitaca67a555c011f59c37b05544eecbeea9aa42f3e
treed4acd0d6ab621dd512771499b1b4267ff0586dad
parent456b57802eaf95d36e7b950bdb5ffd86a1c0dc63
mesa: allow half float textures based on ARB_half_float_pixel

In targets that support half float textures but not float textures (so
without ARB_texture_float), the previous logic did not allow for
enabling half float texture support in desktop OpenGL.
OES_texture_half_float is only valid for OpenGL ES 2.0 contexts, so
include ARB_half_float_pixel in the logic to cover OpenGL too.
Remove _mesa_is_gles3 from the check since in case of a gles3 context,
OES_texture_half_float is already assumed to be enabled.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8020>
src/mesa/main/context.h