projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
232ddfe
)
r300g: avoid the use of goto
author
Dave Airlie
<airlied@redhat.com>
Sun, 24 Jan 2010 05:37:23 +0000
(15:37 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Sun, 24 Jan 2010 05:37:23 +0000
(15:37 +1000)
I was being lazy on Sunday morning, Droste on irc called me on it ;-)
src/gallium/drivers/r300/r300_emit.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_emit.c
b/src/gallium/drivers/r300/r300_emit.c
index e08e6c229213214cbf53c14a672bcd8af884e4b9..e07185b7783375e7bb23920b379451d18e7aae31 100644
(file)
--- 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) {