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>
This commit is contained in:
Chris Wilson 2014-06-13 19:29:41 +01:00
parent 79b4e45ebe
commit 0c6fa0cdf0
1 changed files with 2 additions and 2 deletions

View File

@ -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);