mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
mediafoundation: Create readable dpb buffers with PIPE_BIND_RENDER_TARGET and PIPE_BIND_SHARED for DX11 sharing
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41110>
This commit is contained in:
parent
f07be3b416
commit
e56354661b
1 changed files with 2 additions and 1 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue