[Piglit] [PATCH 3/9] util/waffle: Print more info when context creation fails

Chad Versace chad.versace at linux.intel.com
Mon Dec 30 16:08:30 PST 2013


When waffle_config_choose() or waffle_context_create() fails, print
Waffle's error message to stderr. Several people (Carl, Ian, Timothy
Arceri) have requested this.

Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
 tests/util/piglit-framework-gl/piglit_wfl_framework.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/util/piglit-framework-gl/piglit_wfl_framework.c b/tests/util/piglit-framework-gl/piglit_wfl_framework.c
index e81be90..534c1ff 100644
--- a/tests/util/piglit-framework-gl/piglit_wfl_framework.c
+++ b/tests/util/piglit-framework-gl/piglit_wfl_framework.c
@@ -245,8 +245,9 @@ choose_config(struct piglit_wfl_framework *wfl_fw,
 
 	config = waffle_config_choose(wfl_fw->display,
 	                              full_attrib_list);
-	if (!config)
-		wfl_log_debug("waffle_config_choose");
+	if (!config) {
+		wfl_log_error("waffle_config_choose");
+	}
 
 	free(full_attrib_list);
 	return config;
@@ -348,7 +349,7 @@ make_context_current_singlepass(struct piglit_wfl_framework *wfl_fw,
 
 	wfl_fw->context = waffle_context_create(wfl_fw->config, NULL);
 	if (!wfl_fw->context) {
-		wfl_log_debug("waffle_context_create");
+		wfl_log_error("waffle_context_create");
 		goto fail;
 	}
 
-- 
1.8.4



More information about the Piglit mailing list