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
This commit is contained in:
@@ -1443,8 +1443,8 @@ void Image::destroy() {
|
||||
hsa_status_t status = hsa_ext_image_destroy(dev().getBackendDevice(), hsaImageObject_);
|
||||
assert(status == HSA_STATUS_SUCCESS);
|
||||
}
|
||||
|
||||
if (owner()->parent() != nullptr) {
|
||||
// Don't destroy memory if it's a view. Parent will destroy the original allocation.
|
||||
if ((owner()->parent() != nullptr) || owner()->ImageView()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
مرجع در شماره جدید
Block a user