mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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:
parent
3478de8444
commit
e5d96bdbac
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue