debug: Reduce debug logs when changing allocation type
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
parent
8da362afae
commit
b931f31f3d
|
@ -18,8 +18,10 @@
|
|||
|
||||
namespace NEO {
|
||||
void GraphicsAllocation::setAllocationType(AllocationType allocationType) {
|
||||
this->allocationType = allocationType;
|
||||
fileLoggerInstance().logAllocation(this);
|
||||
if (this->allocationType != allocationType) {
|
||||
this->allocationType = allocationType;
|
||||
fileLoggerInstance().logAllocation(this);
|
||||
}
|
||||
}
|
||||
|
||||
GraphicsAllocation::GraphicsAllocation(uint32_t rootDeviceIndex, size_t numGmms, AllocationType allocationType, void *cpuPtrIn, uint64_t canonizedGpuAddress,
|
||||
|
|
Loading…
Reference in New Issue