refactor: Correct using's for idd type and postSync type and getInlineDataSize

Related-To: NEO-10681
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk 2024-09-10 12:29:22 +00:00 committed by Compute-Runtime-Automation
parent 9da7084994
commit b71bb715fc
3 changed files with 9 additions and 9 deletions

View File

@ -5961,10 +5961,10 @@ typedef struct tagCOMPUTE_WALKER {
TheStructure.Common.PreemptLastCol = value;
}
static constexpr uint32_t getInlineDataSize() { // patched
return 32u;
return sizeof(TheStructure.Common.InlineData);
}
using InterfaceDescriptorType = INTERFACE_DESCRIPTOR_DATA; // patched
using PostSyncType = POSTSYNC_DATA; // patched
using InterfaceDescriptorType = std::decay_t<decltype(TheStructure.Common.InterfaceDescriptor)>; // patched
using PostSyncType = std::decay_t<decltype(TheStructure.Common.PostSync)>; // patched
} COMPUTE_WALKER;
STATIC_ASSERT(160 == sizeof(COMPUTE_WALKER));

View File

@ -5815,10 +5815,10 @@ typedef struct tagCOMPUTE_WALKER {
return reinterpret_cast<uint32_t *>(&TheStructure.Common.InlineData);
}
static constexpr uint32_t getInlineDataSize() { // patched
return 32u;
return sizeof(TheStructure.Common.InlineData);
}
using InterfaceDescriptorType = INTERFACE_DESCRIPTOR_DATA; // patched
using PostSyncType = POSTSYNC_DATA; // patched
using InterfaceDescriptorType = std::decay_t<decltype(TheStructure.Common.InterfaceDescriptor)>; // patched
using PostSyncType = std::decay_t<decltype(TheStructure.Common.PostSync)>; // patched
} COMPUTE_WALKER;
STATIC_ASSERT(156 == sizeof(COMPUTE_WALKER));

View File

@ -5584,10 +5584,10 @@ typedef struct tagCOMPUTE_WALKER {
return reinterpret_cast<uint32_t *>(&TheStructure.Common.InlineData);
}
static constexpr uint32_t getInlineDataSize() { // patched
return 32u;
return sizeof(TheStructure.Common.InlineData);
}
using InterfaceDescriptorType = INTERFACE_DESCRIPTOR_DATA; // patched
using PostSyncType = POSTSYNC_DATA; // patched
using InterfaceDescriptorType = std::decay_t<decltype(TheStructure.Common.InterfaceDescriptor)>; // patched
using PostSyncType = std::decay_t<decltype(TheStructure.Common.PostSync)>; // patched
} COMPUTE_WALKER;
STATIC_ASSERT(156 == sizeof(COMPUTE_WALKER));