AGS_SDK icon indicating copy to clipboard operation
AGS_SDK copied to clipboard

d3d12 validation warning

Open zhaijialong opened this issue 2 years ago • 3 comments

There is a warning reported when calling agsDriverExtensionsDX12_CreateDevice

D3D12 WARNING: ID3D12Device::CreateCommittedResource: Ignoring InitialState D3D12_RESOURCE_STATE_GENERIC_READ. Buffers are effectively created in state D3D12_RESOURCE_STATE_COMMON. [ STATE_CREATION WARNING #1328: CREATERESOURCE_STATE_IGNORED]

zhaijialong avatar Jan 02 '22 14:01 zhaijialong

Thanks for reporting. I am not seeing this in my test samples. Does this still happen in an "empty" app that just creates the AGS device?

Would it be possible to provide a repro case please?

gareththomasamd avatar Jan 11 '22 12:01 gareththomasamd

Hi, @gareththomasamd

This warning message is coming from the latest agility sdk, so it may not exist in your D3D12 runtime if you are not using latest agility sdk.

Its message id in d3d12sdklayers.h is D3D12_MESSAGE_ID_CREATERESOURCE_STATE_IGNORED = 1328.

zhaijialong avatar Jan 12 '22 09:01 zhaijialong

Ok, repro'ed it. We'll look into it now. Thanks!

gareththomasamd avatar Jan 12 '22 10:01 gareththomasamd