mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
Add support for mem advise to set cache policy in buffer object
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
45de13233a
commit
afa45bd9e7
@@ -13,6 +13,7 @@ namespace NEO {
|
||||
class BufferObject;
|
||||
class OsContext;
|
||||
class Drm;
|
||||
enum class CachePolicy : uint32_t;
|
||||
enum class CacheRegion : uint16_t;
|
||||
|
||||
struct OsHandleLinux : OsHandle {
|
||||
@@ -66,6 +67,7 @@ class DrmAllocation : public GraphicsAllocation {
|
||||
|
||||
bool setCacheRegion(Drm *drm, CacheRegion regionIndex);
|
||||
bool setCacheAdvice(Drm *drm, size_t regionSize, CacheRegion regionIndex);
|
||||
void setCachePolicy(CachePolicy memType);
|
||||
|
||||
void *getMmapPtr() { return this->mmapPtr; }
|
||||
void setMmapPtr(void *ptr) { this->mmapPtr = ptr; }
|
||||
|
||||
Reference in New Issue
Block a user