commit | fdfb8ed2d8f7bef0d649bf0f3ceccf4f77cd550b | [log] [tgz] |
---|---|---|
author | Chia-I Wu <olvaffe@gmail.com> | Thu Aug 21 15:40:07 2014 +0800 |
committer | Chia-I Wu <olvaffe@gmail.com> | Thu Aug 21 15:40:23 2014 +0800 |
tree | 49a5915f12614dec5a92b7e96ee8ebbf843139a0 | |
parent | e24c329b2c3ba3af2b477340d243a7da522084cb [diff] [blame] |
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;