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

GLES Wayland: properly resize on configure (#2094) #2284

Merged
merged 1 commit into from
Dec 12, 2021

Conversation

victorvde
Copy link
Contributor

Connections
Fixes #2094

Description
Resizes Wayland window every configure() instead of only when creating the window.

Testing
Tested all examples on Arch Linux with swaywm on AdapterInfo { name: "Mesa Intel(R) UHD Graphics (TGL GT2)", vendor: 32902, device: 0, device_type: IntegratedGpu, backend: Gl }
Results: hello-triangle, cube, shadow, water examples are fixed. No new errors in the examples.

Ran 'cargo test', which had similar errors both before and after, like:
[2021-12-12T16:13:23Z ERROR wgpu_hal::gles::egl] EGL 'eglMakeCurrent' code 0x3006: eglMakeCurrent
[2021-12-12T16:13:23Z ERROR wgpu_hal::gles::egl] EGL 'eglDestroyContext' code 0x3006: eglDestroyContext

@kvark kvark added the PR: needs back-porting PR with a fix that needs to land on crates label Dec 12, 2021
@kvark kvark enabled auto-merge (rebase) December 12, 2021 19:03
@kvark kvark merged commit f875e32 into gfx-rs:master Dec 12, 2021
@kvark kvark removed the PR: needs back-porting PR with a fix that needs to land on crates label Dec 18, 2021
cwfitzgerald pushed a commit that referenced this pull request Oct 25, 2023
…2294)

We currently assume that we are using raw `RWByteAddressBuffer` methods for all atomic operations (`<pointer>.Interlocked<op>(<raw_byte_offset>, …)`), which is only true when we use `var<storage, read_write>` globals. For `var<workgroup>` globals, we need `Interlocked<op>(<pointer>, …)`, using the original expression as the first argument.

Fix this by branching on the `pointer`'s address space in `Atomic` statements, and implementing the workgroup address space case with intrinsics.

Remove atomic ops from `access`, add new `atomicOps` test.

Fixes #2284
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

Successfully merging this pull request may close these issues.

GLES Wayland surface resize not working
2 participants