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

Buffer write issue with DX11 + IntelHD #1060

Closed
cwfitzgerald opened this issue Dec 1, 2020 · 6 comments
Closed

Buffer write issue with DX11 + IntelHD #1060

cwfitzgerald opened this issue Dec 1, 2020 · 6 comments
Labels
external: driver-bug A driver is causing the bug, though we may still want to work around it type: bug Something isn't working

Comments

@cwfitzgerald
Copy link
Member

Bug originally filed as gfx-rs/wgpu-rs#585 against wgpu-rs by @qthree, resubmitting for ease of tracking. The referenced branch was https://github.com/qthree/wgpu-rs/tree/double-rect. The body of the issue was left unchanged.

Original Issue

Demonstration of buffer write issue with DX11 + Intel HD. Not intended for merging.
Frame rendering starts before the end of uniform buffer update.
That results in a glitches.
If you see only one rectangle then you're OK.
RUIqXmDZge
main.rs has constants at the top for tweaking:

SUBMITS - how many times to redraw using different render pass, command buffer and separate submit
DRAWCALLS - how many times to call draw inside one render pass
AFTER_SUBMIT_DELAY_MS - sleeping between different submits.

I have this issue with:

SUBMITS = 10
DRAWCALLS = 1
AFTER_SUBMIT_DELAY_MS = 10

or

SUBMITS = 1
DRAWCALLS = 1000
AFTER_SUBMIT_DELAY_MS = 0

This demonstration is done using modified hello-triangle example.

@cwfitzgerald cwfitzgerald added type: bug Something isn't working external: driver-bug A driver is causing the bug, though we may still want to work around it labels Dec 1, 2020
@kvark
Copy link
Member

kvark commented Dec 1, 2020

Needs to be registered in https://github.com/gfx-rs/wgpu/wiki/Known-Driver-Issues

@cwfitzgerald
Copy link
Member Author

Added.

@qthree
Copy link
Contributor

qthree commented Jul 20, 2021

I'm not sure if it's the same issue, or something else, but it was reported that HD5570 has issue that looks the same. Though it's with old wgpu version from last autumn. I'll update this example to the last wgpu release and send it to person who has issue. Here's his adapter info:

AdapterInfo {
    name: "AMD Radeon HD 5570",
    vendor: 4098,
    device: 26841,
    device_type: DiscreteGpu,
    backend: Dx11,
}

@cwfitzgerald
Copy link
Member Author

Funky. Note DX11 is still not supported on master.

@qthree
Copy link
Contributor

qthree commented Jul 20, 2021

Nope, not the same issue, he has just static image without running rectangle. But I blame ancient gpu and buggy drivers.
image

@cwfitzgerald
Copy link
Member Author

Closing this as this was on gfx-hal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external: driver-bug A driver is causing the bug, though we may still want to work around it type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants