X Tutup
Skip to content

Fix DXIL view instancing workaround not getting applied correctly.#114645

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
blueskythlikesclouds:fix-dxil-view-instancing-workaround
Jan 7, 2026
Merged

Fix DXIL view instancing workaround not getting applied correctly.#114645
akien-mga merged 1 commit intogodotengine:masterfrom
blueskythlikesclouds:fix-dxil-view-instancing-workaround

Conversation

@blueskythlikesclouds
Copy link
Contributor

Fixes #114403.

Regression introduced by the Mesa version upgrade. It seems dxil_spirv_nir_link now removes dead variables, which breaks the view instancing workaround, since it deletes the gl_FragCoord variable due to being unused in the shader code. We can instead add the variable after the optimization to ensure it stays.

@blueskythlikesclouds blueskythlikesclouds requested a review from a team as a code owner January 6, 2026 09:42
@akien-mga akien-mga requested a review from a team January 6, 2026 09:59
@akien-mga akien-mga added this to the 4.6 milestone Jan 6, 2026
@clayjohn clayjohn requested a review from BastiaanOlij January 6, 2026 18:22
Copy link
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

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

Makes sense to me. Would be good to have @BastiaanOlij test it out and confirm that the fix works for him

Copy link
Contributor

@BastiaanOlij BastiaanOlij left a comment

Choose a reason for hiding this comment

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

I can confirm this fixes the issue for stereo rendering:

Image

Fix wise this goes over my head, I get why its broken but I defer to you and Clay on if this is the correct way to fix it.

It does seem to me that we should report this upstream and get it fixed, we can't be the only ones dealing with this..

@akien-mga akien-mga merged commit 2b8be90 into godotengine:master Jan 7, 2026
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@blueskythlikesclouds blueskythlikesclouds deleted the fix-dxil-view-instancing-workaround branch January 15, 2026 09:16
rivie13 pushed a commit to rivie13/Phoenix-Agentic-Engine that referenced this pull request Feb 16, 2026
…xil-view-instancing-workaround

Fix DXIL view instancing workaround not getting applied correctly.
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.

D3D12 in XR - Shaders with cull_disabled or cull_front cause pipeline errors and don't render

4 participants

X Tutup