SWDEV-409815 - Fix image view cache issue

Add a view bit to avoid original resource destruction when parent
dependency doesn't exist with the image view cache

Change-Id: I8277afd575af8f29951c5d1a9f7d94d784251657
Этот коммит содержится в:
German Andryeyev
2023-07-14 15:05:19 -04:00
родитель f136a576f5
Коммит b49e8e78e1
3 изменённых файлов: 5 добавлений и 2 удалений
+1
Просмотреть файл
@@ -593,6 +593,7 @@ Image::Image(const Format& format, Image& parent, uint baseMipLevel, cl_mem_flag
size_ = getWidth() * getHeight() * parent.getDepth() * format.getElementSize();
}
initDimension();
image_view_ = true;
}
Image::Image(Context& context, Type type, Flags flags, const Format& format, size_t width,