Skip to content

Commit 669f2af

Browse files
committed
Renamed the flag
1 parent 7a2f900 commit 669f2af

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

include/dxc/Support/HLSLOptions.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,5 +602,5 @@ def rw_decl_global_cb : Flag<["-", "/"], "decl-global-cb">, Group<hlslrewrite_Gr
602602
// Also removed: compress, decompress, /Gch (child effect), /Gpp (partial precision)
603603
// /Op - no support for preshaders.
604604

605-
def devsh_disable_hlsl_intrinsics : Flag<["-"], "devsh-disable-hlsl-intrinsics">, Group<spirv_Group>, Flags<[CoreOption, DriverOption]>,
605+
def fvk_disable_hlsl_intrinsics : Flag<["-"], "fvk-disable-hlsl-intrinsics">, Group<spirv_Group>, Flags<[CoreOption, DriverOption]>,
606606
HelpText<"Disable HLSL intrinsics">;

include/dxc/Support/SPIRVOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ enum class SpirvLayoutRule {
3838
};
3939

4040
struct SpirvCodeGenOptions {
41-
bool devshDisableHLSLIntrinsics;
41+
bool disableHLSLIntrinsics;
4242
/// Disable legalization and optimization and emit raw SPIR-V
4343
bool codeGenHighLevel;
4444
bool debugInfoFile;

lib/DxcSupport/HLSLOptions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,8 +1074,8 @@ int ReadDxcOpts(const OptTable *optionTable, unsigned flagsToInclude,
10741074

10751075
// SPIRV Change Starts
10761076
#ifdef ENABLE_SPIRV_CODEGEN
1077-
opts.SpirvOptions.devshDisableHLSLIntrinsics =
1078-
Args.hasFlag(OPT_devsh_disable_hlsl_intrinsics, OPT_INVALID, false);
1077+
opts.SpirvOptions.disableHLSLIntrinsics =
1078+
Args.hasFlag(OPT_fvk_disable_hlsl_intrinsics, OPT_INVALID, false);
10791079
opts.GenSPIRV = Args.hasFlag(OPT_spirv, OPT_INVALID, false);
10801080
opts.SpirvOptions.invertY =
10811081
Args.hasFlag(OPT_fvk_invert_y, OPT_INVALID, false);

tools/clang/tools/dxcompiler/dxcompilerobj.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ class DxcCompiler : public IDxcCompiler3,
967967
clang::EmitSpirvAction action;
968968
FrontendInputFile file(pUtf8SourceName, IK_HLSL);
969969
action.BeginSourceFile(
970-
compiler, file, opts.SpirvOptions.devshDisableHLSLIntrinsics);
970+
compiler, file, opts.SpirvOptions.disableHLSLIntrinsics);
971971
action.Execute();
972972
action.EndSourceFile();
973973
outStream.flush();

0 commit comments

Comments
 (0)