mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Add padding for ISA allocations
Related-To: NEO-5771 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0d05ef2a3c
commit
bb9d902899
@@ -48,6 +48,7 @@ class HwHelper {
|
||||
virtual uint32_t getBindingTableStateAlignement() const = 0;
|
||||
virtual size_t getInterfaceDescriptorDataSize() const = 0;
|
||||
virtual size_t getMaxBarrierRegisterPerSlice() const = 0;
|
||||
virtual size_t getPaddingForISAAllocation() const = 0;
|
||||
virtual uint32_t getComputeUnitsUsedForScratch(const HardwareInfo *pHwInfo) const = 0;
|
||||
virtual uint32_t getPitchAlignmentForImage(const HardwareInfo *hwInfo) const = 0;
|
||||
virtual uint32_t getMaxNumSamplers() const = 0;
|
||||
@@ -197,6 +198,8 @@ class HwHelperHw : public HwHelper {
|
||||
|
||||
size_t getMaxBarrierRegisterPerSlice() const override;
|
||||
|
||||
size_t getPaddingForISAAllocation() const override;
|
||||
|
||||
uint32_t getMaxThreadsForWorkgroup(const HardwareInfo &hwInfo, uint32_t maxNumEUsPerSubSlice) const override;
|
||||
|
||||
uint32_t getComputeUnitsUsedForScratch(const HardwareInfo *pHwInfo) const override;
|
||||
|
||||
@@ -59,6 +59,11 @@ size_t HwHelperHw<Family>::getMaxBarrierRegisterPerSlice() const {
|
||||
return 32;
|
||||
}
|
||||
|
||||
template <typename Family>
|
||||
size_t HwHelperHw<Family>::getPaddingForISAAllocation() const {
|
||||
return 512;
|
||||
}
|
||||
|
||||
template <typename Family>
|
||||
uint32_t HwHelperHw<Family>::getPitchAlignmentForImage(const HardwareInfo *hwInfo) const {
|
||||
return 4u;
|
||||
|
||||
Reference in New Issue
Block a user