Move makeResidentBufferObjects to DrmAllocation

Related-To: NEO-4732

Change-Id: Ib7b7a46b0a9fd1d5cc1b89f64f66bc78cab5c563
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2020-06-26 09:14:36 +02:00
committed by sys_ocldev
parent 93c1e1b976
commit e027a2653d
9 changed files with 56 additions and 38 deletions

View File

@ -125,8 +125,8 @@ class DrmCommandStreamEnhancedTest : public ::testing::Test {
}
template <typename GfxFamily>
void makeResidentBufferObjects(const DrmAllocation *drmAllocation) {
static_cast<TestedDrmCommandStreamReceiver<GfxFamily> *>(csr)->makeResidentBufferObjects(drmAllocation, 0u);
void makeResidentBufferObjects(DrmAllocation *drmAllocation) {
drmAllocation->appendBOs(0u, static_cast<TestedDrmCommandStreamReceiver<GfxFamily> *>(csr)->residency);
}
template <typename GfxFamily>