summaryrefslogtreecommitdiff
path: root/glamor/glamor_gradient.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-10-29 22:50:53 -0700
committerEric Anholt <eric@anholt.net>2015-03-24 12:32:46 -0700
commitaf687396f1875de0a45683aad4fd5a9a2e00f10d (patch)
treeedfc30a8c59c4ff0a9a68a828f835557c60234a6 /glamor/glamor_gradient.c
parent1eb954c3830d46c27bf2a61f825b59f12092728c (diff)
glamor: Remove screen private and pixmap ptrs from pixmap private and fbo
There's no reason to waste memory storing redundant copies of the same pointer all over the system; just pass in pointers as necessary to each function. Signed-off-by: Keith Packard <keithp@keithp.com> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'glamor/glamor_gradient.c')
-rw-r--r--glamor/glamor_gradient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/glamor/glamor_gradient.c b/glamor/glamor_gradient.c
index 2b9f7f320..232b4023d 100644
--- a/glamor/glamor_gradient.c
+++ b/glamor/glamor_gradient.c
@@ -682,9 +682,9 @@ _glamor_gradient_set_pixmap_destination(ScreenPtr screen,
return 0;
}
- glamor_set_destination_pixmap_priv_nc(pixmap_priv);
+ glamor_set_destination_pixmap_priv_nc(glamor_priv, pixmap, pixmap_priv);
- pixmap_priv_get_dest_scale(pixmap_priv, xscale, yscale);
+ pixmap_priv_get_dest_scale(pixmap, pixmap_priv, xscale, yscale);
DEBUGF("xscale = %f, yscale = %f,"
" x_source = %d, y_source = %d, width = %d, height = %d\n",