Skip to content

Commit

Permalink
[Encode] Reduce MHW CMD parser perf impact
Browse files Browse the repository at this point in the history
Reduce MHW CMD parser perf impact by
1. Remove unnessary checks.
2. Remove execution of perf-intensive code when tool is not enabled.
  • Loading branch information
walter-bai authored and intel-mediadev committed Jun 21, 2024
1 parent e3b29f1 commit bfa2f3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
auto instance = mhw::HwcmdParser::GetInstance();
if (instance && instance->ParseFieldsLayoutEn())
{
#define DO_FIELD(dw, field, value) MHW_HWCMDPARSER_PARSEFIELDLAYOUT(dw, field)
#define DO_FIELD(dw, field, value) MHW_HWCMDPARSER_PARSEFIELDLAYOUT(instance, dw, field)
#if defined(DO_FIELDS) && !defined(DISABLE_DO_FIELDS)
DO_FIELDS();
#endif // defined(DO_FIELDS) && !defined(DISABLE_DO_FIELDS)
Expand Down

0 comments on commit bfa2f3f

Please sign in to comment.