Skip to content

Dynamically detect surface size limits on WGPU#50340

Merged
reflectronic merged 1 commit intozed-industries:mainfrom
reflectronic:fix-wpgu-limits
Feb 27, 2026
Merged

Dynamically detect surface size limits on WGPU#50340
reflectronic merged 1 commit intozed-industries:mainfrom
reflectronic:fix-wpgu-limits

Conversation

@reflectronic
Copy link
Copy Markdown
Member

Fallout from #50270

Release Notes:

  • N/A

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 27, 2026
@reflectronic reflectronic enabled auto-merge (squash) February 27, 2026 20:38
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Feb 27, 2026
@reflectronic reflectronic merged commit 47c5a31 into zed-industries:main Feb 27, 2026
22 checks passed
@ConradIrwin
Copy link
Copy Markdown
Member

/cherry-pick preview
/cherry-pick stable

@zed-zippy
Copy link
Copy Markdown
Contributor

zed-zippy bot commented Feb 27, 2026

🍒💥 Cherry-pick did not succeed
https://github.com/zed-industries/zed/actions/runs/22503459822

@zed-zippy
Copy link
Copy Markdown
Contributor

zed-zippy bot commented Feb 27, 2026

🍒💥 Cherry-pick did not succeed
https://github.com/zed-industries/zed/actions/runs/22503460639

ConradIrwin added a commit that referenced this pull request Feb 27, 2026
Fallout from #50270

Release Notes:

- N/A

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
ConradIrwin added a commit that referenced this pull request Feb 27, 2026
…to preview) (#50348)

Cherry-pick of #50340 to the preview branch (v0.226.x).

The original PR changed `wgpu::Limits::downlevel_defaults()` to include
`.using_resolution(adapter.limits()).using_alignment(adapter.limits())`
to dynamically detect surface size limits.

This cherry-pick required conflict resolution because the preview branch
has a different code structure:
- Preview uses a synchronous `create_device` function with
`smol::block_on`
- Preview doesn't have the WASM-related code paths
- Preview used `wgpu::Limits::default()` instead of
`wgpu::Limits::downlevel_defaults()`

The change was adapted to apply the fix (`downlevel_defaults()` +
`.using_resolution()` + `.using_alignment()`) to the preview branch's
code structure.

Release Notes:

- N/A

Co-authored-by: John Tur <john-tur@outlook.com>
ConradIrwin added a commit that referenced this pull request Mar 2, 2026
…to preview) (#50348)

Cherry-pick of #50340 to the preview branch (v0.226.x).

The original PR changed `wgpu::Limits::downlevel_defaults()` to include
`.using_resolution(adapter.limits()).using_alignment(adapter.limits())`
to dynamically detect surface size limits.

This cherry-pick required conflict resolution because the preview branch
has a different code structure:
- Preview uses a synchronous `create_device` function with
`smol::block_on`
- Preview doesn't have the WASM-related code paths
- Preview used `wgpu::Limits::default()` instead of
`wgpu::Limits::downlevel_defaults()`

The change was adapted to apply the fix (`downlevel_defaults()` +
`.using_resolution()` + `.using_alignment()`) to the preview branch's
code structure.

Release Notes:

- N/A

Co-authored-by: John Tur <john-tur@outlook.com>
(cherry picked from commit 97db1f6)
tahayvr pushed a commit to tahayvr/zed that referenced this pull request Mar 4, 2026
Fallout from zed-industries#50270

Release Notes:

- N/A

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
naaiyy pushed a commit to Glass-HQ/Glass that referenced this pull request Mar 10, 2026
Fallout from zed-industries#50270

Release Notes:

- N/A

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants