浏览代码

Fix missing module shader flags for library target

Tex Riddell 7 年之前
父节点
当前提交
a936c575f1
共有 1 个文件被更改,包括 5 次插入6 次删除
  1. 5 6
      lib/HLSL/DxilPreparePasses.cpp

+ 5 - 6
lib/HLSL/DxilPreparePasses.cpp

@@ -330,12 +330,11 @@ public:
       // Strip parameters of entry function.
       // Strip parameters of entry function.
       StripEntryParameters(M, DM, IsLib);
       StripEntryParameters(M, DM, IsLib);
 
 
-      // Skip shader flag for library.
-      if (!IsLib) {
-        DM.CollectShaderFlagsForModule(); // Update flags to reflect any changes.
-                                 // Update Validator Version
-        DM.UpgradeToMinValidatorVersion();
-      }
+      // Update flags to reflect any changes.
+      DM.CollectShaderFlagsForModule();
+
+      // Update Validator Version
+      DM.UpgradeToMinValidatorVersion();
 
 
       return true;
       return true;
     }
     }