[Mesa-dev] [PATCH 30/30] mesa/st: require linear interpolation for ARB_texture_float
Erik Faye-Lund
erik.faye-lund at collabora.com
Mon Nov 19 12:15:06 UTC 2018
There's nothing in the ARB_texture_float specification that limits
filterability for floating-point textures, so we need to ensure that
this is required to enable this extension. Luckily, we have just the
right bits ready.
Signed-off-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
---
src/mesa/state_tracker/st_extensions.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index b0fc824e30c..244934f7588 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -1459,7 +1459,9 @@ void st_init_extensions(struct pipe_screen *screen,
extensions->ARB_texture_float =
extensions->OES_texture_half_float &&
- extensions->OES_texture_float;
+ extensions->OES_texture_half_float_linear &&
+ extensions->OES_texture_float &&
+ extensions->OES_texture_float_linear;
if (extensions->EXT_texture_filter_anisotropic &&
screen->get_paramf(screen, PIPE_CAPF_MAX_TEXTURE_ANISOTROPY) >= 16.0)
--
2.19.1
More information about the mesa-dev
mailing list