]> git.proxmox.com Git - mirror_qemu.git/commit
ui/gtk-egl: guest fb texture needs to be regenerated when reinitializing egl
authorDongwon Kim <dongwon.kim@intel.com>
Thu, 4 Nov 2021 06:51:50 +0000 (23:51 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 5 Nov 2021 11:29:34 +0000 (12:29 +0100)
commit4872a023a593e6519b272a57fea03abe13a7bb00
tree90eb2ff0cafef59d49218abbaeddac4a5a0300a5
parent01eb4749f03fe6881388287ede65f6662de11d0a
ui/gtk-egl: guest fb texture needs to be regenerated when reinitializing egl

If guest fb is backed by dmabuf (blob-resource), the texture bound to the
old context needs to be recreated in case the egl is re-initialized (e.g.
new window for vc is created in case of detaching/reattaching of the tab)

v2: call egl_dmabuf_release_texutre instead of putting 0 to dmabuf->texture
    (Vivek Kasireddy)

Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Message-Id: <20211104065153.28897-3-dongwon.kim@intel.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/gtk-egl.c