Bug #9604: Fix a static buffer allocation failure.
authorEric Anholt <eric@anholt.net>
Sun, 21 Jan 2007 02:09:32 +0000 (18:09 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 26 Jan 2007 22:23:29 +0000 (14:23 -0800)
commit5a3d9853958993174f13c8cff6bcf11993a48f65
treed6d32d169f3e91d69dc0f2adb27893368ccc84a9
parent869b8ad499717eda4a1be04de4e516134123402c
Bug #9604: Fix a static buffer allocation failure.

The pool that the static buffer got allocated from was sized by pitch * height,
but the buffer generated from it had its size aligned to a tile boundary, so
allocation failed if pitch * height wasn't aligned.  However, the 2d driver
ensures that the size ends at a tile boundary, so just pass the 2d driver's
buffer size rather than calculating it.
src/mesa/drivers/dri/i965/intel_context.c
src/mesa/drivers/dri/i965/intel_regions.c
src/mesa/drivers/dri/i965/intel_regions.h