gfxstream: ResourceTracker: Fix bug in return-code check for blob wait

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:
Aaron Ruby 2024-07-04 16:55:21 -04:00 committed by Marge Bot
parent 3478de8444
commit e5d96bdbac

View file

@ -3853,7 +3853,7 @@ VkResult ResourceTracker::on_vkAllocateMemory(void* context, VkResult input_resu
mesa_loge("Failed to create colorBuffer resource for Image memory");
return VK_ERROR_OUT_OF_DEVICE_MEMORY;
}
if (!bufferBlob->wait()) {
if (bufferBlob->wait()) {
mesa_loge("Failed to wait for colorBuffer resource for Image memory");
return VK_ERROR_OUT_OF_DEVICE_MEMORY;
}
@ -3913,7 +3913,7 @@ VkResult ResourceTracker::on_vkAllocateMemory(void* context, VkResult input_resu
mesa_loge("Failed to create colorBuffer resource for Image memory");
return VK_ERROR_OUT_OF_DEVICE_MEMORY;
}
if (!bufferBlob->wait()) {
if (bufferBlob->wait()) {
mesa_loge("Failed to wait for colorBuffer resource for Image memory");
return VK_ERROR_OUT_OF_DEVICE_MEMORY;
}