Fix creating image from image

- allow creating image 2d from non NV12 image 2d
- validate image descriptor and format when create image from image

Change-Id: Ie7887e75f1450fc723dc1d1ae9ff5639d88835fc
This commit is contained in:
Mateusz Jablonski
2018-04-05 15:05:33 +02:00
committed by sys_ocldev
parent a858ff5077
commit ac45ff74ec
5 changed files with 404 additions and 34 deletions

View File

@@ -187,6 +187,9 @@ class Image : public MemObj {
const bool isTiledImage;
bool hasSameDescriptor(const cl_image_desc &imageDesc) const;
bool hasValidParentImageFormat(const cl_image_format &imageFormat) const;
protected:
Image(Context *context,
cl_mem_flags flags,