intel: fix intel_cmd_end()

We should loop for reloc_used times, not reloc_count times.
diff --git a/icd/intel/cmd.c b/icd/intel/cmd.c
index 43b8876..900ee05 100644
--- a/icd/intel/cmd.c
+++ b/icd/intel/cmd.c
@@ -191,7 +191,7 @@
     cmd_batch_end(cmd);
 
     /* TODO we need a more "explicit" winsys */
-    for (i = 0; i < cmd->reloc_count; i++) {
+    for (i = 0; i < cmd->reloc_used; i++) {
         const struct intel_cmd_reloc *reloc = &cmd->relocs[i];
         uint64_t presumed_offset;
         int err;