mesa: Add bufferobj_range_mapped function
authorPi Tabred <servuswiegehtz@yahoo.de>
Sat, 14 Dec 2013 17:32:00 +0000 (10:32 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 18 Dec 2013 16:06:51 +0000 (09:06 -0700)
commit84c4ea571d17a6798a0fae049a914b97165c56f7
treefad08758bb4cfaff9a9512d3af4fd87dc31b642f
parent72d872ad824110402a4455cb2b3aadb5c5160f89
mesa: Add bufferobj_range_mapped function

Add function to test if the buffer is already mapped and if so,
if the mapped range overlaps the given range.
Modify the _mesa_InvalidateBufferSubData function to use
the new function.

Enable buffer_object_subdata_range_good() to use bufferobj_range_mapped

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/bufferobj.c