Displaying 2 results from an estimated 2 matches for "check_render_target".
2010 Feb 09
1
texture dimension limits in ddx
in nv10_exa.c :
check_texture does :
       if (w > 2046 || h > 2046)
                NOUVEAU_FALLBACK("picture too large, %dx%d\n", w, h);
check_render_target does :
        if (w > 4096 || h > 4096)
                return FALSE;
So we have different size limits for the source and the destination ?
Another thing is that nv20 uses nv10_exa.c code, and the limit in
check_texture could be increased for nv20 according to curro :
01:03 < curro_>...
2009 Nov 04
1
[PATCH] nv10/exa: Spring-cleaning
...cannot repeat on NV10 because NPOT textures do not
+	 * support this. unfortunately. */
+	if (pict->repeat != RepeatNone)
 		/* we can repeat 1x1 textures */
 		if (!(w == 1 && h == 1))
 			return FALSE;
+
 	return TRUE;
 }
 
-static Bool NV10CheckBuffer(PicturePtr Picture)
+static Bool
+check_render_target(PicturePtr pict)
 {
-	int w = Picture->pDrawable->width;
-	int h = Picture->pDrawable->height;
+	int w = pict->pDrawable->width;
+	int h = pict->pDrawable->height;
 
-	if ((w > 4096) || (h > 4096))
+	if (w > 4096 || h > 4096)
 		return FALSE;
-	if (!NV10DstFormat...