Re: [Mesa-dev] [PATCH] gallium: fix behavior of pipe_buffer_map_range

2012-01-03 Thread Brian Paul
On Sun, Jan 1, 2012 at 10:27 AM, Marek Olšák wrote: > To match what transfer_map returns. Really, subtracting the offset leads > to bugs if someone expects it to work exactly like transfer_map. > --- >  src/gallium/auxiliary/util/u_inlines.h       |    7 ++- >  src/gallium/auxiliary/util/u_upl

[Mesa-dev] [PATCH] gallium: fix behavior of pipe_buffer_map_range

2012-01-01 Thread Marek Olšák
To match what transfer_map returns. Really, subtracting the offset leads to bugs if someone expects it to work exactly like transfer_map. --- src/gallium/auxiliary/util/u_inlines.h |7 ++- src/gallium/auxiliary/util/u_upload_mgr.c|4 +++- src/gallium/drivers/svga/svga_state_v