diff options
author | Keith Packard <keithp@keithp.com> | 2009-05-01 11:44:13 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-05-01 11:54:26 -0700 |
commit | 1142353b487c155a31011923fbd08ec67e60f505 (patch) | |
tree | 11fad64eded376e4b8aaf6764b5786a29ec6a24e | |
parent | 8232177a005127a0001af4b14c3beb766958ef11 (diff) |
intel_batch_start_atomic: fix size passed to intel_batch_require_space (*4)
intel_batch_start_atomic takes an argument in 32-bit units, and so it must
multiply that by 4 before passing it to intel_batch_require_space, which
takes an argument in bytes.
We should figure out what units we want to use and use the same everywhere...
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/i830_batchbuffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_batchbuffer.h b/src/i830_batchbuffer.h index 6e0aaa79..02834381 100644 --- a/src/i830_batchbuffer.h +++ b/src/i830_batchbuffer.h @@ -57,7 +57,7 @@ intel_batch_start_atomic(ScrnInfoPtr pScrn, unsigned int sz) I830Ptr pI830 = I830PTR(pScrn); assert(!pI830->in_batch_atomic); - intel_batch_require_space(pScrn, pI830, sz); + intel_batch_require_space(pScrn, pI830, sz * 4); pI830->in_batch_atomic = TRUE; pI830->batch_atomic_limit = pI830->batch_used + sz * 4; |