Mesa (main): mesa: drop unused sw extensions init

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Dec 6 05:47:00 UTC 2021


Module: Mesa
Branch: main
Commit: e2c05539fe9cc159bbf94d837e8ee6b2752b6e50
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e2c05539fe9cc159bbf94d837e8ee6b2752b6e50

Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Dec  6 14:35:51 2021 +1000

mesa: drop unused sw extensions init

This isn't used since swrast went away.

Reviewed-by: Zoltán Böszörményi <zboszor at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14072>

---

 src/mesa/main/extensions.c | 76 ----------------------------------------------
 src/mesa/main/extensions.h |  2 --
 2 files changed, 78 deletions(-)

diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index 613fd3d6c7f..6c9c6fd6bec 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -113,82 +113,6 @@ _mesa_override_extensions(struct gl_context *ctx)
    }
 }
 
-
-/**
- * Enable all extensions suitable for a software-only renderer.
- * This is a convenience function used by the mesa/swrast drivers.
- */
-void
-_mesa_enable_sw_extensions(struct gl_context *ctx)
-{
-   ctx->Extensions.ARB_depth_clamp = GL_TRUE;
-   ctx->Extensions.ARB_depth_texture = GL_TRUE;
-   ctx->Extensions.ARB_draw_elements_base_vertex = GL_TRUE;
-   ctx->Extensions.ARB_draw_instanced = GL_TRUE;
-   ctx->Extensions.ARB_explicit_attrib_location = GL_TRUE;
-   ctx->Extensions.ARB_fragment_coord_conventions = GL_TRUE;
-   ctx->Extensions.ARB_fragment_program = GL_TRUE;
-   ctx->Extensions.ARB_fragment_program_shadow = GL_TRUE;
-   ctx->Extensions.ARB_fragment_shader = GL_TRUE;
-   ctx->Extensions.ARB_framebuffer_object = GL_TRUE;
-   ctx->Extensions.ARB_half_float_vertex = GL_TRUE;
-   ctx->Extensions.ARB_map_buffer_range = GL_TRUE;
-   ctx->Extensions.ARB_occlusion_query = GL_TRUE;
-   ctx->Extensions.ARB_occlusion_query2 = GL_TRUE;
-   ctx->Extensions.ARB_point_sprite = GL_TRUE;
-   ctx->Extensions.ARB_shadow = GL_TRUE;
-   ctx->Extensions.ARB_texture_border_clamp = GL_TRUE;
-   ctx->Extensions.ARB_texture_compression_bptc = GL_TRUE;
-   ctx->Extensions.ARB_texture_cube_map = GL_TRUE;
-   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;
-   ctx->Extensions.ARB_texture_float = GL_TRUE;
-   ctx->Extensions.ARB_texture_mirror_clamp_to_edge = GL_TRUE;
-   ctx->Extensions.ARB_texture_non_power_of_two = GL_TRUE;
-   ctx->Extensions.ARB_texture_rg = GL_TRUE;
-   ctx->Extensions.ARB_texture_compression_rgtc = GL_TRUE;
-   ctx->Extensions.ARB_vertex_program = GL_TRUE;
-   ctx->Extensions.ARB_vertex_shader = GL_TRUE;
-   ctx->Extensions.ARB_sync = GL_TRUE;
-   ctx->Extensions.APPLE_object_purgeable = GL_TRUE;
-   ctx->Extensions.ATI_fragment_shader = GL_TRUE;
-   ctx->Extensions.ATI_texture_compression_3dc = GL_TRUE;
-   ctx->Extensions.ATI_texture_env_combine3 = GL_TRUE;
-   ctx->Extensions.ATI_texture_mirror_once = GL_TRUE;
-   ctx->Extensions.EXT_blend_color = GL_TRUE;
-   ctx->Extensions.EXT_blend_equation_separate = GL_TRUE;
-   ctx->Extensions.EXT_blend_func_separate = GL_TRUE;
-   ctx->Extensions.EXT_blend_minmax = GL_TRUE;
-   ctx->Extensions.EXT_depth_bounds_test = GL_TRUE;
-   ctx->Extensions.EXT_draw_buffers2 = GL_TRUE;
-   ctx->Extensions.EXT_pixel_buffer_object = GL_TRUE;
-   ctx->Extensions.EXT_point_parameters = GL_TRUE;
-   ctx->Extensions.EXT_provoking_vertex = GL_TRUE;
-   ctx->Extensions.EXT_stencil_two_side = GL_TRUE;
-   ctx->Extensions.EXT_texture_array = GL_TRUE;
-   ctx->Extensions.EXT_texture_compression_latc = GL_TRUE;
-   ctx->Extensions.EXT_texture_env_dot3 = GL_TRUE;
-   ctx->Extensions.EXT_texture_filter_anisotropic = GL_TRUE;
-   ctx->Extensions.EXT_texture_mirror_clamp = GL_TRUE;
-   ctx->Extensions.EXT_texture_shared_exponent = GL_TRUE;
-   ctx->Extensions.EXT_texture_sRGB = GL_TRUE;
-   ctx->Extensions.EXT_texture_sRGB_decode = GL_TRUE;
-   ctx->Extensions.EXT_texture_swizzle = GL_TRUE;
-   /*ctx->Extensions.EXT_transform_feedback = GL_TRUE;*/
-   ctx->Extensions.EXT_vertex_array_bgra = GL_TRUE;
-   ctx->Extensions.MESA_ycbcr_texture = GL_TRUE;
-   ctx->Extensions.NV_conditional_render = GL_TRUE;
-   ctx->Extensions.NV_texture_env_combine4 = GL_TRUE;
-   ctx->Extensions.NV_texture_rectangle = GL_TRUE;
-   ctx->Extensions.EXT_gpu_program_parameters = GL_TRUE;
-   ctx->Extensions.OES_standard_derivatives = GL_TRUE;
-   ctx->Extensions.TDFX_texture_compression_FXT1 = GL_TRUE;
-   ctx->Extensions.ANGLE_texture_compression_dxt = GL_TRUE;
-   ctx->Extensions.EXT_texture_compression_s3tc = GL_TRUE;
-}
-
 /**
  * Either enable or disable the named extension.
  * \return offset of extensions withint `ext' or 0 if extension is not known
diff --git a/src/mesa/main/extensions.h b/src/mesa/main/extensions.h
index cb5b48afcd3..8f84891757e 100644
--- a/src/mesa/main/extensions.h
+++ b/src/mesa/main/extensions.h
@@ -45,8 +45,6 @@ extern "C" {
 struct gl_context;
 struct gl_extensions;
 
-extern void _mesa_enable_sw_extensions(struct gl_context *ctx);
-
 extern void _mesa_one_time_init_extension_overrides(const char *override);
 
 extern void _mesa_init_extensions(struct gl_extensions *extentions);



More information about the mesa-commit mailing list