mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
feature: Adding support for parsing sip_surface_offset
Adding support for parsing sip_surface_offset in accordance with zeinfo specification. This field is not used because surface offset calculations are dynamic and zebin binary can rely only on sip_surface_bti entry. However, failing to parse this unused entry blocks NEO from moving to stricter zebin validation. Related-To: NEO-11762 Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5ab81cb3bb
commit
e11ceb4a20
@@ -81,6 +81,7 @@ inline constexpr ConstStringRef hintSuffix("_hint");
|
||||
|
||||
namespace DebugEnv {
|
||||
inline constexpr ConstStringRef debugSurfaceBTI("sip_surface_bti");
|
||||
inline constexpr ConstStringRef debugSurfaceOffset("sip_surface_offset");
|
||||
} // namespace DebugEnv
|
||||
|
||||
namespace PayloadArgument {
|
||||
@@ -452,13 +453,16 @@ struct AttributesBaseT {
|
||||
|
||||
namespace DebugEnv {
|
||||
using DebugSurfaceBTIT = int32_t;
|
||||
using DebugSurfaceOffset = int32_t;
|
||||
|
||||
namespace Defaults {
|
||||
inline constexpr DebugSurfaceBTIT debugSurfaceBTI = -1;
|
||||
inline constexpr DebugSurfaceOffset debugSurfaceOffset = -1;
|
||||
} // namespace Defaults
|
||||
|
||||
struct DebugEnvBaseT {
|
||||
DebugSurfaceBTIT debugSurfaceBTI = Defaults::debugSurfaceBTI;
|
||||
DebugSurfaceOffset debugSurfaceOffset = Defaults::debugSurfaceOffset;
|
||||
};
|
||||
} // namespace DebugEnv
|
||||
|
||||
|
||||
@@ -821,6 +821,8 @@ DecodeError readZeInfoDebugEnvironment(const Yaml::YamlParser &parser, const Yam
|
||||
auto key = parser.readKey(debugEnvNd);
|
||||
if (Tags::Kernel::DebugEnv::debugSurfaceBTI == key) {
|
||||
validDebugEnv &= readZeInfoValueChecked(parser, debugEnvNd, outDebugEnv.debugSurfaceBTI, context, outErrReason);
|
||||
} else if (Tags::Kernel::DebugEnv::debugSurfaceOffset == key) {
|
||||
validDebugEnv &= readZeInfoValueChecked(parser, debugEnvNd, outDebugEnv.debugSurfaceOffset, context, outErrReason);
|
||||
} else {
|
||||
outWarning.append("DeviceBinaryFormat::zebin::.ze_info : Unknown entry \"" + key.str() + "\" in context of " + context.str() + "\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user