diff options
author | Zhigang Gong <zhigang.gong@linux.intel.com> | 2012-06-11 01:02:30 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2012-06-11 15:45:46 +0800 |
commit | 25ba2dcf0e9858edc93fafa0d77f6d1a574bd833 (patch) | |
tree | a3ae32f93958ac6cf7d44e498d83c53150e5a77b /src/glamor_gradient.c | |
parent | 6116de526bc174baa6292c216e44ad0109855d2d (diff) |
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 <zhigang.gong@linux.intel.com>
Diffstat (limited to 'src/glamor_gradient.c')
-rw-r--r-- | src/glamor_gradient.c | 4 |
1 files changed, 2 insertions, 2 deletions
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), |