summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_context.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-06-12 22:07:41 +0200
committerMarek Olšák <maraeo@gmail.com>2010-06-13 17:43:38 +0200
commitae182296ce28f1efc8a08d9ddcf6b8a79b1bc14b (patch)
treecfaee68b1cd212978b2172411f9e3caa160d1eb7 /src/gallium/drivers/r300/r300_context.c
parent7d5230ce90b5271b440da81c64ef20cdcb61491d (diff)
r300g: replace r300_cs_info with simplier get_cs_free_dwords
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.c')
-rw-r--r--src/gallium/drivers/r300/r300_context.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c
index 9425f93a27..43e567c432 100644
--- a/src/gallium/drivers/r300/r300_context.c
+++ b/src/gallium/drivers/r300/r300_context.c
@@ -242,10 +242,7 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen,
boolean r300_check_cs(struct r300_context *r300, unsigned size)
{
- struct r300_cs_info cs_info;
-
- r300->rws->get_cs_info(r300->rws, &cs_info);
- return size <= cs_info.free;
+ return size <= r300->rws->get_cs_free_dwords(r300->rws);
}
void r300_finish(struct r300_context *r300)