mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-20 13:11:34 +08:00

Change-Id: I64bb9d8be018ea4da6cb006439c58b1d52100e06 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
17 lines
491 B
C++
17 lines
491 B
C++
/*
|
|
* Copyright (C) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
template <>
|
|
MI_ARB_CHECK *genCmdCast<MI_ARB_CHECK *>(void *buffer) {
|
|
auto pCmd = reinterpret_cast<MI_ARB_CHECK *>(buffer);
|
|
|
|
return MI_ARB_CHECK::MI_INSTRUCTION_TYPE_MI_INSTRUCTION == pCmd->TheStructure.Common.MiInstructionType &&
|
|
MI_ARB_CHECK::MI_INSTRUCTION_OPCODE_MI_ARB_CHECK == pCmd->TheStructure.Common.MiInstructionOpcode
|
|
? pCmd
|
|
: nullptr;
|
|
}
|