diff options
author | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2018-10-30 11:41:19 +0100 |
---|---|---|
committer | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2018-10-31 09:21:28 +0100 |
commit | ae3aecd07f038e1b4e927b7f942c6e865b973a7d (patch) | |
tree | cf8112aef229ccc14b962c6866867f7541566aac /src | |
parent | 72877865d949444df92ba48eb0b6f80c896b9bff (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c index 5f621ec3fb8..75f1c47fd90 100644 --- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c +++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c @@ -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) |