diff options
author | Rob Clark <[email protected]> | 2019-02-21 08:26:18 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2019-02-21 09:06:06 -0500 |
commit | 908d5ee9eb5d00a114a9ee9e6dc595a894cb7b88 (patch) | |
tree | dd9472363ab0f10fa9ff0191a97f56939b44085c /src/freedreno | |
parent | 0629b2a462a1dfc729fb487419b3c2749ef9e728 (diff) |
freedreno/a6xx: enable tiled images
Turns out we can write to tiled images as well as read. This avoids
having to linearize or do the tiling in the shader.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/freedreno')
-rw-r--r-- | src/freedreno/registers/a6xx.xml.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/freedreno/registers/a6xx.xml.h b/src/freedreno/registers/a6xx.xml.h index 1d8ca525602..78869bf0469 100644 --- a/src/freedreno/registers/a6xx.xml.h +++ b/src/freedreno/registers/a6xx.xml.h @@ -5406,6 +5406,12 @@ static inline uint32_t A6XX_TEX_CONST_10_FLAG_BUFFER_ARRAY_PITCH(uint32_t val) #define REG_A6XX_TEX_CONST_15 0x0000000f #define REG_A6XX_IBO_0 0x00000000 +#define A6XX_IBO_0_TILE_MODE__MASK 0x00000003 +#define A6XX_IBO_0_TILE_MODE__SHIFT 0 +static inline uint32_t A6XX_IBO_0_TILE_MODE(enum a6xx_tile_mode val) +{ + return ((val) << A6XX_IBO_0_TILE_MODE__SHIFT) & A6XX_IBO_0_TILE_MODE__MASK; +} #define A6XX_IBO_0_FMT__MASK 0x3fc00000 #define A6XX_IBO_0_FMT__SHIFT 22 static inline uint32_t A6XX_IBO_0_FMT(enum a6xx_tex_fmt val) |