Add allowCapture flag to BufferObject

Related-To: NEO-5026

Change-Id: I69a9f270272a13fccdd1d8dd8b13ad03ef93cb79
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2020-10-09 10:48:37 +02:00
committed by sys_ocldev
parent e48c056b9f
commit 0e935b0e10
9 changed files with 41 additions and 5 deletions

View File

@ -71,6 +71,12 @@ class BufferObject {
bool peekIsReusableAllocation() const { return this->isReused; }
void addBindExtHandle(uint32_t handle);
StackVec<uint32_t, 2> &getBindExtHandles() { return bindExtHandles; }
void markForCapture() {
allowCapture = true;
}
bool isMarkedForCapture() {
return allowCapture;
}
protected:
Drm *drm = nullptr;
@ -83,6 +89,7 @@ class BufferObject {
//Tiling
uint32_t tiling_mode;
bool allowCapture = false;
MOCKABLE_VIRTUAL void fillExecObject(drm_i915_gem_exec_object2 &execObject, OsContext *osContext, uint32_t vmHandleId, uint32_t drmContextId);
void fillExecObjectImpl(drm_i915_gem_exec_object2 &execObject, OsContext *osContext, uint32_t vmHandleId);