mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Change alignment for forced created ptr in image
Related-To: NEO-5723 Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5f41e00909
commit
df1162ff4d
@@ -1628,6 +1628,15 @@ HWTEST_F(ImageTransformTest, givenSurfaceBaseAddressAndUnifiedSurfaceWhenSetUnif
|
||||
|
||||
using ImageMultiRootDeviceTests = MultiRootDeviceFixture;
|
||||
|
||||
TEST_F(ImageMultiRootDeviceTests, WhenImageIsCreatedThenImageAllocationHostPtrForcedHasCorrectAlignment) {
|
||||
std::unique_ptr<Image> image(ImageHelper<Image3dDefaults>::create(context.get()));
|
||||
|
||||
auto hostPtrForced = image->getAllocatedMapPtr();
|
||||
|
||||
ASSERT_NE(nullptr, hostPtrForced);
|
||||
EXPECT_EQ(0u, (uintptr_t)hostPtrForced % MemoryConstants::pageSize);
|
||||
}
|
||||
|
||||
TEST_F(ImageMultiRootDeviceTests, WhenImageIsCreatedThenImageAllocationHasCorrectRootDeviceIndex) {
|
||||
std::unique_ptr<Image> image(ImageHelper<Image3dDefaults>::create(context.get()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user