Skip to content

fix(d12): fix startup crash for shader models 6.8 and 6.9#9083

Merged
ErichDonGubler merged 1 commit intogfx-rs:trunkfrom
erichdongubler-mozilla:shader-model-6.8-and-6.9-no-crashie-plz
Feb 21, 2026
Merged

fix(d12): fix startup crash for shader models 6.8 and 6.9#9083
ErichDonGubler merged 1 commit intogfx-rs:trunkfrom
erichdongubler-mozilla:shader-model-6.8-and-6.9-no-crashie-plz

Conversation

@ErichDonGubler
Copy link
Copy Markdown
Member

@ErichDonGubler ErichDonGubler commented Feb 20, 2026

Connections

Description

Support was partially added for shader model 6.8, but the CHANGELOG and logic for actually initializing DX12 with were incomplete. This incompleteness caused crashes (😬 ack!). Finish the work of initializing DX12 devices that have this shader model, and add a CHANGELOG entry.

Testing

Builds are fixed in Firefox. I'm not sure how to prevent this going forward (and I think we need to figure this out so this doesn't bite us again; thoughts, @inner-daemons?), but I want to land this ASAP so Firefox isn't blocked from consuming new versions of wgpu.

Squash or Rebase?

Squash please!

Checklist

  • If this contains user-facing changes, add a CHANGELOG.md entry.

@ErichDonGubler ErichDonGubler added type: bug Something isn't working backend: dx12 Issues with DX12 or DXGI labels Feb 20, 2026
@ErichDonGubler ErichDonGubler changed the title fix(d12): fix startup crash for shader models 6.8 and 6.9 fix(d12): fix startup crash for shader model 6.8, add 6.9 Feb 20, 2026
@ErichDonGubler ErichDonGubler force-pushed the shader-model-6.8-and-6.9-no-crashie-plz branch from 7ef8d52 to 72e946c Compare February 20, 2026 18:57
@inner-daemons
Copy link
Copy Markdown
Collaborator

Oh shit, sorry

Copy link
Copy Markdown
Collaborator

@inner-daemons inner-daemons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would most likely fix the crash, but I don't think we need to add support for new shader models, even if we do, that might not belong in this critical bug-fix PR.

@ErichDonGubler ErichDonGubler force-pushed the shader-model-6.8-and-6.9-no-crashie-plz branch 3 times, most recently from 9b6d4fc to 553c299 Compare February 20, 2026 21:46
@ErichDonGubler ErichDonGubler changed the title fix(d12): fix startup crash for shader model 6.8, add 6.9 fix(d12): fix startup crash for shader models 6.8 and 6.9 Feb 20, 2026
Copy link
Copy Markdown
Collaborator

@inner-daemons inner-daemons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One tiny nit here, but it might not be right to fix for readability. Otherwise LGTM (lets get this merged)

Copy link
Copy Markdown
Member

@jimblandy jimblandy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@ErichDonGubler ErichDonGubler force-pushed the shader-model-6.8-and-6.9-no-crashie-plz branch from 553c299 to 0c8a96c Compare February 21, 2026 04:15
@ErichDonGubler ErichDonGubler enabled auto-merge (squash) February 21, 2026 04:17
@ErichDonGubler ErichDonGubler merged commit 7705c84 into gfx-rs:trunk Feb 21, 2026
58 checks passed
@ErichDonGubler ErichDonGubler deleted the shader-model-6.8-and-6.9-no-crashie-plz branch February 21, 2026 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend: dx12 Issues with DX12 or DXGI type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants