* [FFmpeg-devel] [PATCH v2] avcodec/d3d12va_decode: don't change the resource state if the referenced frame is the same as the current frame
[not found] <OSZP286MB2173A3A1ED2CCC7460FD7C98CA9FA@OSZP286MB2173.JPNP286.PROD.OUTLOOK.COM>
@ 2023-12-27 13:44 ` Wu Jianhua
2023-12-28 2:35 ` Wu, Tong1
0 siblings, 1 reply; 3+ messages in thread
From: Wu Jianhua @ 2023-12-27 13:44 UTC (permalink / raw)
To: FFmpeg development discussions and patches
[-- Attachment #1: Type: text/plain, Size: 894 bytes --]
This commit removes the follow warning and error:
D3D12 WARNING: ID3D12CommandList::ResourceBarrier: Called on the same subresource(s) of
Resource(0x000002236E0E00D0:'Unnamed ID3D12Resource Object') in separate Barrier Descs
which is inefficient and likely unintentional. Desc[0] and Desc[1] on (subresource :
4294967295). [RESOURCE_MANIPULATION WARNING #1008: RESOURCE_BARRIER_DUPLICATE_SUBRESOURCE_TRANSITIONS]
D3D12 ERROR: ID3D12CommandList::ResourceBarrier: Before state (0x0: D3D12_RESOURCE_STATE_[COMMON|PRESENT])
of resource (0x000002236E0E00D0:'Unnamed ID3D12Resource Object') (subresource: 0) specified
by transition barrier does not match with the state (0x20000: D3D12_RESOURCE_STATE_VIDEO_DECODE_WRITE)
specified in the previous call to ResourceBarrier [RESOURCE_MANIPULATION ERROR #527:
RESOURCE_BARRIER_BEFORE_AFTER_MISMATCH]
Patch attached
[-- Attachment #2: 0001-avcodec-d3d12va_decode-don-t-change-the-resource-sta.patch --]
[-- Type: application/octet-stream, Size: 3905 bytes --]
[-- Attachment #3: Type: text/plain, Size: 251 bytes --]
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [FFmpeg-devel] [PATCH v2] avcodec/d3d12va_decode: don't change the resource state if the referenced frame is the same as the current frame
2023-12-27 13:44 ` [FFmpeg-devel] [PATCH v2] avcodec/d3d12va_decode: don't change the resource state if the referenced frame is the same as the current frame Wu Jianhua
@ 2023-12-28 2:35 ` Wu, Tong1
2024-01-05 3:56 ` Xiang, Haihao
0 siblings, 1 reply; 3+ messages in thread
From: Wu, Tong1 @ 2023-12-28 2:35 UTC (permalink / raw)
To: FFmpeg development discussions and patches
>From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of Wu
>Jianhua
>Sent: Wednesday, December 27, 2023 9:44 PM
>To: FFmpeg development discussions and patches <ffmpeg-
>devel@ffmpeg.org>
>Subject: [FFmpeg-devel] [PATCH v2] avcodec/d3d12va_decode: don't change
>the resource state if the referenced frame is the same as the current frame
>
>This commit removes the follow warning and error:
>
> D3D12 WARNING: ID3D12CommandList::ResourceBarrier: Called on the
>same subresource(s) of
> Resource(0x000002236E0E00D0:'Unnamed ID3D12Resource Object') in
>separate Barrier Descs
> which is inefficient and likely unintentional. Desc[0] and Desc[1] on
>(subresource :
> 4294967295). [RESOURCE_MANIPULATION WARNING #1008:
>RESOURCE_BARRIER_DUPLICATE_SUBRESOURCE_TRANSITIONS]
>
> D3D12 ERROR: ID3D12CommandList::ResourceBarrier: Before state (0x0:
>D3D12_RESOURCE_STATE_[COMMON|PRESENT])
> of resource (0x000002236E0E00D0:'Unnamed ID3D12Resource Object')
>(subresource: 0) specified
> by transition barrier does not match with the state (0x20000:
>D3D12_RESOURCE_STATE_VIDEO_DECODE_WRITE)
> specified in the previous call to ResourceBarrier [RESOURCE_MANIPULATION
>ERROR #527:
> RESOURCE_BARRIER_BEFORE_AFTER_MISMATCH]
>
>Patch attached
Tested. It worked for me. Thx.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [FFmpeg-devel] [PATCH v2] avcodec/d3d12va_decode: don't change the resource state if the referenced frame is the same as the current frame
2023-12-28 2:35 ` Wu, Tong1
@ 2024-01-05 3:56 ` Xiang, Haihao
0 siblings, 0 replies; 3+ messages in thread
From: Xiang, Haihao @ 2024-01-05 3:56 UTC (permalink / raw)
To: ffmpeg-devel
On Do, 2023-12-28 at 02:35 +0000, Wu, Tong1 wrote:
> > From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of Wu
> > Jianhua
> > Sent: Wednesday, December 27, 2023 9:44 PM
> > To: FFmpeg development discussions and patches <ffmpeg-
> > devel@ffmpeg.org>
> > Subject: [FFmpeg-devel] [PATCH v2] avcodec/d3d12va_decode: don't change
> > the resource state if the referenced frame is the same as the current frame
> >
> > This commit removes the follow warning and error:
> >
> > D3D12 WARNING: ID3D12CommandList::ResourceBarrier: Called on the
> > same subresource(s) of
> > Resource(0x000002236E0E00D0:'Unnamed ID3D12Resource Object') in
> > separate Barrier Descs
> > which is inefficient and likely unintentional. Desc[0] and Desc[1] on
> > (subresource :
> > 4294967295). [RESOURCE_MANIPULATION WARNING #1008:
> > RESOURCE_BARRIER_DUPLICATE_SUBRESOURCE_TRANSITIONS]
> >
> > D3D12 ERROR: ID3D12CommandList::ResourceBarrier: Before state (0x0:
> > D3D12_RESOURCE_STATE_[COMMON|PRESENT])
> > of resource (0x000002236E0E00D0:'Unnamed ID3D12Resource Object')
> > (subresource: 0) specified
> > by transition barrier does not match with the state (0x20000:
> > D3D12_RESOURCE_STATE_VIDEO_DECODE_WRITE)
> > specified in the previous call to ResourceBarrier [RESOURCE_MANIPULATION
> > ERROR #527:
> > RESOURCE_BARRIER_BEFORE_AFTER_MISMATCH]
> >
> > Patch attached
>
> Tested. It worked for me. Thx.
Applied,
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-05 3:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <OSZP286MB2173A3A1ED2CCC7460FD7C98CA9FA@OSZP286MB2173.JPNP286.PROD.OUTLOOK.COM>
2023-12-27 13:44 ` [FFmpeg-devel] [PATCH v2] avcodec/d3d12va_decode: don't change the resource state if the referenced frame is the same as the current frame Wu Jianhua
2023-12-28 2:35 ` Wu, Tong1
2024-01-05 3:56 ` Xiang, Haihao
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git