debug: Reduce debug logs when changing allocation type

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski 2023-02-02 09:52:35 +00:00 committed by Compute-Runtime-Automation
parent 8da362afae
commit b931f31f3d
1 changed files with 4 additions and 2 deletions

View File

@ -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,