linebender / vello

A GPU compute-centric 2D renderer.
http://linebender.org/vello/
Apache License 2.0
2.3k stars 131 forks source link

Lots of wgpu error messages #565

Open Mammux opened 5 months ago

Mammux commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

https://github.com/gfx-rs/wgpu/issues/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 commented 5 months ago

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

Mammux commented 5 months ago

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

DasLixou commented 5 months ago

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