Skip to content

Fix incorrect resource state when discarding MSAA textures in D3D12.#114146

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
blueskythlikesclouds:d3d12-discard-state-fix
Jan 6, 2026
Merged

Fix incorrect resource state when discarding MSAA textures in D3D12.#114146
akien-mga merged 1 commit intogodotengine:masterfrom
blueskythlikesclouds:d3d12-discard-state-fix

Conversation

@blueskythlikesclouds
Copy link
Contributor

This is an issue with the legacy barrier implementation.

DiscardResource requires render target or depth stencil textures to be in their respective state. Resolving them was changing their state to resolve source, but it was not correcting them back later to be used in the discard operations.

@akien-mga akien-mga merged commit 4757542 into godotengine:master Jan 6, 2026
39 of 40 checks passed
@akien-mga
Copy link
Member

Thanks!

@blueskythlikesclouds blueskythlikesclouds deleted the d3d12-discard-state-fix branch January 15, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants