anv/trtt: remove useless VK_RESULT checks

We jump out of the loops whenever result is not VK_SUCCESS, there is
no need to check for it there. I guess I missed this detail in the
most recent rework for this function.

Reviewed-by: Iván Briano <ivan.briano@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31698>
This commit is contained in:
Paulo Zanoni
2024-10-16 17:23:54 -07:00
committed by Marge Bot
parent da396a49a0
commit b88bcacf2b
+2 -2
View File
@@ -792,9 +792,9 @@ anv_sparse_bind_trtt(struct anv_device *device,
goto out_dynarrays;
}
for (int b = 0; b < sparse_submit->binds_len && result == VK_SUCCESS; b++) {
for (int b = 0; b < sparse_submit->binds_len; b++) {
struct anv_vm_bind *vm_bind = &sparse_submit->binds[b];
for (uint64_t i = 0; i < vm_bind->size && result == VK_SUCCESS; i += 64 * 1024) {
for (uint64_t i = 0; i < vm_bind->size; i += 64 * 1024) {
uint64_t trtt_addr = vm_bind->address + i;
uint64_t dest_addr =
(vm_bind->op == ANV_VM_BIND && vm_bind->bo) ?