@@ -247,17 +247,6 @@ std::error_code vc::translateBuild(const TC::STB_TranslateInputArgs *InputArgs,
247
247
return true ;
248
248
};
249
249
250
- std::string AuxApiOptions;
251
- std::string AuxInternalOptions;
252
- if (getAuxiliaryOptions (IGC_GET_REGKEYSTRING (VCApiOptions),
253
- ApiOptions, AuxApiOptions)) {
254
- ApiOptions = { AuxApiOptions.data (), AuxApiOptions.size () };
255
- }
256
- if (getAuxiliaryOptions (IGC_GET_REGKEYSTRING (VCInternalOptions),
257
- InternalOptions, AuxInternalOptions)) {
258
- InternalOptions = { AuxInternalOptions.data (), AuxInternalOptions.size () };
259
- }
260
-
261
250
llvm::ArrayRef<char > Input{InputArgs->pInput , InputArgs->InputSize };
262
251
263
252
std::unique_ptr<vc::ShaderDumper> Dumper;
@@ -280,6 +269,17 @@ std::error_code vc::translateBuild(const TC::STB_TranslateInputArgs *InputArgs,
280
269
InternalOptions = InputArgs->pInput + NewPathPayload.VcOptsOffset ;
281
270
Input = Input.take_front (static_cast <size_t >(NewPathPayload.IrSize ));
282
271
}
272
+ std::string AuxApiOptions;
273
+ std::string AuxInternalOptions;
274
+ if (getAuxiliaryOptions (IGC_GET_REGKEYSTRING (VCApiOptions),
275
+ ApiOptions, AuxApiOptions)) {
276
+ ApiOptions = { AuxApiOptions.data (), AuxApiOptions.size () };
277
+ }
278
+ if (getAuxiliaryOptions (IGC_GET_REGKEYSTRING (VCInternalOptions),
279
+ InternalOptions, AuxInternalOptions)) {
280
+ InternalOptions = { AuxInternalOptions.data (), AuxInternalOptions.size () };
281
+ }
282
+
283
283
284
284
if (IGC_IS_FLAG_ENABLED (ShaderDumpEnable)) {
285
285
Dumper->dumpText (ApiOptions, " options.txt" );
0 commit comments