Mesa (gles3): i965: Bump maximum supported ES2 context version to 3.0

Chad Versace chadversary at kemper.freedesktop.org
Wed Nov 21 17:30:11 UTC 2012


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

Author: Chad Versace <chad.versace at linux.intel.com>
Date:   Wed Nov 21 09:28:36 2012 -0800

i965: Bump maximum supported ES2 context version to 3.0

Since patch "i965: Validate requested GLES context version in
brwCreateContext", we have been able to create ES 3.0 contexts due to the
max version check.  So...bump the max version.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Signed-off-by: Chad Versace <chad.versace at linux.intel.com>

---

 src/mesa/drivers/dri/i965/brw_context.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 13d5c31..b9aae82 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -108,7 +108,7 @@ brwCreateContext(int api,
       max_supported_version = 11;
       break;
    case API_OPENGLES2:
-      max_supported_version = 20;
+      max_supported_version = supports_gl30 ? 30 : 20;
       break;
    case API_OPENGL_CORE:
       max_supported_version = supports_gl30 ? 31 : 0;




More information about the mesa-commit mailing list