From 92aba9c1f54b2681aed11f572f74bda941f19a54 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 4 Oct 2010 15:58:39 +1000 Subject: [PATCH] r600g: break out of search for reloc bo after finding it. this function was taking quite a lot of pointless CPU. --- src/gallium/winsys/r600/drm/r600_hw_context.c | 1 + 1 file changed, 1 insertion(+) 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) {