Aux translation [4/n]: Lock BuiltIn Kernel + refactor BuiltIns locking

Change-Id: Ic7dc9b86a4aa5f93f1c4bcdf80b9598ecdff9713
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2018-08-13 12:24:17 +02:00
committed by sys_ocldev
parent d3d8b6f905
commit a5950500a3
21 changed files with 152 additions and 77 deletions

View File

@@ -227,9 +227,21 @@ class MockKernel : public Kernel {
void makeResident(CommandStreamReceiver &commandStreamReceiver) override;
void getResidency(std::vector<Surface *> &dst) override;
bool takeOwnership(bool lock) const override {
auto retVal = Kernel::takeOwnership(lock);
takeOwnershipCalls++;
return retVal;
}
void releaseOwnership() const override {
releaseOwnershipCalls++;
Kernel::releaseOwnership();
}
uint32_t makeResidentCalls = 0;
uint32_t getResidencyCalls = 0;
mutable uint32_t takeOwnershipCalls = 0;
mutable uint32_t releaseOwnershipCalls = 0;
bool canKernelTransformImages = true;