Skip to content

Fix VVL errors by changing frag_color to FP32 and dFdx/y. #108015

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

Merged
merged 1 commit into from
Jun 27, 2025

Conversation

DarioSamo
Copy link
Contributor

Should fix #108009.

Mostly a continuation of the fix applied in #107419, although this is only because of the VVL and not because we've seen any driver break with it.

I don't have a solid confirmation as to why dFdx/dFdy would fail to generate valid code when used with FP16 vectors and whether this is a glslang error or something we're just supposed to work around. It might be best to test #107773 first and confirm if the error doesn't appear.

@DarioSamo DarioSamo requested a review from a team as a code owner June 26, 2025 16:48
@dsnopek
Copy link
Contributor

dsnopek commented Jun 26, 2025

It might be best to test #107773 first and confirm if the error doesn't appear.

I just tested with that PR, but, unfortunately, the same VVL errors are there

Copy link
Contributor

@dsnopek dsnopek left a comment

Choose a reason for hiding this comment

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

This PR fixes the issue for me!

@akien-mga akien-mga added this to the 4.5 milestone Jun 26, 2025
@akien-mga akien-mga changed the title Fix VVL errors by changing frag_color to FP32 and dFdx/y. Fix VVL errors by changing frag_color to FP32 and dFdx/y. Jun 26, 2025
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Code looks good to me.

@Repiteo Repiteo merged commit cef8eb1 into godotengine:master Jun 27, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Jun 27, 2025

Thanks!

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.

Vulkan validation errors on Meta Quest related to FP16 changes
6 participants