diff options
author | Christoph Bumiller <[email protected]> | 2010-12-09 15:08:29 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2010-12-09 15:08:29 +0100 |
commit | 6e753e3c2950d486aa0e06dff587ef53b9c4ebc4 (patch) | |
tree | 6e5abcdc30194002a40b12aff81ebf38ffff84c3 /src/gallium/drivers/nvc0/nvc0_winsys.h | |
parent | 3ef1616b63507db01f54efa882a9cf28839cfdf3 (diff) |
nvc0: use tile flags in a way compatible with nouveau
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_winsys.h')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_winsys.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_winsys.h b/src/gallium/drivers/nvc0/nvc0_winsys.h index e97ca8e90da..4da30ecb86f 100644 --- a/src/gallium/drivers/nvc0/nvc0_winsys.h +++ b/src/gallium/drivers/nvc0/nvc0_winsys.h @@ -40,6 +40,12 @@ extern uint64_t nouveau_bo_gpu_address(struct nouveau_bo *); int nouveau_pushbuf_flush(struct nouveau_channel *, unsigned min); +static inline uint32_t +nouveau_bo_tile_layout(struct nouveau_bo *bo) +{ + return bo->tile_flags & NOUVEAU_BO_TILE_LAYOUT_MASK; +} + static INLINE void WAIT_RING(struct nouveau_channel *chan, unsigned size) { |