Return SubmissionStatus from printBOsForSubmit method

it allows to return non-binary status to API layer

Related-To: NEO-7412
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-11-15 11:21:56 +00:00
committed by Compute-Runtime-Automation
parent 1d4240a0c8
commit bddf1bbe76
5 changed files with 105 additions and 48 deletions

View File

@ -8,6 +8,7 @@
#pragma once
#include "shared/source/os_interface/linux/drm_allocation.h"
#include "shared/source/os_interface/linux/drm_buffer_object.h"
#include "shared/test/common/test_macros/mock_method_macros.h"
namespace NEO {
@ -60,6 +61,8 @@ class MockDrmAllocation : public DrmAllocation {
return bindBOsRetValue;
}
ADDMETHOD_NOBASE(makeBOsResident, int, 0, (OsContext * osContext, uint32_t vmHandleId, std::vector<BufferObject *> *bufferObjects, bool bind));
bool registerBOBindExtHandleCalled = false;
bool markedForCapture = false;
bool bindBOsCalled = false;