mesa: Set gl_constants::MinMapBufferAlignment
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 22 Jan 2014 16:28:49 +0000 (08:28 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 23 Jan 2014 16:50:58 +0000 (08:50 -0800)
commite4fcae0755d8a369b657f2ada22815ea77312fbe
tree1e523497c42bc589517dc3764d10fe755eabe1de
parent7a0f26dec9aad75834d3314d5e306d49729b37f1
mesa: Set gl_constants::MinMapBufferAlignment

Leaving it set to zero isn't really correct since every allocation has
at least an alignment of 1 byte.  It also caused a problem in the i965
driver after I removed the MAX(64, ...) from the alignment calculation.
That's what I get for changing a patch without retesting it. :(

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73907
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: Lu Hua <huax.lu@intel.com>
src/mesa/main/context.c