mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
Add slm_alignment entry to .zeInfo payload_arguments section
This commit adds suport for parsing "slm_alignment" entry in .ze_info section. - Set requiredSlmAlignment for addresing mode slm - Enable optional passed slm alignment parsing (with default value=16 left). Related-To: NEO-6817 Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a285712cc4
commit
afd71beee9
@@ -165,6 +165,7 @@ static constexpr ConstStringRef addrspace("addrspace");
|
||||
static constexpr ConstStringRef accessType("access_type");
|
||||
static constexpr ConstStringRef samplerIndex("sampler_index");
|
||||
static constexpr ConstStringRef sourceOffset("source_offset");
|
||||
static constexpr ConstStringRef slmArgAlignment("slm_alignment");
|
||||
namespace ArgType {
|
||||
static constexpr ConstStringRef localSize("local_size");
|
||||
static constexpr ConstStringRef groupCount("group_count");
|
||||
@@ -430,12 +431,12 @@ using ArgIndexT = int32_t;
|
||||
using AddrmodeT = MemoryAddressingMode;
|
||||
using AddrspaceT = AddressSpace;
|
||||
using AccessTypeT = AccessType;
|
||||
using SlmAlignment = uint8_t;
|
||||
using SlmAlignmentT = uint8_t;
|
||||
using SamplerIndexT = int32_t;
|
||||
|
||||
namespace Defaults {
|
||||
static constexpr ArgIndexT argIndex = -1;
|
||||
static constexpr SlmAlignment slmArgAlignment = 16U;
|
||||
static constexpr SlmAlignmentT slmArgAlignment = 16U;
|
||||
static constexpr SamplerIndexT samplerIndex = -1;
|
||||
static constexpr SourceOffseT sourceOffset = -1;
|
||||
} // namespace Defaults
|
||||
@@ -450,6 +451,7 @@ struct PayloadArgumentBaseT {
|
||||
AddrspaceT addrspace = AddressSpaceUnknown;
|
||||
AccessTypeT accessType = AccessTypeUnknown;
|
||||
SamplerIndexT samplerIndex = Defaults::samplerIndex;
|
||||
SlmAlignmentT slmArgAlignment = Defaults::slmArgAlignment;
|
||||
};
|
||||
|
||||
} // namespace PayloadArgument
|
||||
|
||||
Reference in New Issue
Block a user