mirror of
https://gitlab.com/marcandre.lureau/qemu-display.git
synced 2025-01-03 11:15:19 +00:00
qemu-rdw: update to RDW API changes
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
eb21285e92
commit
da6dc72432
@ -261,7 +261,7 @@ mod imp {
|
|||||||
ScanoutD3dTexture2d(s) => {
|
ScanoutD3dTexture2d(s) => {
|
||||||
log::debug!("{s:?}");
|
log::debug!("{s:?}");
|
||||||
this.obj().set_display_size(Some((s.w as _, s.h as _)));
|
this.obj().set_display_size(Some((s.w as _, s.h as _)));
|
||||||
this.obj().set_d3d11_texture2d_scanout(rdw::RdwD3d11Texture2dScanout {
|
this.obj().set_d3d11_texture2d_scanout(Some(rdw::RdwD3d11Texture2dScanout {
|
||||||
handle: s.handle as _,
|
handle: s.handle as _,
|
||||||
tex_width: s.tex_width,
|
tex_width: s.tex_width,
|
||||||
tex_height: s.tex_height,
|
tex_height: s.tex_height,
|
||||||
@ -270,11 +270,13 @@ mod imp {
|
|||||||
y: s.y,
|
y: s.y,
|
||||||
w: s.w,
|
w: s.w,
|
||||||
h: s.h,
|
h: s.h,
|
||||||
});
|
}));
|
||||||
}
|
}
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
UpdateD3dTexture2d { wait_tx, .. } => {
|
UpdateD3dTexture2d { wait_tx, .. } => {
|
||||||
|
this.obj().set_d3d11_texture2d_can_acquire(true);
|
||||||
this.obj().render();
|
this.obj().render();
|
||||||
|
this.obj().set_d3d11_texture2d_can_acquire(false);
|
||||||
let _ = wait_tx.send(());
|
let _ = wait_tx.send(());
|
||||||
}
|
}
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
|
Loading…
Reference in New Issue
Block a user