summaryrefslogtreecommitdiff
path: root/src/glamor_fill.c
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2012-06-11 01:02:30 +0800
committerZhigang Gong <zhigang.gong@linux.intel.com>2012-06-11 15:45:46 +0800
commit25ba2dcf0e9858edc93fafa0d77f6d1a574bd833 (patch)
treea3ae32f93958ac6cf7d44e498d83c53150e5a77b /src/glamor_fill.c
parent6116de526bc174baa6292c216e44ad0109855d2d (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_fill.c')
-rw-r--r--src/glamor_fill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glamor_fill.c b/src/glamor_fill.c
index 57dd698..b63756d 100644
--- a/src/glamor_fill.c
+++ b/src/glamor_fill.c
@@ -239,7 +239,7 @@ glamor_solid(PixmapPtr pixmap, int x, int y, int width, int height,
dispatch->glEnableVertexAttribArray(GLAMOR_VERTEX_POS);
pixmap_priv_get_dest_scale(pixmap_priv, &xscale, &yscale);
- glamor_set_normalize_vcoords(xscale, yscale, x1, y1, x2, y2,
+ glamor_set_normalize_vcoords(pixmap_priv, xscale, yscale, x1, y1, x2, y2,
glamor_priv->yInverted, vertices);
dispatch->glDrawArrays(GL_TRIANGLE_FAN, 0, 4);
dispatch->glDisableVertexAttribArray(GLAMOR_VERTEX_POS);