question

VuKhanhDuy-1688 avatar image
0 Votes"
VuKhanhDuy-1688 asked VuKhanhDuy-1688 commented

RESOURCE_BARRIER_INVALID_COMMAND_LIST_TYPE error with ID3D12VideoProcessCommandList::ResourceBarrier

Hi,

I received this ERROR message with ID3D12VideoProcessCommandList::ResourceBarrier call:

D3D12 ERROR: ID3D12CommandList::ResourceBarrier: D3D12_RESOURCE_STATES has invalid flags for video process command list. [ RESOURCE_MANIPULATION ERROR #537: RESOURCE_BARRIER_INVALID_COMMAND_LIST_TYPE]

Here is the calling code:

 const CD3DX12_RESOURCE_BARRIER barrier = CD3DX12_RESOURCE_BARRIER::Transition(m_videoTargetResource.Get(), D3D12_RESOURCE_STATE_COPY_SOURCE | D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE, D3D12_RESOURCE_STATE_VIDEO_PROCESS_WRITE);
 m_videoCommandList->ResourceBarrier(1, &barrier);

Which resource state is valid for video process command list? What should I look into to solve this error?

Thanks,



windows-api
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Perhaps the D3D12_RESOURCE_STATES stateBefore or stateAfter of CD3DX12_RESOURCE_BARRIER::Transition is wrong. But the ID3D12VideoProcessCommandList::ResourceBarrier document link is missing. Could you please show a minimal, reproducible sample without private information?

0 Votes 0 ·

I created "Direct3D 12 Desktop Game" sample from Visual Studio and add some stuffs to reproduce the issue, the issue happens at Game.cpp (line 94).

https://1drv.ms/u/s!As3-ZD-70389jCQZVaXB2_SJBoLx?e=zgB8vD

1 Vote 1 ·

Hello,

Any updates here? Could you repro the issue with my given sample?

0 Votes 0 ·

0 Answers