Mesa (master): r600g: break out of search for reloc bo after finding it.
Dave Airlie
airlied at kemper.freedesktop.org
Mon Oct 4 06:00:16 UTC 2010
Module: Mesa
Branch: master
Commit: 92aba9c1f54b2681aed11f572f74bda941f19a54
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=92aba9c1f54b2681aed11f572f74bda941f19a54
Author: Dave Airlie <airlied at redhat.com>
Date: Mon Oct 4 15:58:39 2010 +1000
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 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 2ca5a45..c67c935 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) {
More information about the mesa-commit
mailing list