From bf41ab61908b340e5745c334586349bc8a3a0349 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Tue, 6 Jun 2023 15:56:56 +0400 Subject: ui: add optional d3d texture pointer to scanout texture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The following patch will get the underlying D3D11 Texture2D from the virgl renderer scanout. Pass it along to the texture scanout callbacks as a priliminary step, to simplify review. Signed-off-by: Marc-André Lureau Message-Id: <20230606115658.677673-20-marcandre.lureau@redhat.com> --- ui/sdl2-gl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/sdl2-gl.c') diff --git a/ui/sdl2-gl.c b/ui/sdl2-gl.c index bbfa70eac3..28d796607c 100644 --- a/ui/sdl2-gl.c +++ b/ui/sdl2-gl.c @@ -205,7 +205,8 @@ void sdl2_gl_scanout_texture(DisplayChangeListener *dcl, uint32_t backing_width, uint32_t backing_height, uint32_t x, uint32_t y, - uint32_t w, uint32_t h) + uint32_t w, uint32_t h, + void *d3d_tex2d) { struct sdl2_console *scon = container_of(dcl, struct sdl2_console, dcl); -- cgit 1.4.1