mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Pass root device index to MemObj::getGraphicsAllocation method
leave parameterless method in Buffer and Image classes add method to remove graphics allocation from MultiGraphicsAllocation Related-To: NEO-4672 Change-Id: I3020eecfabe9a16af7f36d68a74b32d3f4fc2276 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
@ -83,6 +83,7 @@ class D3DTests : public PlatformFixture, public ::testing::Test {
|
||||
|
||||
void SetUp() override {
|
||||
PlatformFixture::SetUp();
|
||||
rootDeviceIndex = pPlatform->getClDevice(0)->getRootDeviceIndex();
|
||||
context = new MockContext(pPlatform->getClDevice(0));
|
||||
context->preferD3dSharedResources = true;
|
||||
mockMM = std::make_unique<MockMM>(*context->getDevice(0)->getExecutionEnvironment());
|
||||
@ -190,6 +191,7 @@ class D3DTests : public PlatformFixture, public ::testing::Test {
|
||||
std::unique_ptr<MockMM> mockMM;
|
||||
|
||||
uint8_t d3dMode = 0;
|
||||
uint32_t rootDeviceIndex = 0;
|
||||
};
|
||||
typedef ::testing::Types<D3DTypesHelper::D3D10, D3DTypesHelper::D3D11> D3DTypes;
|
||||
} // namespace NEO
|
||||
|
Reference in New Issue
Block a user