From 00caf2ab088dd2e08ce410850dee61ba2b9aa63a Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 24 Aug 2017 14:40:32 -0400 Subject: mesa: Implement GL_ARB_texture_filter_anisotropic The only difference from the EXT version is bumping the minmax to 16, so just hit all the drivers at once. v2: Fix driver names, add to 17.3 release notes (Ilia Mirkin) Reviewed-by: Ilia Mirkin Signed-off-by: Adam Jackson Reviewed-by: Kenneth Graunke --- src/mesa/main/extensions.c | 1 + src/mesa/main/extensions_table.h | 1 + src/mesa/main/mtypes.h | 1 + src/mesa/main/version.c | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mesa/main') diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 62a731675d7..5a5fdd247f3 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -130,6 +130,7 @@ _mesa_enable_sw_extensions(struct gl_context *ctx) ctx->Extensions.ARB_texture_env_combine = GL_TRUE; ctx->Extensions.ARB_texture_env_crossbar = GL_TRUE; ctx->Extensions.ARB_texture_env_dot3 = GL_TRUE; + ctx->Extensions.ARB_texture_filter_anisotropic = GL_TRUE; #ifdef TEXTURE_FLOAT_ENABLED ctx->Extensions.ARB_texture_float = GL_TRUE; #endif diff --git a/src/mesa/main/extensions_table.h b/src/mesa/main/extensions_table.h index 347a6197ed8..d096260891c 100644 --- a/src/mesa/main/extensions_table.h +++ b/src/mesa/main/extensions_table.h @@ -144,6 +144,7 @@ EXT(ARB_texture_env_add , dummy_true EXT(ARB_texture_env_combine , ARB_texture_env_combine , GLL, x , x , x , 2001) EXT(ARB_texture_env_crossbar , ARB_texture_env_crossbar , GLL, x , x , x , 2001) EXT(ARB_texture_env_dot3 , ARB_texture_env_dot3 , GLL, x , x , x , 2001) +EXT(ARB_texture_filter_anisotropic , ARB_texture_filter_anisotropic , GLL, GLC, x , x , 2017) EXT(ARB_texture_float , ARB_texture_float , GLL, GLC, x , x , 2004) EXT(ARB_texture_gather , ARB_texture_gather , GLL, GLC, x , x , 2009) EXT(ARB_texture_mirror_clamp_to_edge , ARB_texture_mirror_clamp_to_edge , GLL, GLC, x , x , 2013) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 592cb48ca3c..99b6dfa6113 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -4093,6 +4093,7 @@ struct gl_extensions GLboolean ARB_texture_env_combine; GLboolean ARB_texture_env_crossbar; GLboolean ARB_texture_env_dot3; + GLboolean ARB_texture_filter_anisotropic; GLboolean ARB_texture_float; GLboolean ARB_texture_gather; GLboolean ARB_texture_mirror_clamp_to_edge; diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 7cb4ee7f9cd..59e7b89ff6e 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -395,7 +395,7 @@ compute_version(const struct gl_extensions *extensions, extensions->ARB_shader_atomic_counter_ops && extensions->ARB_shader_draw_parameters && extensions->ARB_shader_group_vote && - /* extensions->ARB_texture_filter_anisotropic */ 0 && + extensions->ARB_texture_filter_anisotropic && extensions->ARB_transform_feedback_overflow_query); if (ver_4_6) { -- cgit v1.2.3