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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user