SWDEV-297808 - Free sampler when destroying textures
Change-Id: Idaab76392d18c7f5fedc89497e93f0d17835001a
Ta zmiana jest zawarta w:
%! (template.HTML=
Vladislav Sytchenko)złożyło 2021-08-09 21:49:36 -04:00
1 rodzic
8835b897d5
złożenie
b41d5d73d4
Plik 1 zmieniony
+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.
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika