From 0c6fa0cdf0cebcd592281e578da7a7f53cbfe186 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 13 Jun 2014 19:29:41 +0100 Subject: intel-virtual-output: Initialise image after clone As the image inherits its width/height from the clone, we need to set those first on the clone. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79994 Signed-off-by: Chris Wilson --- tools/virtual.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/virtual.c') diff --git a/tools/virtual.c b/tools/virtual.c index 0d54393b..95541bda 100644 --- a/tools/virtual.c +++ b/tools/virtual.c @@ -1175,8 +1175,6 @@ disable_dri3: return ENOMEM; } - init_image(clone); - if (clone->src.use_shm) { clone->src.shm = clone->shm; clone->src.shm.readOnly = False; @@ -1194,6 +1192,8 @@ disable_dri3: clone->width = width; clone->height = height; + + init_image(clone); } output_init_xfer(clone, &clone->src); -- cgit v1.2.3