From c2455029189542b510191eaadfd7416347bc1de4 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 1 Aug 2017 12:26:30 +0200 Subject: mesa: add always-false enable for GL 4.6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I believe this should be enough for now. Signed-off-by: Samuel Pitoiset Reviewed-by: Nicolai Hähnle --- src/mesa/main/version.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'src/mesa/main/version.c') diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 34f8bbbcb17..f04c43ddf57 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -385,8 +385,24 @@ compute_version(const struct gl_extensions *extensions, extensions->ARB_derivative_control && extensions->ARB_shader_texture_image_samples && extensions->NV_texture_barrier); - - if (ver_4_5) { + const bool ver_4_6 = (ver_4_5 && + consts->GLSLVersion >= 460 && + /* extensions->ARB_gl_spirv */ 0 && + /* extensions->ARB_gl_spirv_extensions */ 0 && + extensions->ARB_indirect_parameters && + extensions->ARB_pipeline_statistics_query && + /* extensions->ARB_polygon_offset_clamp */ 0 && + extensions->ARB_shader_atomic_counter_ops && + extensions->ARB_shader_draw_parameters && + extensions->ARB_shader_group_vote && + /* extensions->ARB_texture_filter_anisotropic */ 0 && + extensions->ARB_transform_feedback_overflow_query); + + if (ver_4_6) { + major = 4; + minor = 6; + } + else if (ver_4_5) { major = 4; minor = 5; } -- cgit v1.2.3