File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -162,15 +162,17 @@ tripleToVisibility(llvm::Triple::EnvironmentType ET) {
162162
163163static void reportIfDeniedShaderStageAccess (Module &M, dxbc::RootFlags Flags,
164164 dxbc::RootFlags Mask) {
165- if ((Flags & Mask) == Mask) {
166- SmallString<128 > Message;
167- raw_svector_ostream OS (Message);
168- OS << " Shader has root bindings but root signature uses a DENY flag to "
169- " disallow root binding access to the shader stage." ;
170- M.getContext ().diagnose (DiagnosticInfoGeneric (Message));
171- }
165+ if ((Flags & Mask) != Mask)
166+ return ;
167+
168+ SmallString<128 > Message;
169+ raw_svector_ostream OS (Message);
170+ OS << " Shader has root bindings but root signature uses a DENY flag to "
171+ " disallow root binding access to the shader stage." ;
172+ M.getContext ().diagnose (DiagnosticInfoGeneric (Message));
172173}
173174
175+
174176static void validateRootSignature (Module &M,
175177 const mcdxbc::RootSignatureDesc &RSD,
176178 dxil::ModuleMetadataInfo &MMI,
You can’t perform that action at this time.
0 commit comments