[Piglit] [PATCH] tests/fbo-blit-stretch: add a 1x1 -> nxm stretch test case

sroland at vmware.com sroland at vmware.com
Mon Oct 15 06:57:03 PDT 2012


From: Roland Scheidegger <sroland at vmware.com>

---
 tests/fbo/fbo-blit-stretch.cpp |   16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/tests/fbo/fbo-blit-stretch.cpp b/tests/fbo/fbo-blit-stretch.cpp
index fd2e187..55ed750 100644
--- a/tests/fbo/fbo-blit-stretch.cpp
+++ b/tests/fbo/fbo-blit-stretch.cpp
@@ -444,17 +444,29 @@ tests[] = {
 	{
 		SRCW, SRCH,
 		SRCXMIN, SRCYMIN, SRCXMAX, SRCYMAX,
-		DSTXMIN, DSTYMIN, DSTXMAX + 3*DX, DSTYMAX + 3*DY, // strech x y
+		DSTXMIN, DSTYMIN, DSTXMAX + 3*DX, DSTYMAX + 3*DY, // stretch x y
 		GL_NEAREST,
 	},
 	{
 		SRCW, SRCH,
 		SRCXMIN, SRCYMIN, SRCXMAX, SRCYMAX,
-		DSTXMIN, DSTYMIN, DSTXMAX + 3*DX, DSTYMAX + 3*DY, // strech x y
+		DSTXMIN, DSTYMIN, DSTXMAX + 3*DX, DSTYMAX + 3*DY, // stretch x y
 		GL_NEAREST,
 	},
 
 	/*
+	 * Stretch of a single pixel.
+	 */
+
+	{
+		SRCW, SRCH,
+		SRCXMIN, SRCYMIN, SRCXMIN + 1, SRCYMIN + 1,
+		DSTXMIN, DSTYMIN, DSTXMIN + 7, DSTYMIN + 7, // stretch x y
+		GL_NEAREST,
+	},
+
+
+	/*
 	 * Clip
 	 */
 
-- 
1.7.9.5



More information about the Piglit mailing list