Skip to content

D3D9On12 -> UnwrapUnderlyingResource crashes on unwrapping IDirect3DTexture9 texture while created with D3DUSAGE_AUTOGENMIPMAP flag, while it unwrap successfully if texture is created without D3DUSAGE_AUTOGENMIPMAP flag.  #71

@Manjit-BeeSys

Description

@Manjit-BeeSys

Hi,

We are facing below issue. Please help.

D3D9On12 -> UnwrapUnderlyingResource crashes on unwrapping IDirect3DTexture9 texture while created with D3DUSAGE_AUTOGENMIPMAP flag, while it unwrap successfully if texture is created without D3DUSAGE_AUTOGENMIPMAP flag.

We are facing an issue of application crash with following steps :

1. We have a DX9 texture with autogenmipmap flag on is created on DX9 device using the following function:
D3DXCreateTexture(device,
Width,
Height,
D3DX_DEFAULT,
D3DUSAGE_RENDERTARGET|D3DUSAGE_AUTOGENMIPMAP,
D3DFMT_A8R8G8B8,
D3DPOOL_DEFAULT,
&OutTexture)
2. We use UnwrapUnderlyingResource() to open this texture on DX12 resource using DX9on12 device.
3. UnwrapUnderlyingResource() is crashing randomly and ID3D12CommandList::SetGraphicsRoot32BitConstant() function is shown in debug logs when DX12 debug layer is enabled.
4. Below is the call stack.
pastedImG
5. When we create DX9 texture without AutoGenMipMap flag the application does not crashes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions