summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-08-01 12:26:30 +0200
committerSamuel Pitoiset <[email protected]>2017-08-02 13:36:41 +0200
commitc2455029189542b510191eaadfd7416347bc1de4 (patch)
tree43b45f9b853ac5be5f71a784f80672bcb824e893 /src/mesa
parent1f4ceb8be165d25e652690527fd030994c453fe5 (diff)
mesa: add always-false enable for GL 4.6
I believe this should be enough for now. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/version.c20
1 files changed, 18 insertions, 2 deletions
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;
}