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

Typo of register -> registers crashes DXC with segfault #6599

Open
Nielsbishere opened this issue May 8, 2024 · 2 comments
Open

Typo of register -> registers crashes DXC with segfault #6599

Nielsbishere opened this issue May 8, 2024 · 2 comments
Labels
bug Bug, regression, crash
Milestone

Comments

@Nielsbishere
Copy link
Contributor

Description
The typo of Texture2D<float> _myGlobal : registers(t0, space0); instead of Texture2D<float> _myGlobal : register(t0, space0); crashes DXC internally.

Steps to Reproduce
https://godbolt.org/z/7od613jTo

#line 1 "Generated header file"
#line 1 "..StartGroup..ComputeShaderObject"
Texture2D<float> _myGlobal : registers(t0, space0);

RWTexture2D<float4> _output : register(u0, space0);

[numthreads(16, 16, 1)]
void main(int2 id : SV_DispatchThreadID) {

 int2 dims;
 _output.GetDimensions(dims.x, dims.y);

 if (any(id >= dims))
  return;

 _output[id] = float4(float2(id) / dims, 0, 1);
}

technique {
 pass {
  compute = main;
 }
}

Actual Behavior
Should give a compile error.

Environment

  • DXC version: Latest release
  • Host Operating System: N/A
@Nielsbishere Nielsbishere added bug Bug, regression, crash needs-triage Awaiting triage labels May 8, 2024
@damyanp
Copy link
Member

damyanp commented May 8, 2024

Minimal reprop: https://godbolt.org/z/a5sf1dPqG

@damyanp damyanp removed the needs-triage Awaiting triage label May 8, 2024
@damyanp damyanp modified the milestones: Dormant, Backlog May 8, 2024
@damyanp
Copy link
Member

damyanp commented May 8, 2024

Moved to backlog - looks like this is a regression introduced in 1.7.2308.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug, regression, crash
Projects
Status: Triaged
Development

No branches or pull requests

2 participants