mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
Create shared libult_common object library
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
717b857689
commit
ca4068aafc
@@ -13,12 +13,41 @@ using GenGfxFamily = NEO::TGLLPFamily;
|
||||
#include "shared/test/common/cmd_parse/cmd_parse_base.inl"
|
||||
#include "shared/test/common/cmd_parse/cmd_parse_compute_mode.inl"
|
||||
#include "shared/test/common/cmd_parse/cmd_parse_gpgpu_walker.inl"
|
||||
#include "shared/test/common/cmd_parse/cmd_parse_l3_control.inl"
|
||||
#include "shared/test/common/cmd_parse/cmd_parse_mi_arb.inl"
|
||||
#include "shared/test/common/cmd_parse/cmd_parse_sip.inl"
|
||||
#include "shared/test/common/cmd_parse/hw_parse.h"
|
||||
#include "shared/test/common/cmd_parse/hw_parse.inl"
|
||||
|
||||
#include "cmd_parse_gen12lp.inl"
|
||||
size_t getAdditionalCommandLengthHwSpecific(void *cmd) {
|
||||
using L3_CONTROL_WITH_POST_SYNC = typename GenGfxFamily::L3_CONTROL;
|
||||
using L3_CONTROL_WITHOUT_POST_SYNC = typename GenGfxFamily::L3_CONTROL;
|
||||
|
||||
auto pCmdWithPostSync = genCmdCast<L3_CONTROL_WITH_POST_SYNC *>(cmd);
|
||||
if (pCmdWithPostSync)
|
||||
return pCmdWithPostSync->getBase().TheStructure.Common.Length + 2;
|
||||
|
||||
auto pCmdWithoutPostSync = genCmdCast<L3_CONTROL_WITHOUT_POST_SYNC *>(cmd);
|
||||
if (pCmdWithoutPostSync)
|
||||
return pCmdWithoutPostSync->getBase().TheStructure.Common.Length + 2;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char *getAdditionalCommandNameHwSpecific(void *cmd) {
|
||||
using L3_CONTROL_WITH_POST_SYNC = typename GenGfxFamily::L3_CONTROL;
|
||||
using L3_CONTROL_WITHOUT_POST_SYNC = typename GenGfxFamily::L3_CONTROL;
|
||||
|
||||
if (nullptr != genCmdCast<L3_CONTROL_WITH_POST_SYNC *>(cmd)) {
|
||||
return "L3_CONTROL(POST_SYNC)";
|
||||
}
|
||||
|
||||
if (nullptr != genCmdCast<L3_CONTROL_WITHOUT_POST_SYNC *>(cmd)) {
|
||||
return "L3_CONTROL(NO_POST_SYNC)";
|
||||
}
|
||||
|
||||
return "UNKNOWN";
|
||||
}
|
||||
|
||||
template <>
|
||||
size_t CmdParse<GenGfxFamily>::getCommandLengthHwSpecific(void *cmd) {
|
||||
|
||||
Reference in New Issue
Block a user