mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
fix zebin: use alignemnt of 8 when creating debug zebin
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e08d6ed4e6
commit
95bea7c92b
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021-2022 Intel Corporation
|
||||
* Copyright (C) 2021-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -18,7 +18,7 @@ TEST(DebugZebinTest, givenValidZebinThenDebugZebinIsGenerated) {
|
||||
|
||||
uint8_t constData[8] = {0x1};
|
||||
uint8_t varData[8] = {0x2};
|
||||
uint8_t kernelISA[8] = {0x3};
|
||||
uint8_t kernelISA[12] = {0x3};
|
||||
uint8_t stringData[8] = {0x4};
|
||||
|
||||
uint8_t debugInfo[0x30] = {0x22};
|
||||
@@ -159,6 +159,9 @@ TEST(DebugZebinTest, givenValidZebinThenDebugZebinIsGenerated) {
|
||||
EXPECT_EQ(zebin.sectionHeaders[i].header->flags, debugZebin.sectionHeaders[i].header->flags);
|
||||
|
||||
const auto §ionHeader = debugZebin.sectionHeaders[i].header;
|
||||
|
||||
EXPECT_TRUE(isAligned<8>(sectionHeader->offset));
|
||||
|
||||
const auto §ionData = debugZebin.sectionHeaders[i].data;
|
||||
const auto sectionName = debugZebin.getSectionName(i);
|
||||
auto refSectionName = NEO::ConstStringRef(sectionName);
|
||||
|
||||
Reference in New Issue
Block a user