浏览代码

Strip reflection from DXIL part when /Qstrip_reflect

- hide temporary /Qstrip_reflect_from_dxil option (it will always strip
  reflection from DXIL in the future)
Tex Riddell 6 年之前
父节点
当前提交
ed53d1e5b0
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      include/dxc/Support/HLSLOptions.td
  2. 1 1
      tools/clang/tools/dxcompiler/dxcompilerobj.cpp

+ 1 - 1
include/dxc/Support/HLSLOptions.td

@@ -355,7 +355,7 @@ def Qstrip_reflect : Flag<["-", "/"], "Qstrip_reflect">, Flags<[CoreOption, Driv
   HelpText<"Strip reflection data from shader bytecode  (must be used with /Fo <file>)">;
 def Qstrip_reflect_from_dxil : Flag<["-", "/"], "Qstrip_reflect_from_dxil">, Flags<[CoreOption]>, Group<hlslutil_Group>,
   HelpText<"Strip reflection data from shader bytecode  (must be used with /Fo <file>)">;
-def Qstrip_debug : Flag<["-", "/"], "Qstrip_debug">, Flags<[CoreOption, DriverOption]>, Group<hlslutil_Group>,
+def Qstrip_debug : Flag<["-", "/"], "Qstrip_debug">, Flags<[CoreOption, DriverOption, HelpHidden]>, Group<hlslutil_Group>,
   HelpText<"Strip debug information from 4_0+ shader bytecode  (must be used with /Fo <file>)">;
 def Qembed_debug : Flag<["-", "/"], "Qembed_debug">, Flags<[CoreOption]>, Group<hlslutil_Group>,
   HelpText<"Embed PDB in shader container (must be used with /Zi)">;

+ 1 - 1
tools/clang/tools/dxcompiler/dxcompilerobj.cpp

@@ -729,7 +729,7 @@ public:
           // Implies name part
           SerializeFlags |= SerializeDxilFlags::IncludeDebugNamePart;
         }
-        if (opts.StripReflectionFromDxil) {
+        if (opts.StripReflection || opts.StripReflectionFromDxil) {
           SerializeFlags |= SerializeDxilFlags::StripReflectionFromDxilPart;
         }
         if (!opts.StripReflection) {