Skip to content

GPU : host_supports_target_device ends up creating a device #7510

Open
@slomp

Description

@slomp

When host_supports_target_device gets called on a GPU target, it ends up creating a device and running a "check" with some data upload and copy.

Would it be possible to do query a device runtime in a different way that would not entail creating a device?

The reason I am asking is because the d3d12 debug layer is kind of a total wreck when it comes to creating devices:

This puts us on a precarious situation: if the non-debug d3d12 runtime module is used first, followed by a use of the -debug module, D3D12CreateDevice in the -debug module will fail with DXGI_ERROR_DEVICE_RESET because a device for the same adapter is being created again, but this time it is after EnableDebugLayer() has been called.

Tutorial 12, for example, calls host_supports_target_device() to check that the host supports the d3d12 target, and then may go ahead and create a -debug runtime later to actually run the tutorial.

AFAIK, there's no way around it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionFor talking about potential improvements & changes.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions