diff options
author | Dave Airlie <airlied@redhat.com> | 2013-05-14 11:13:00 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-05-14 11:13:00 +1000 |
commit | 1b4d51be0502224c5b6c165b7aaec02d7e782c8c (patch) | |
tree | 559763dc1553f60f925276b9b81d191c8c889e63 | |
parent | 3e37b2c38f661b0b8e285cfa7f0549aa3d216eb5 (diff) |
qxl/kms: recreate the host image upon resize
The code was just missing this, it was freeing stuff but never
reallocating it, oops. This along with the kernel side fix should
allow better randr support under KMS.
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | src/qxl_drmmode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qxl_drmmode.c b/src/qxl_drmmode.c index 8189d9b..e19c7df 100644 --- a/src/qxl_drmmode.c +++ b/src/qxl_drmmode.c @@ -824,6 +824,10 @@ drmmode_xf86crtc_resize (ScrnInfoPtr scrn, int width, int height) height, (uint32_t *)dev_addr, pitch); + qxl->primary->host_image = pixman_image_create_bits (format, + width, + height, + NULL, pitch); } /* fixup the surfaces */ |