From b41d5d73d4205bc4efaf353429bf9f29edef2adc Mon Sep 17 00:00:00 2001 From: Vladislav Sytchenko Date: Sat, 7 Aug 2021 19:12:49 -0400 Subject: [PATCH] SWDEV-297808 - Free sampler when destroying textures Change-Id: Idaab76392d18c7f5fedc89497e93f0d17835001a --- hipamd/src/hip_texture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/hipamd/src/hip_texture.cpp b/hipamd/src/hip_texture.cpp index e205c960f4..744b0815cb 100644 --- a/hipamd/src/hip_texture.cpp +++ b/hipamd/src/hip_texture.cpp @@ -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.