summaryrefslogtreecommitdiff
path: root/glamor/glamor_picture.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2015-07-07 17:21:55 -0700
committerEric Anholt <eric@anholt.net>2015-07-10 09:42:57 -0700
commit80b6652c9fb9cdff91e92fa16c07e2cc63b06f44 (patch)
tree126b8a408eea89df3ec9d25584faa414d5a6bd50 /glamor/glamor_picture.c
parenta2a2f6e34bd49e7ae31779274d52e800595660bc (diff)
glamor: Drop a bunch of glamor_priv == NULL checks.
Now that it's always non-null when the pixmap is non-null, we don't need so much of this. glamor_get_pixmap_private() itself still accepts a NULL pixmap and returns NULL, because of glamor_render.c Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'glamor/glamor_picture.c')
-rw-r--r--glamor/glamor_picture.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/glamor/glamor_picture.c b/glamor/glamor_picture.c
index 53b032c89..20b9de29f 100644
--- a/glamor/glamor_picture.c
+++ b/glamor/glamor_picture.c
@@ -61,15 +61,6 @@ glamor_create_picture(PicturePtr picture)
pixmap = glamor_get_drawable_pixmap(picture->pDrawable);
pixmap_priv = glamor_get_pixmap_private(pixmap);
- if (!pixmap_priv) {
- /* We must create a pixmap priv to track the picture format even
- * if the pixmap is a pure in memory pixmap. The reason is that
- * we may need to upload this pixmap to a texture on the fly. During
- * the uploading, we need to know the picture format. */
- glamor_set_pixmap_type(pixmap, GLAMOR_MEMORY);
- pixmap_priv = glamor_get_pixmap_private(pixmap);
- }
-
pixmap_priv->is_picture = 1;
pixmap_priv->picture = picture;