From e56354661b2243e4c7d9fd1304fbc27ea7a885f2 Mon Sep 17 00:00:00 2001 From: Silvio Vilerino Date: Tue, 21 Apr 2026 14:49:10 -0400 Subject: [PATCH] mediafoundation: Create readable dpb buffers with PIPE_BIND_RENDER_TARGET and PIPE_BIND_SHARED for DX11 sharing Reviewed-by: Pohsiang (John) Hsu Part-of: --- src/gallium/frontends/mediafoundation/dpb_buffer_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/frontends/mediafoundation/dpb_buffer_manager.cpp b/src/gallium/frontends/mediafoundation/dpb_buffer_manager.cpp index f836e21faac..d640fad8981 100644 --- a/src/gallium/frontends/mediafoundation/dpb_buffer_manager.cpp +++ b/src/gallium/frontends/mediafoundation/dpb_buffer_manager.cpp @@ -82,7 +82,8 @@ dpb_buffer_manager::dpb_buffer_manager( void *logId, PIPE_VIDEO_ENTRYPOINT_ENCODE, PIPE_VIDEO_CAP_ENC_READABLE_RECONSTRUCTED_PICTURE ) != 0 ) { - m_template.bind = PIPE_BIND_SHARED; // Indicate we want shared resource capabilities + m_template.bind = PIPE_BIND_SHARED | // Indicate we want shared resource capabilities + PIPE_BIND_RENDER_TARGET; // This is also required for opening shared resources in D3D11 } for( auto &entry : m_pool )