From 25ba2dcf0e9858edc93fafa0d77f6d1a574bd833 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Mon, 11 Jun 2012 01:02:30 +0800 Subject: glamor_largepixmap: first commit for large pixmap. This is the first commit to add support for large pixmap. The large here means a pixmap is larger than the texutre's size limitation thus can't fit into one single texutre. The previous implementation will simply fallback to use a in memory pixmap to contain the large pixmap which is very slow in practice. The basic idea here is to use an array of texture to hold the large pixmap. And when we need to get a specific area of the pixmap, we just need to compute/clip the correct region and find the corresponding fbo. We need to implement some auxiliary routines to clip every rendering operations into small pieces which can fit into one texture. The complex part is the transformation/repeat/repeatReflect and repeat pad and their comination. We will support all of them step by step. This commit just add some necessary data structure to represent the large pixmap, and doesn't change any rendering process. This commit doesn't add real large pixmap support. Signed-off-by: Zhigang Gong --- src/glamor_gradient.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/glamor_gradient.c') diff --git a/src/glamor_gradient.c b/src/glamor_gradient.c index ab2c2ed..09e33d7 100644 --- a/src/glamor_gradient.c +++ b/src/glamor_gradient.c @@ -806,14 +806,14 @@ _glamor_gradient_set_pixmap_destination(ScreenPtr screen, *xscale, *yscale, x_source, y_source, dst_picture->pDrawable->width, dst_picture->pDrawable->height); - glamor_set_normalize_vcoords(*xscale, *yscale, + glamor_set_normalize_vcoords(pixmap_priv, *xscale, *yscale, 0, 0, (INT16)(dst_picture->pDrawable->width), (INT16)(dst_picture->pDrawable->height), glamor_priv->yInverted, vertices); if (tex_normalize) { - glamor_set_normalize_tcoords(*xscale, *yscale, + glamor_set_normalize_tcoords(pixmap_priv, *xscale, *yscale, x_source, y_source, (INT16)(dst_picture->pDrawable->width + x_source), (INT16)(dst_picture->pDrawable->height + y_source), -- cgit v1.2.3