Re: [Mesa-dev] [PATCH] intel: Add 'mode' param to intel_region_map

2011-10-17 Thread Eric Anholt
On Mon, 17 Oct 2011 07:40:57 -0700, Chad Versace wrote: > The 'mode' param is a bitset of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT. > > A future commit will perform buffer resolves in intel_region_map(). So, > even though the access mode is irrelevant to the GTT, the extra > information allows us to in

[Mesa-dev] [PATCH] intel: Add 'mode' param to intel_region_map

2011-10-17 Thread Chad Versace
The 'mode' param is a bitset of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT. A future commit will perform buffer resolves in intel_region_map(). So, even though the access mode is irrelevant to the GTT, the extra information allows us to intelligently avoid unneccessary buffer resolves. Signed-off-by: Cha