summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300
diff options
context:
space:
mode:
authorPauli Nieminen <[email protected]>2009-08-21 20:44:54 +0300
committerPauli Nieminen <[email protected]>2009-08-21 20:47:35 +0300
commitb7ec2ebe33608f9107ff7cae6b974edc8097cecd (patch)
tree1504d693eeb3a0e78830c5645cc107e57374223f /src/mesa/drivers/dri/r300
parent0bf4308580a88ac672f84472cb76e0236d7f8902 (diff)
radeon: Improve state emit code.
Trying to make understanding code easier with small refactoring and renaming.
Diffstat (limited to 'src/mesa/drivers/dri/r300')
-rw-r--r--src/mesa/drivers/dri/r300/r300_draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_draw.c b/src/mesa/drivers/dri/r300/r300_draw.c
index 1437535760c..c8d2f44fa18 100644
--- a/src/mesa/drivers/dri/r300/r300_draw.c
+++ b/src/mesa/drivers/dri/r300/r300_draw.c
@@ -582,12 +582,12 @@ static GLuint r300PredictTryDrawPrimsSize(GLcontext *ctx, GLuint nr_prims)
+ SCISSORS_BUFSZ
+ FIREAOS_BUFSZ )*nr_prims;
- state_size= radeonCountEmitSize(&r300->radeon);
+ state_size = radeonCountStateEmitSize(&r300->radeon);
flushed = rcommonEnsureCmdBufSpace(&r300->radeon,
dwords + state_size,
__FUNCTION__);
if (flushed)
- dwords += radeonCountEmitSize(&r300->radeon);
+ dwords += radeonCountStateEmitSize(&r300->radeon);
else
dwords += state_size;