From: Dave Airlie Date: Mon, 4 Oct 2010 05:58:39 +0000 (+1000) Subject: r600g: break out of search for reloc bo after finding it. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=92aba9c1f54b2681aed11f572f74bda941f19a54;p=mesa.git r600g: break out of search for reloc bo after finding it. this function was taking quite a lot of pointless CPU. --- diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 2ca5a45e03d..c67c93541a3 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -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) {