i915: Ensure that intel_bufferobj_map_range meets alignment guarantees
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 20 Dec 2013 20:58:41 +0000 (12:58 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 20 Jan 2014 19:40:41 +0000 (11:40 -0800)
commit8468f437e880a0eeed94d79650ecb9b680fdeb02
treefd6aeaaf021cdf6695a7c5fbf02d9522abc1502b
parent1ec663ab193e3dc87eb8729de4f0ecee7027961b
i915: Ensure that intel_bufferobj_map_range meets alignment guarantees

Not actually tested, but the changes are identical to the i965 changes
that are tested.

v2: Remove MAX2(64, ...).  Suggested by Ken (in the i965 version of this
patch).

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Cc: Siavash Eliasi <siavashserver@gmail.com>
src/mesa/drivers/dri/i915/intel_buffer_objects.c