[Piglit] [PATCH 2/2] gl-1.4-polygon-offset: print more info on failure.

Brian Paul brianp at vmware.com
Fri Nov 11 17:31:21 UTC 2016


---
 tests/spec/gl-1.4/polygon-offset.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/spec/gl-1.4/polygon-offset.c b/tests/spec/gl-1.4/polygon-offset.c
index 08ec6dc..a749071 100644
--- a/tests/spec/gl-1.4/polygon-offset.c
+++ b/tests/spec/gl-1.4/polygon-offset.c
@@ -497,6 +497,8 @@ check_slope_offset(const struct angle_axis *aa, GLdouble *ideal_mrd_near)
 			aa->angle, aa->axis[0], aa->axis[1], aa->axis[2]);
 		printf("\tFailing offset was %.16f\n", offset);
 		printf("\tAllowable range is (%f, %f)\n", mmin, mmax);
+		printf("\tglPolygonOffset(-1.0, 0.0);\n");
+		printf("\tglReadPixels returned %f\n", offset_depth);
 		return false;
 	}
 
@@ -516,6 +518,8 @@ check_slope_offset(const struct angle_axis *aa, GLdouble *ideal_mrd_near)
 		printf("\tFailing offset was %.16f\n", offset);
 		printf("\tAllowable range is (%f, %f)\n", 2.0 * mmin,
 			2.0 * mmax);
+		printf("\tglPolygonOffset(-2.0, 0.0);\n");
+		printf("\tglReadPixels returned %f\n", offset_depth);
 		return false;
 	}
 
-- 
1.9.1



More information about the Piglit mailing list