Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline mode for dx12? #77

Open
tgjones opened this issue Dec 16, 2020 · 5 comments
Open

Offline mode for dx12? #77

tgjones opened this issue Dec 16, 2020 · 5 comments

Comments

@tgjones
Copy link

tgjones commented Dec 16, 2020

I'd really like to support RGA's dx12 mode in Shader Playground - but as far as I can tell, dx12 mode (unlike dx11 mode) requires a live driver, which is certainly not present on the VMs that Shader Playground is hosted on.

Are there any plans to add an offline mode for dx12, analogous to the offline mode for Vulkan?

@AmitBM
Copy link
Contributor

AmitBM commented Dec 17, 2020

Hi tgjones,

We definitely want to enable DX12 shader compilation through RGA in Shader Playground. Let us see what we can do about it.

@tgjones
Copy link
Author

tgjones commented Dec 18, 2020

Hi @AmitBM,

Thank you! Just as a concrete starting point, here's the output I get at the moment for http://shader-playground.timjones.io/ea1e9a2436ead1d95c7117025054aa1e:


Building for gfx1010...
Error: failed to find a DX12 display adapter.
Error: driver initialization failed.
Error: failed to invoke the DX12 backend.
Error: cannot retrieve the list of targets supported by the driver.
failed.

@sebbbi
Copy link

sebbbi commented Jan 7, 2021

As a shader playground user, it would be great to be able to use RGAs DX12 mode in shader playground. Would allow me to validate optimal codegen on new Navi GPUs using the newest API features.

@AmitBM
Copy link
Contributor

AmitBM commented Jan 8, 2021

Hi Sebastian,

Thanks for emphasizing the importance of the feature - we are looking into this.

@AmitBM
Copy link
Contributor

AmitBM commented Jan 20, 2022

Hi tgjones, sebbbi,

RGA 2.6 (released today) introduces a new --offline command line switch in its DXR and DX12 modes, which allows you to use the tool on machines that do not have an installed AMD driver or hardware. If --offline is specified, the tool will use the AMD DXR/DX12 driver (amdxc64.dll) which it ships with, instead of looking for an installed driver. You can also plug & play a specific build of AMD's DXR/DX12 driver to be used by the tool using the --amdxc command line switch (assuming that the provided driver build is compatible with the tool).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants