[FFmpeg-devel] 回复: [PATCH] avcodec/d3d12va_decode: don't change the resource state if the referenced frame is the same as the current frame

Wu Jianhua toqsxw at outlook.com
Wed Dec 27 15:16:23 EET 2023


> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Wu, Tong1 <tong1.wu-at-intel.com at ffmpeg.org>
> To: FFmpeg development discussions and patches
> Subject: Re: [FFmpeg-devel] [PATCH] avcodec/d3d12va_decode: don't change the resource state if the referenced frame is > the same as the current frame
>
>>From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Wu
>>Jianhua
>>Sent: Tuesday, December 26, 2023 9:21 PM
>>To: FFmpeg development discussions and patches <ffmpeg-
>>devel at ffmpeg.org>
>>Subject: [FFmpeg-devel] [PATCH] avcodec/d3d12va_decode: don't change the
>>resource state if the referenced frame is the same as the current frame
>>
>>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
>
> Could you please split the function declaration(header) into 2 lines since it's a little bit long?
>
> Thx,
> Tong

Sure. Will do in the v2.

Thanks,
Jianhua


More information about the ffmpeg-devel mailing list