Immediate binding flag in BufferObject

Related-To: NEO-5985

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2021-06-17 12:23:51 +00:00
committed by Compute-Runtime-Automation
parent 3137e82fca
commit 8a037399d1
3 changed files with 13 additions and 1 deletions

View File

@ -4243,7 +4243,7 @@ TEST(DrmMemoryManager, givenNullBoWhenRegisteringBindExtHandleThenEarlyReturn) {
gfxAllocation.freeRegisteredBOBindExtHandles(mockDrm.get());
}
TEST(DrmAllocationTest, givenResourceRegistrationEnabledWhenAllocationIsRegisteredThenBosAreMarkedForCapture) {
TEST(DrmAllocationTest, givenResourceRegistrationEnabledWhenAllocationIsRegisteredThenBosAreMarkedForCaptureAndRequireImmediateBinding) {
auto executionEnvironment = std::make_unique<ExecutionEnvironment>();
executionEnvironment->prepareRootDeviceEnvironments(1);
@ -4257,6 +4257,7 @@ TEST(DrmAllocationTest, givenResourceRegistrationEnabledWhenAllocationIsRegister
allocation.registerBOBindExtHandle(&drm);
EXPECT_TRUE(bo.isMarkedForCapture());
EXPECT_TRUE(bo.isImmediateBindingRequired());
}
TEST(DrmAllocationTest, givenResourceRegistrationEnabledWhenIsaIsRegisteredThenCookieIsAddedToBoHandle) {