summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2010-10-04 15:58:39 +1000
committerDave Airlie <[email protected]>2010-10-04 15:58:39 +1000
commit92aba9c1f54b2681aed11f572f74bda941f19a54 (patch)
treefab546b4192f7397dc72424f2ee4b152b3038b21
parent14bf92ba19373d54e9909bbdda5e430e0affea37 (diff)
r600g: break out of search for reloc bo after finding it.
this function was taking quite a lot of pointless CPU.
-rw-r--r--src/gallium/winsys/r600/drm/r600_hw_context.c1
1 files changed, 1 insertions, 0 deletions
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) {