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:44:13 -0700 |
commit | 430e845406b5f6e5b640bca6958e0d69b0e748c0 (patch) | |
tree | cfd73e130d90187b454510a598f1e4d2a41c41db | |
parent | 8fd7fc619273316143257ae1a56fce86c00051b1 (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; |