diff options
author | Marek Olšák <[email protected]> | 2017-10-09 18:31:12 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-10-12 19:03:33 +0200 |
commit | c3f3685fd655550bb189aac814126e5feb56db2b (patch) | |
tree | 25bd0a99008f30d778954fe1d99f8308bcd4159c /src/amd/addrlib/gfx9 | |
parent | 1233d32d2ac04bb9b902728d8e0a606daab862cd (diff) |
amd/addrlib: add Addr2IsValidDisplaySwizzleMode
Some "standard" (_S) swizzle modes are displayable on Raven,
even though the micro tile mode says it's not displayable.
Expose the addrlib function to the driver.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/amd/addrlib/gfx9')
-rw-r--r-- | src/amd/addrlib/gfx9/gfx9addrlib.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/amd/addrlib/gfx9/gfx9addrlib.h b/src/amd/addrlib/gfx9/gfx9addrlib.h index b7d12871665..418ccac5142 100644 --- a/src/amd/addrlib/gfx9/gfx9addrlib.h +++ b/src/amd/addrlib/gfx9/gfx9addrlib.h @@ -97,6 +97,9 @@ public: return (pMem != NULL) ? new (pMem) Gfx9Lib(pClient) : NULL; } + virtual BOOL_32 IsValidDisplaySwizzleMode( + const ADDR2_COMPUTE_SURFACE_INFO_INPUT* pIn) const; + protected: Gfx9Lib(const Client* pClient); virtual ~Gfx9Lib(); @@ -405,8 +408,6 @@ private: UINT_32 mip0Width, UINT_32 mip0Height, UINT_32 mip0Depth, UINT_32* pNumMetaBlkX, UINT_32* pNumMetaBlkY, UINT_32* pNumMetaBlkZ) const; - BOOL_32 IsValidDisplaySwizzleMode(const ADDR2_COMPUTE_SURFACE_INFO_INPUT* pIn) const; - Gfx9ChipSettings m_settings; }; |