SWDEV-297808 - Free sampler when destroying textures

Change-Id: Idaab76392d18c7f5fedc89497e93f0d17835001a
This commit is contained in:
Vladislav Sytchenko
2021-08-07 19:12:49 -04:00
parent 8835b897d5
commit b41d5d73d4
+1
Vedi File
@@ -329,6 +329,7 @@ hipError_t ihipDestroyTextureObject(hipTextureObject_t texObject) {
!texObject->image->isParent();
if (isImageFromBuffer || isImageView) {
texObject->image->release();
texObject->sampler->release();
}
// TODO Should call ihipFree() to not polute the api trace.