plugins/amdgpu: add a comment for retry_needed

Add a comment that explains the purpose of `retry_needed`.

Co-authored-by: Andrei Vagin <avagin@google.com>
Signed-off-by: David Francis <David.Francis@amd.com>
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
David Francis 2025-11-02 07:32:44 -08:00 committed by Andrei Vagin
parent 77e6558ddb
commit 6ed49894c5

View file

@ -1837,6 +1837,10 @@ int amdgpu_plugin_restore_file(int id, bool *retry_needed)
if (!img_fp) {
ret = amdgpu_plugin_dmabuf_restore(id);
if (ret == 1) {
/* This is a dmabuf fd, but the corresponding buffer object that was
* exported to make it has not yet been restored. Need to try again
* later when the buffer object exists, so it can be re-exported.
*/
*retry_needed = true;
return 0;
}