gallium: fix behavior of pipe_buffer_map_range
authorMarek Olšák <maraeo@gmail.com>
Sun, 1 Jan 2012 16:12:35 +0000 (17:12 +0100)
committerMarek Olšák <maraeo@gmail.com>
Thu, 5 Jan 2012 17:29:11 +0000 (18:29 +0100)
commit214b87aa0469a12ea72d624cfaee0ca46179ec5f
tree1ccbe951a20a1443b21343d36749a83eae31fbfd
parentfb0aa34fab77fe8a7fc3253d5ecf635ce37a21c7
gallium: fix behavior of pipe_buffer_map_range

To match what transfer_map returns. Really, subtracting the offset leads
to bugs if someone expects it to work exactly like transfer_map.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_inlines.h
src/gallium/auxiliary/util/u_upload_mgr.c
src/gallium/drivers/svga/svga_state_vs.c
src/mesa/state_tracker/st_cb_bufferobjects.c
src/mesa/state_tracker/st_draw.c