Explorar o código

Fix missing module shader flags for library target

Tex Riddell %!s(int64=7) %!d(string=hai) anos
pai
achega
a936c575f1
Modificáronse 1 ficheiros con 5 adicións e 6 borrados
  1. 5 6
      lib/HLSL/DxilPreparePasses.cpp

+ 5 - 6
lib/HLSL/DxilPreparePasses.cpp

@@ -330,12 +330,11 @@ public:
       // Strip parameters of entry function.
       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;
     }