Skip to content

Only save root signature for entry function. - #86

Merged
Xiang Li (python3kgae) merged 2 commits into
microsoft:dxil-v1.0from
python3kgae:fn_root_sig
Feb 15, 2017
Merged

Xiang Li (python3kgae) merged 2 commits into
microsoft:dxil-v1.0from
python3kgae:fn_root_sig

Conversation

@python3kgae

Copy link
Copy Markdown
Contributor

No description provided.

@msftclas

Hi Xiang Li (@python3kgae), I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!


It looks like you're a Microsoft contributor (Xiang Li). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

Comment thread tools/clang/lib/CodeGen/CGHLSLMS.cpp Outdated
}
else {
DXASSERT(CGM.getLangOpts().RootSigMinor == 1,
"else EmitHLSLRootSignature needs to be updated");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We are not in EmitHLSLRootSignature here.

Comment thread tools/clang/lib/CodeGen/CGHLSLMS.cpp Outdated
@@ -5193,17 +5205,8 @@ void CGMSHLSLRuntime::EmitHLSLRootSignature(CodeGenFunction &CGF,

DXASSERT(CGF.getLangOpts().RootSigMajor == 1,
"else EmitHLSLRootSignature needs to be updated");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we move this DXASSERT to the constructor along with the checks on RootSigMinor to keep these together?

Comment thread tools/clang/lib/CodeGen/CGHLSLMS.cpp Outdated
pModule->GetHLModule().GetRootSignature().Assign(D, pSignature);
} else {
// Only save root signature for entry function.
if (Fn == EntryFunc)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could we avoid parsing root signatures that are not on the entry function, rather than parsing, then throwing them away?

@python3kgae
Xiang Li (python3kgae) merged commit 379e1f3 into microsoft:dxil-v1.0 Feb 15, 2017
@python3kgae
Xiang Li (python3kgae) deleted the fn_root_sig branch February 15, 2017 04:13
Gregory Roth (pow2clk) pushed a commit to pow2clk/DirectXShaderCompiler that referenced this pull request Jan 2, 2024
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.

3 participants