This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 7d14defcc1b56a53f35dc78072844daaf50d58ea
Author:     softworkz <[email protected]>
AuthorDate: Wed Jul 29 04:19:24 2026 +0200
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Tue Sep 22 21:30:07 2026 +0000

    avcodec/dxva2: Add shader-resource bind flag for D3D11 decoder frame pools
    
    Some drivers, specifically AMD, require the D3D11_BIND_SHADER_RESOURCE
    flag to be set for processing and mapping to other contexts.
    The flag is considered harmless for almost all use cases and enabled by
    default in D3D12.
    
    See discussion here: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24046
    
    Signed-off-by: softworkz <[email protected]>
---
 libavcodec/dxva2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c
index 4fbb9c5be6..5817a0e7d7 100644
--- a/libavcodec/dxva2.c
+++ b/libavcodec/dxva2.c
@@ -685,7 +685,7 @@ int ff_dxva2_common_frame_params(AVCodecContext *avctx,
     if (frames_ctx->format == AV_PIX_FMT_D3D11) {
         AVD3D11VAFramesContext *frames_hwctx = frames_ctx->hwctx;
 
-        frames_hwctx->BindFlags |= D3D11_BIND_DECODER;
+        frames_hwctx->BindFlags |= D3D11_BIND_DECODER | 
D3D11_BIND_SHADER_RESOURCE;
     }
 #endif
 

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to