diff options
author | Jordan Justen <[email protected]> | 2013-02-21 16:59:33 -0800 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2013-02-28 21:50:56 -0800 |
commit | fde59a27fb981e9d05773891a453b2b142f85871 (patch) | |
tree | 35169a868d3a55aa7ef0f7106f2561aef5831b84 | |
parent | c4e059a359f26918117c2c43bf90496325851c4d (diff) |
intel: update max versions based on MESA_GL_VERSION_OVERRIDE
If the override is version is >= 3.1, then update the
max_gl_core_version. Otherwise, update max_gl_compat_version.
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_screen.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index 277b1330884..78768e54513 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -1156,6 +1156,8 @@ intel_screen_make_configs(__DRIscreen *dri_screen) static void set_max_gl_versions(struct intel_screen *screen) { + int gl_version_override = _mesa_get_gl_version_override(); + switch (screen->gen) { case 7: if (screen->kernel_has_gen7_sol_reset) { @@ -1215,6 +1217,14 @@ set_max_gl_versions(struct intel_screen *screen) break; } + if (gl_version_override >= 31) { + screen->max_gl_core_version = MAX2(screen->max_gl_core_version, + gl_version_override); + } else { + screen->max_gl_compat_version = MAX2(screen->max_gl_compat_version, + gl_version_override); + } + #ifndef FEATURE_ES1 screen->max_gl_es1_version = 0; #endif |