mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add const suffix to hasIndirectAllocationsAllowed()
Change-Id: I6b84410cc3804d8fa889aeb32128b250f4464757 Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
This commit is contained in:
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user