radv/winsys: fix buffer deletion in the sysmem path
In case we failed to submit the CS correctly. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -1094,10 +1094,11 @@ static int radv_amdgpu_winsys_cs_submit_sysmem(struct radeon_winsys_ctx *_ctx,
|
||||
|
||||
for (unsigned j = 0; j < number_of_ibs; j++) {
|
||||
ws->buffer_destroy(bos[j]);
|
||||
if (r)
|
||||
return r;
|
||||
}
|
||||
|
||||
if (r)
|
||||
return r;
|
||||
|
||||
i += cnt;
|
||||
}
|
||||
if (fence)
|
||||
|
||||
Reference in New Issue
Block a user