summaryrefslogtreecommitdiff
path: root/tools/virtual.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-06-13 19:29:41 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-06-13 19:30:54 +0100
commit0c6fa0cdf0cebcd592281e578da7a7f53cbfe186 (patch)
tree084aafce02efa426a636d1204652cb5b1c99592a /tools/virtual.c
parent79b4e45ebe3a61f9b5937ad226eead9eebce87ac (diff)
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools/virtual.c')
-rw-r--r--tools/virtual.c4
1 files changed, 2 insertions, 2 deletions
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);