# changes from previous test

# compile without enable gtk
./configure --prefix=/opt/qemu --target-list=x86_64-softmmu --enable-system
--enable-lzo --enable-libssh2 --enable-glusterfs --enable-opengl
--enable-xfsctl --enable-usb-redir --enable-libusb  --enable-kvm
--enable-sdl --enable-gcrypt --enable-gnutls --enable-vte --enable-curses
--enable-virtfs --enable-curl --enable-bluez --enable-vde
--enable-linux-aio --enable-cap-ng --enable-attr --enable-vhost-net
--enable-spice --enable-libiscsi --enable-libnfs --enable-smartcard
--enable-vhost-user --enable-live-block-migration --enable-snappy
--enable-bzip2 --enable-seccomp --enable-coroutine-pool --enable-tpm
--enable-vhost-vsock --enable-opengl --enable-virglrenderer --enable-tools

make clean

# find problem and create file patch190118 with this patch:
--- ui/sdl2-2d.c    2018-01-19 09:47:20.693338508 +0100
+++ ui/sdl2-2d.c    2018-01-19 09:47:08.066237667 +0100
@@ -63,6 +63,8 @@
     rect.w = surface_width(surf);
     rect.h = surface_height(surf);
 #endif
+    // fix 19/01/18
+    SDL_RenderClear(scon->real_renderer);

     SDL_UpdateTexture(scon->texture, NULL, surface_data(surf),
                       surface_stride(surf));

# apply patch
patch -p0 < patch190118

# recompile
make -j8

# test with display sdl
./x86_64-softmmu/qemu-system-x86_64 -k it -machine accel=kvm -m 4096
-no-fd-bootchk -drive file="/virtualmachine/vmserver.img",if=scsi -boot
once=c,menu=off -net nic,vlan=0,macaddr=00:1a:21:a8:13:10 -net
user,vlan=0,hostname=TESTSERVER -rtc base=localtime -name "vmserver"
-usbdevice tablet -smp 8 -vga virtio -display sdl

no artefact, solved for me
Thanks.

Reply via email to