mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
fix: Unify command parse for MEM_SET
Related-To: NEO-13147 Signed-off-by: Vysochyn, Illia <illia.vysochyn@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e742aa065c
commit
910816010f
@@ -7264,9 +7264,9 @@ typedef struct tagMEM_SET {
|
||||
typedef enum tagCLIENT {
|
||||
CLIENT_2D_PROCESSOR = 0x2,
|
||||
} CLIENT;
|
||||
typedef enum tagINSTRUCTIONTARGET_OPCODE {
|
||||
INSTRUCTIONTARGET_OPCODE_OPCODE = 0x5B,
|
||||
} INSTRUCTIONTARGET_OPCODE;
|
||||
typedef enum tagINSTRUCTION_TARGETOPCODE {
|
||||
INSTRUCTION_TARGETOPCODE_MEM_SET = 0x5b,
|
||||
} INSTRUCTION_TARGETOPCODE;
|
||||
inline void init() {
|
||||
memset(&TheStructure, 0, sizeof(TheStructure));
|
||||
TheStructure.Common.DwordLength = DWORD_LENGTH_EXCLUDES_DWORD_0_1;
|
||||
@@ -7274,7 +7274,7 @@ typedef struct tagMEM_SET {
|
||||
TheStructure.Common.DestinationCompressible = DESTINATION_COMPRESSIBLE_NOT_COMPRESSIBLE;
|
||||
TheStructure.Common.FillType = FILL_TYPE_LINEAR_FILL;
|
||||
TheStructure.Common.Client = CLIENT_2D_PROCESSOR;
|
||||
TheStructure.Common.InstructionTarget_Opcode = INSTRUCTIONTARGET_OPCODE::INSTRUCTIONTARGET_OPCODE_OPCODE;
|
||||
TheStructure.Common.InstructionTarget_Opcode = INSTRUCTION_TARGETOPCODE::INSTRUCTION_TARGETOPCODE_MEM_SET;
|
||||
}
|
||||
static tagMEM_SET sInit() {
|
||||
MEM_SET state;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2024 Intel Corporation
|
||||
* Copyright (C) 2024-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -14,9 +14,9 @@ template <>
|
||||
MEM_SET *genCmdCast<MEM_SET *>(void *buffer) {
|
||||
auto pCmd = reinterpret_cast<MEM_SET *>(buffer);
|
||||
|
||||
return (0x5 == pCmd->TheStructure.Common.DwordLength &&
|
||||
0x5B == pCmd->TheStructure.Common.InstructionTarget_Opcode &&
|
||||
0x2 == pCmd->TheStructure.Common.Client)
|
||||
return (MEM_SET::DWORD_LENGTH::DWORD_LENGTH_EXCLUDES_DWORD_0_1 == pCmd->TheStructure.Common.DwordLength &&
|
||||
MEM_SET::INSTRUCTION_TARGETOPCODE::INSTRUCTION_TARGETOPCODE_MEM_SET == pCmd->TheStructure.Common.InstructionTarget_Opcode &&
|
||||
MEM_SET::CLIENT::CLIENT_2D_PROCESSOR == pCmd->TheStructure.Common.Client)
|
||||
? pCmd
|
||||
: nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user