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

Lots of wgpu error messages #565

Open
Mammux opened this issue May 3, 2024 · 5 comments
Open

Lots of wgpu error messages #565

Mammux opened this issue May 3, 2024 · 5 comments

Comments

@Mammux
Copy link

Mammux commented May 3, 2024

The lion renders in with_winit, but I get tons of these error messages to stderr:

[2024-05-03T17:20:47Z ERROR wgpu_hal::auxil::dxgi::exception] ID3D12CommandQueue::ExecuteCommandLists: Using IDXGISwapChain::Present on Command List (0x00000277AB418CD0:'Internal DXGI CommandList'): Resource state (0x4: D3D12_RESOURCE_STATE_RENDER_TARGET) of resource (0x00000277AB92CDE0:'Unnamed ID3D12Resource Object') (subresource: 0) is invalid for use as a PRESENT_SOURCE.  Expected State Bits (all): 0x0: D3D12_RESOURCE_STATE_[COMMON|PRESENT], Actual State: 0x4: D3D12_RESOURCE_STATE_RENDER_TARGET, Missing State: 0x0: D3D12_RESOURCE_STATE_[COMMON|PRESENT]. [ EXECUTION ERROR #538: INVALID_SUBRESOURCE_STATE]

Any ideas?

@DasLixou
Copy link
Collaborator

DasLixou commented May 3, 2024

I think it's the same problem as in #449
It is a problem with the dx driver on amd gpus and there's a tracking issue for that on wgpu

@DasLixou
Copy link
Collaborator

DasLixou commented May 3, 2024

gfx-rs/wgpu#4247
This is the issue.
My current solution is just to put $env:WGPU_BACKEND="vk"; before cargo run, but there I also had problems because the newest amd driver for me also completely broke Vulkan and I havent got any feedback from my bug report, so.. yeah..

@DasLixou
Copy link
Collaborator

DasLixou commented May 3, 2024

Also, please use the backticks (```) before and after the console output, makes it easier to read, especially on mobile

@Mammux
Copy link
Author

Mammux commented May 4, 2024

Thanks, the suggestion with WGPU_BACKEND="vk" worked, and you seem to be right that it's a duplicate.

@DasLixou
Copy link
Collaborator

DasLixou commented May 4, 2024

Not a duplicate, the other one was just a discovery. This one could be let open for this problem.

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

2 participants