r600g: break out of search for reloc bo after finding it.

this function was taking quite a lot of pointless CPU.
This commit is contained in:
Dave Airlie 2010-10-04 15:58:39 +10:00
parent 14bf92ba19
commit 92aba9c1f5
1 changed files with 1 additions and 0 deletions

View File

@ -715,6 +715,7 @@ void r600_context_bo_reloc(struct r600_context *ctx, u32 *pm4, struct radeon_bo
reloc_id = i * sizeof(struct r600_reloc) / 4;
/* set PKT3 to point to proper reloc */
*pm4 = reloc_id;
break;
}
}
if (reloc_id == -1) {