diff options
author | Dave Airlie <[email protected]> | 2010-01-24 15:37:23 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-01-24 15:37:23 +1000 |
commit | e9bb06441eb4a50e9927dcc09289ec63b0e2cf0a (patch) | |
tree | 945cbcc3b10c44a60a1d9f3c1f8fed646e70e0ab | |
parent | 232ddfec24d2e707c4e374d817c559cc6415d609 (diff) |
r300g: avoid the use of goto
I was being lazy on Sunday morning, Droste on irc called me on it ;-)
-rw-r--r-- | src/gallium/drivers/r300/r300_emit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c index e08e6c22921..e07185b7783 100644 --- a/src/gallium/drivers/r300/r300_emit.c +++ b/src/gallium/drivers/r300/r300_emit.c @@ -1105,10 +1105,8 @@ void r300_emit_dirty_state(struct r300_context* r300) /* Make sure we have at least 2*1024 spare dwords. */ /* XXX It would be nice to know the number of dwords we really need to * XXX emit. */ -again: - if (!r300->winsys->check_cs(r300->winsys, dwords)) { + while (!r300->winsys->check_cs(r300->winsys, dwords)) { r300->context.flush(&r300->context, 0, NULL); - goto again; } if (r300->dirty_state & R300_NEW_QUERY) { |