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

Brian Paul brianp at vmware.com
Mon Oct 15 07:15:52 PDT 2012


On 10/15/2012 07:57 AM, sroland at vmware.com wrote:
> 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
>   	 */
>

Looks OK to me.

Reviewed-by: Brian Paul <brianp at vmware.com>


More information about the Piglit mailing list