mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Fix zeroCopy property for images
- zeroCopy means no need for data transfer when cpu transfer is chosen during map/unmap operations - tests cleanup Change-Id: Id312267e51d593781c6fe536b6e96f42f32e5c02
This commit is contained in:
committed by
sys_ocldev
parent
9ac3529c6b
commit
aaf2f94887
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -103,10 +103,7 @@ HWTEST_P(CreateImage2DType, validTypes) {
|
||||
}
|
||||
|
||||
EXPECT_EQ(image->getCubeFaceIndex(), static_cast<uint32_t>(__GMM_NO_CUBE_MAP));
|
||||
|
||||
ASSERT_EQ(true, image->isMemObjZeroCopy());
|
||||
auto address = image->getCpuAddress();
|
||||
EXPECT_NE(nullptr, address);
|
||||
EXPECT_FALSE(image->isMemObjZeroCopy());
|
||||
|
||||
typedef typename FamilyType::RENDER_SURFACE_STATE SURFACE_STATE;
|
||||
auto imageHw = static_cast<ImageHw<FamilyType> *>(image);
|
||||
|
||||
Reference in New Issue
Block a user