The BumpPool of VkStream is not freeAll'ed

Original change from: kyoungwon.kim@bytedance.com at aosp/3310239
Moving the change into gfxstream and codegen.

The issue was found by pengzejie@bytedance.com.

Note that vkReadStream's BumpPool is effectively `freeAll`'ed by
`clearPool` calls. The same call for vkStream is not being called
while alloc is called here and there.

Reviewed-by: Marcin Radomski <dextero@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33018>
This commit is contained in:
Serdar Kocdemir
2024-12-02 12:04:33 +00:00
committed by Marge Bot
parent 456654f6ad
commit 9603450ea4

View File

@@ -963,6 +963,7 @@ size_t VkDecoder::Impl::decode(void* buf, size_t len, IOStream* ioStream,
self.cgen.endBlock() # switch stmt
self.cgen.stmt("ptr += packetLen")
self.cgen.stmt("vkStream->clearPool()")
self.cgen.endBlock() # while loop
self.cgen.beginIf("m_forSnapshotLoad")