Skip to content
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

fix crash in HLSL frontend #2916

Merged
merged 2 commits into from
Apr 13, 2023
Merged

Conversation

Try
Copy link
Contributor

@Try Try commented Mar 26, 2022

fix crash, when converting HLSL return of hull shader into spirv/glsl like arrayed output.

#fixed 2914

@CLAassistant
Copy link

CLAassistant commented Mar 26, 2022

CLA assistant check
All committers have signed the CLA.

@greg-lunarg
Copy link
Contributor

I think this change is fine and we just need to fix the failing test hlsl.emptystructreturn.frag. This can be done by building glslangtests.exe and running it with --update-mode enabled. Then commit the new *.out to your branch.

@Try
Copy link
Contributor Author

Try commented Apr 3, 2022

Hi!
It seems patch requires more work: with slightly updated example, now it's crashes in HlslParseContext::flatten, when processing gl_InvocationID member of stage_input.

fix crash, when converting HLSL return of hull shader into spirv/glsl like arrayed output.

fix KhronosGroup#2914
@arcady-lunarg
Copy link
Contributor

I've rebased your PR on main and made a small change, with which the tests appear to pass and the crash no longer reproduces on your example.

@arcady-lunarg arcady-lunarg added the kokoro:run Trigger Google bot runs label Apr 7, 2023
@kokoro-team kokoro-team removed the kokoro:run Trigger Google bot runs label Apr 7, 2023
Copy link
Contributor

@greg-lunarg greg-lunarg left a comment

Choose a reason for hiding this comment

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

LGTM

@arcady-lunarg arcady-lunarg added the kokoro:run Trigger Google bot runs label Apr 13, 2023
@kokoro-team kokoro-team removed the kokoro:run Trigger Google bot runs label Apr 13, 2023
@arcady-lunarg arcady-lunarg merged commit 68f073b into KhronosGroup:main Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants