Skip to content

[SPIR-V] Constantly running into the "Unsupported builtin type evaluation at compile-time" assert #7952

@devshgraphicsprogramming

Description

Description

After #7786 by @GinShio got merged as a fix for #7049 we are constantly hitting this assert

assert(false && "Unsupported builtin type evaluation at compile-time");

Repro

Not possible on Godbolt because you don't have a "with assertions" trunk DXC version
https://godbolt.org/z/jn6navhW5

Actual Behaviour

Now this block of code doesn't run because the switch just assert and return false

  constVal->setRValue(true);
  registerVariableForDecl(varDecl, constVal);

Environment

  • DXC version: commit b9af1ec
  • Host Operating System: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, regression, crashneeds-triageAwaiting triagespirvWork related to SPIR-V

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions