Re: [Mesa-dev] [PATCH] winsys/radeon: Use a single buffer cache manager again

2014-10-16 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Thu, Oct 16, 2014 at 8:58 AM, Michel Dänzer wrote: > From: Michel Dänzer > > The trick is to generate a unique buffer usage value for each possible > combination of domains and flags, with only one bit set each for the > domains and flags. This ensures pb_chec

[Mesa-dev] [PATCH] winsys/radeon: Use a single buffer cache manager again

2014-10-15 Thread Michel Dänzer
From: Michel Dänzer The trick is to generate a unique buffer usage value for each possible combination of domains and flags, with only one bit set each for the domains and flags. This ensures pb_check_usage() only returns TRUE when the domains and flags the cached buffer was created for exactly m