diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2014-04-10 11:43:04 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2014-04-14 17:58:45 +0900 |
commit | 409786a8f780d78a83bf0bddea5d37117ff6fa39 (patch) | |
tree | 3a690895304c2810776a9b529a0dfa2bb1402afd /src/radeon.h | |
parent | aecf1c4e5f4718adcfb85836830d065d3f4f97a5 (diff) |
glamor: Fix test for creating shared pixmaps
The pixmap usage hint is not a bitmask in general. The test for
CREATE_PIXMAP_USAGE_SHARED was incorrectly triggering for a glamor internal
usage hint being added in the xserver tree.
Tested-by: Ed Tomlinson <edtoml@gmail.com>
Diffstat (limited to 'src/radeon.h')
-rw-r--r-- | src/radeon.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/radeon.h b/src/radeon.h index f364b676..136a430b 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -794,6 +794,13 @@ enum { RADEON_CREATE_PIXMAP_SZBUFFER = 0x80000000, /* for eg */ }; +#define RADEON_CREATE_PIXMAP_TILING_FLAGS \ + (RADEON_CREATE_PIXMAP_TILING_MICRO_SQUARE | \ + RADEON_CREATE_PIXMAP_TILING_MACRO | \ + RADEON_CREATE_PIXMAP_TILING_MICRO | \ + RADEON_CREATE_PIXMAP_DEPTH | \ + RADEON_CREATE_PIXMAP_SZBUFFER) + /* Compute log base 2 of val. */ static __inline__ int |