i915: Allocate the sys_buffer using _mesa_align_malloc
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 26 Feb 2014 20:48:56 +0000 (12:48 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 28 Feb 2014 23:05:39 +0000 (15:05 -0800)
commitff2cbf9e0ca0ee46a15add1a42cd48705c84e0de
tree74d47cbb4b95a6c15d7b29957f8aa886e4717517
parent8ba157006fe98bca96b79bea1394b0c33ddf4ad3
i915: Allocate the sys_buffer using _mesa_align_malloc

Though it won't matter on Linux, use _mesa_align_free to release it.
Since i965 doesn't have sys_buffer, I overlooked this in the
GL_ARB_map_buffer_alignment work a few months ago.  Fixes i915 (and
presumably i830) regressions in ARB_map_buffer_range tests and the
failure in arb_map_buffer_alignment-sanity_test.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74960
Cc: "10.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i915/intel_buffer_objects.c