diff options
author | Keith Packard <keithp@keithp.com> | 2014-10-13 12:32:27 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2015-05-14 15:55:53 -0700 |
commit | 2bf34fe8d9b7628d164392c2d11ace78f7cf17b9 (patch) | |
tree | afe2303212a46f0dd66cbd85a020cbb5e55bdcf0 /glamor/glamor_spans.c | |
parent | 910ddf85219f114744e8996a4ac044c4eafc62ac (diff) |
glamor: Pass depth to glamor_pm_is_solid and glamor_set_planemask
Instead of passing the destination drawable, just pass the depth, as
the underlying functions need only that to check whether the planemask
is going to work.
This API change will allow higher level functions to not need the
destination pixmap.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'glamor/glamor_spans.c')
-rw-r--r-- | glamor/glamor_spans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glamor/glamor_spans.c b/glamor/glamor_spans.c index b358c60bd..58da3edf7 100644 --- a/glamor/glamor_spans.c +++ b/glamor/glamor_spans.c @@ -279,7 +279,7 @@ glamor_set_spans_gl(DrawablePtr drawable, GCPtr gc, char *src, if (gc->alu != GXcopy) goto bail; - if (!glamor_pm_is_solid(&pixmap->drawable, gc->planemask)) + if (!glamor_pm_is_solid(gc->depth, gc->planemask)) goto bail; glamor_get_drawable_deltas(drawable, pixmap, &off_x, &off_y); |