mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-23 11:03:02 +08:00
Remove OCL object from MemoryProperties 10/n
Add cl_mem_flags, cl_mem_flags_intel and wire it in mem_obj. Refactor: - validateMemoryPropertiesForImage - validateExtraMemoryProperties Related-To: NEO-3132 Change-Id: I90fac5fc00e24fc67346109a1fe6f269ef51e1e0 Signed-off-by: Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
@@ -194,6 +194,8 @@ HWTEST_F(EnqueueMapImageTest, givenTiledImageWhenMapImageIsCalledThenStorageIsSe
|
||||
auto surfaceFormatInfo = image->getSurfaceFormatInfo();
|
||||
|
||||
mockedImage<FamilyType> mockImage(context,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
4096u,
|
||||
nullptr,
|
||||
@@ -916,7 +918,7 @@ TEST_F(EnqueueMapImageTest, givenImage1DArrayWhenEnqueueMapImageIsCalledThenRetu
|
||||
class MockImage : public Image {
|
||||
public:
|
||||
MockImage(Context *context, cl_mem_flags flags, GraphicsAllocation *allocation, const SurfaceFormatInfo &surfaceFormat,
|
||||
const cl_image_format &imageFormat, const cl_image_desc &imageDesc) : Image(context, flags,
|
||||
const cl_image_format &imageFormat, const cl_image_desc &imageDesc) : Image(context, flags, flags, 0,
|
||||
0, nullptr,
|
||||
imageFormat, imageDesc,
|
||||
true,
|
||||
|
||||
Reference in New Issue
Block a user