commit | c4db733facd01f8f7503dec662ff79d278b103c1 | [log] [tgz] |
---|---|---|
author | Michel Dänzer <michel.daenzer@amd.com> | Thu Oct 16 15:10:20 2014 +0900 |
committer | Michel Dänzer <michel@daenzer.net> | Fri Oct 17 17:09:49 2014 +0900 |
tree | ee5d41e31f8690272c48b5eaa12b475945f59d13 | |
parent | e1d363b3ffbfb85133a6871c63068a4ba841b2cd [diff] |
winsys/radeon: Use a single buffer cache manager again 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 match the requested ones. Reviewed-by: Marek Olšák <marek.olsak@amd.com>