mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-01 04:23:00 +08:00
fix: Remove INLINE_DATA structure
Related-To: NEO-12706 Signed-off-by: Illia Vysochyn <illia.vysochyn@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
dfc863c7c1
commit
f062194669
@@ -5494,11 +5494,6 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA {
|
||||
} INTERFACE_DESCRIPTOR_DATA;
|
||||
STATIC_ASSERT(32 == sizeof(INTERFACE_DESCRIPTOR_DATA));
|
||||
|
||||
typedef struct tagINLINE_DATA {
|
||||
uint32_t RawData[8];
|
||||
} INLINE_DATA;
|
||||
STATIC_ASSERT(32 == sizeof(INLINE_DATA));
|
||||
|
||||
typedef struct tagCOMPUTE_WALKER {
|
||||
union tagTheStructure {
|
||||
struct tagCommon {
|
||||
|
||||
@@ -5427,11 +5427,6 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA {
|
||||
} INTERFACE_DESCRIPTOR_DATA;
|
||||
STATIC_ASSERT(32 == sizeof(INTERFACE_DESCRIPTOR_DATA));
|
||||
|
||||
typedef struct tagINLINE_DATA {
|
||||
uint32_t RawData[8];
|
||||
} INLINE_DATA;
|
||||
STATIC_ASSERT(32 == sizeof(INLINE_DATA));
|
||||
|
||||
typedef struct tagCOMPUTE_WALKER {
|
||||
union tagTheStructure {
|
||||
struct tagCommon {
|
||||
@@ -5505,7 +5500,7 @@ typedef struct tagCOMPUTE_WALKER {
|
||||
// DWORD 26
|
||||
POSTSYNC_DATA PostSync;
|
||||
// DWORD 31
|
||||
INLINE_DATA InlineData;
|
||||
uint32_t InlineData[8];
|
||||
} Common;
|
||||
uint32_t RawData[39];
|
||||
} TheStructure;
|
||||
|
||||
@@ -5192,11 +5192,6 @@ typedef struct tagINTERFACE_DESCRIPTOR_DATA {
|
||||
} INTERFACE_DESCRIPTOR_DATA;
|
||||
STATIC_ASSERT(32 == sizeof(INTERFACE_DESCRIPTOR_DATA));
|
||||
|
||||
typedef struct tagINLINE_DATA {
|
||||
uint32_t RawData[8];
|
||||
} INLINE_DATA;
|
||||
STATIC_ASSERT(32 == sizeof(INLINE_DATA));
|
||||
|
||||
typedef struct tagCOMPUTE_WALKER {
|
||||
union tagTheStructure {
|
||||
struct tagCommon {
|
||||
@@ -5271,7 +5266,7 @@ typedef struct tagCOMPUTE_WALKER {
|
||||
// DWORD 26
|
||||
POSTSYNC_DATA PostSync;
|
||||
// DWORD 31
|
||||
INLINE_DATA InlineData;
|
||||
uint32_t InlineData[8];
|
||||
} Common;
|
||||
uint32_t RawData[31];
|
||||
} TheStructure;
|
||||
|
||||
@@ -573,7 +573,6 @@ HWTEST2_F(CommandEncodeStatesTest, givenDispatchInterfaceWhenNumRequiredGrfIsNot
|
||||
|
||||
HWCMDTEST_F(IGFX_XE_HP_CORE, CommandEncodeStatesTest, givenInlineDataRequiredWhenEncodingWalkerThenEmitInlineParameterIsSet) {
|
||||
using DefaultWalkerType = typename FamilyType::DefaultWalkerType;
|
||||
using InlineData = typename FamilyType::INLINE_DATA;
|
||||
uint32_t dims[] = {1, 1, 1};
|
||||
std::unique_ptr<MockDispatchKernelEncoder> dispatchInterface(new MockDispatchKernelEncoder());
|
||||
|
||||
@@ -591,7 +590,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, CommandEncodeStatesTest, givenInlineDataRequiredWhe
|
||||
auto cmd = genCmdCast<DefaultWalkerType *>(*itor);
|
||||
EXPECT_EQ(1u, cmd->getEmitInlineParameter());
|
||||
|
||||
const uint32_t inlineDataSize = sizeof(InlineData);
|
||||
constexpr auto inlineDataSize = DefaultWalkerType::getInlineDataSize();
|
||||
size_t expectedSizeIOH = alignUp(dispatchInterface->getCrossThreadDataSize() +
|
||||
dispatchInterface->getPerThreadDataSizeForWholeThreadGroup() -
|
||||
inlineDataSize,
|
||||
|
||||
Reference in New Issue
Block a user