SWDEV-297808 - Free sampler when destroying textures
Change-Id: Idaab76392d18c7f5fedc89497e93f0d17835001a
[ROCm/clr commit: b41d5d73d4]
Cette révision appartient à :
1 Parent
6883ccde42
révision
8dc0bb325a
1 fichier modifié
+1
@@ -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.
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur