gfxstream: Fix usage of encoder after release in vkResetCommandBuffer

Reviewed-by: Aaron Ruby <aruby@blackberry.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
This commit is contained in:
Jean-Francois Thibert 2024-05-06 17:03:46 -04:00 committed by Marge Bot
parent fcb2b62bfe
commit 2aad7d2b00

View file

@ -6815,7 +6815,7 @@ VkResult ResourceTracker::on_vkResetCommandBuffer(void* context, VkResult input_
resetCommandBufferStagingInfo(commandBuffer, true /* also reset primaries */,
true /* also clear pending descriptor sets */);
VkEncoder* enc = (VkEncoder*)context;
VkEncoder* enc = ResourceTracker::getCommandBufferEncoder(commandBuffer);
(void)input_result;
if (!supportsDeferredCommands()) {