mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
sys_ocldev

parent
e48c056b9f
commit
0e935b0e10
@ -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);
|
||||
|
Reference in New Issue
Block a user