aboutsummaryrefslogtreecommitdiff
path: root/tests/util
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2013-02-20 13:39:55 -0800
committerChad Versace <chad.versace@linux.intel.com>2013-02-22 10:19:54 -0800
commit9404bb5eb9feaf689af0ded73cee1dbd668d829c (patch)
tree10d8fbafa20e0a1c4ac7c58d55b98a21685944b8 /tests/util
parent6673f35878b1718d52299d4a212f3a9652aced21 (diff)
util/waffle: Print message when falling back to compatibility context
Some tests declare in their config block that they support running under both core and compatibility contexts. In this case, Piglit first attempts to use a core context; if core context creation fails, then Piglit falls back to the compatibility context. This patch prints a diagnostic when the fallback occurs. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests/util')
-rw-r--r--tests/util/piglit-framework-gl/piglit_wfl_framework.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/util/piglit-framework-gl/piglit_wfl_framework.c b/tests/util/piglit-framework-gl/piglit_wfl_framework.c
index 6e595445..172c6101 100644
--- a/tests/util/piglit-framework-gl/piglit_wfl_framework.c
+++ b/tests/util/piglit-framework-gl/piglit_wfl_framework.c
@@ -357,6 +357,15 @@ make_context_current(struct piglit_wfl_framework *wfl_fw,
}
}
+ if (test_config->supports_gl_core_version &&
+ test_config->supports_gl_compat_version) {
+ /* The above attempt to create a core context failed. */
+ printf("piglit: info: Falling back to GL %d.%d "
+ "compatibility context\n",
+ test_config->supports_gl_compat_version / 10,
+ test_config->supports_gl_compat_version % 10);
+ }
+
if (test_config->supports_gl_compat_version) {
ok = make_context_current_singlepass(wfl_fw, test_config,
CONTEXT_GL_COMPAT,