mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add support for L3 cache information
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
e64f3db55c
commit
d399613f25
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user