Add support for L3 cache information

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
Slawomir Milczarek
2021-01-29 22:23:06 +00:00
committed by Compute-Runtime-Automation
parent e64f3db55c
commit d399613f25
15 changed files with 189 additions and 5 deletions

View File

@ -7,6 +7,7 @@
#pragma once
#include "shared/source/os_interface/linux/cache_info.h"
#include "shared/source/utilities/stackvec.h"
#include "drm/i915_drm.h"
@ -78,6 +79,8 @@ class BufferObject {
bool isMarkedForCapture() {
return allowCapture;
}
void setCacheRegion(CacheRegion regionIndex) { cacheRegion = regionIndex; }
CacheRegion peekCacheRegion() const { return cacheRegion; }
protected:
Drm *drm = nullptr;
@ -102,6 +105,8 @@ class BufferObject {
uint64_t unmapSize = 0;
CacheRegion cacheRegion = CacheRegion::Default;
std::vector<std::array<bool, EngineLimits::maxHandleCount>> bindInfo;
StackVec<uint32_t, 2> bindExtHandles;
};