Add const suffix to hasIndirectAllocationsAllowed()

Change-Id: I6b84410cc3804d8fa889aeb32128b250f4464757
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
This commit is contained in:
Raiyan Latif
2020-03-12 12:21:37 -07:00
parent f8a4e67ec0
commit dbb2f1b8c9
3 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ struct Kernel : _ze_kernel_handle_t, virtual NEO::DispatchKernelEncoderI {
virtual size_t getDynamicStateHeapDataSize() const = 0;
virtual UnifiedMemoryControls getUnifiedMemoryControls() const = 0;
virtual bool hasIndirectAllocationsAllowed() = 0;
virtual bool hasIndirectAllocationsAllowed() const = 0;
virtual NEO::GraphicsAllocation *getPrintfBufferAllocation() = 0;
virtual void printPrintfOutput() = 0;

View File

@ -651,7 +651,7 @@ Kernel *Kernel::create(uint32_t productFamily, Module *module,
return function;
}
bool KernelImp::hasIndirectAllocationsAllowed() {
bool KernelImp::hasIndirectAllocationsAllowed() const {
return (unifiedMemoryControls.indirectDeviceAllocationsAllowed ||
unifiedMemoryControls.indirectHostAllocationsAllowed ||
unifiedMemoryControls.indirectSharedAllocationsAllowed);

View File

@ -104,7 +104,7 @@ struct KernelImp : Kernel {
const KernelImmutableData *getImmutableData() const override { return kernelImmData; }
UnifiedMemoryControls getUnifiedMemoryControls() const override { return unifiedMemoryControls; }
bool hasIndirectAllocationsAllowed() override;
bool hasIndirectAllocationsAllowed() const override;
bool hasBarriers() override;
uint32_t getSlmTotalSize() override;