Vertex data gets corrupted #2515
Labels
area: correctness
We're behaving incorrectly
help required
We need community help to make this happen.
type: bug
Something isn't working
Description
It only occurs on this PC. My other PC that's running the same OS and driver but with different hardware (Ryzen 5 3600 + GTX 1650 Super) works fine.
If you add
wgpu::BufferUsages::MAP_READ
to the vertex buffer usages it stops happening.Repro steps
It's not very minimal but I was unable to reproduce it elsewhere.
https://github.com/nobbele/Oblivion
go to
src/internal.rs:52
and removewgpu::BufferUsages::MAP_READ
then run
cargo run --example draw_mesh
(you can also comment out line 11-38 in
src/examples/draw_mesh
to isolate the circle)Expected vs observed behavior
Expected: I expect it to draw a static white circle.
Observed: It draws a white circle with a bugged out vertex every 5 or so frames.
Extra materials
The videos below are running the exact same code, I just ran
cargo run --example draw_mesh
twice.https://user-images.githubusercontent.com/17962514/155887700-1cd4d187-5862-4502-902f-c8eb8ba61556.mp4
https://user-images.githubusercontent.com/17962514/155887704-e1dc3238-eebc-47c3-ac77-8651bcd9eacb.mp4
Platform
OS: Arch Linux (5.16.11-arch1-1)
WGPU Version: 0.12.0
CPU: Intel Core i5-4670K
GPU: NVIDIA GeForce GTX 780
GPU Driver: nvidia
The text was updated successfully, but these errors were encountered: