diff options
author | Corbin Simpson <[email protected]> | 2010-05-12 10:09:50 -0700 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2010-05-12 10:16:19 -0700 |
commit | 505bea835501d834b0c999700d06280aa57cb6b1 (patch) | |
tree | a48abe969601e0bd833f8a28dd8b1c0079c880db /src/gallium/drivers/r300/r300_render.c | |
parent | c037c376fbf468020caf2469e83e7a66c18e6f86 (diff) |
r300g: Immediate mode won't work with SW TCL right now.
This could be done later of course. SW TCL should have a much different
threshold because it's much more worth it.
Diffstat (limited to 'src/gallium/drivers/r300/r300_render.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_render.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c index 4d7699793e3..db71960e7ec 100644 --- a/src/gallium/drivers/r300/r300_render.c +++ b/src/gallium/drivers/r300/r300_render.c @@ -198,7 +198,15 @@ static boolean immd_is_good_idea(struct r300_context *r300, unsigned vertex_element_count = r300->velems->count; unsigned i, vbi; - if (count > 10 || DBG_ON(r300, DBG_NO_IMMD)) { + if (DBG_ON(r300, DBG_NO_IMMD)) { + return FALSE; + } + + if (r300->draw) { + return FALSE; + } + + if (count > 10) { return FALSE; } |