From 3c3d620cf39ba1755da4faced426739ef653734b Mon Sep 17 00:00:00 2001 From: Xavi Zhang Date: Fri, 1 Aug 2014 02:18:00 -0400 Subject: amdgpu/addrlib: Let Kaveri go general stereo right eye offset padding path Kaveri (2-pipe) macro tiling mode table was initially set to all 4-aspect-ratio so the swizzling path did not work for it and then we chose to pad the offset. We now discover the root cause is that if ratio > 2, the swizzling path does not work. So we can safely use the same path for Kaveri. --- src/amd/addrlib/r800/egbaddrlib.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/amd/addrlib/r800/egbaddrlib.h') diff --git a/src/amd/addrlib/r800/egbaddrlib.h b/src/amd/addrlib/r800/egbaddrlib.h index 25e38964be0..ca1d07d062f 100644 --- a/src/amd/addrlib/r800/egbaddrlib.h +++ b/src/amd/addrlib/r800/egbaddrlib.h @@ -224,12 +224,7 @@ protected: { } - /// Virtual function to check if the height needs extra padding - /// for stereo right eye offset, to avoid bank pipe swizzle - virtual BOOL_32 HwlStereoCheckRightOffsetPadding() const - { - return FALSE; - } + virtual UINT_32 HwlStereoCheckRightOffsetPadding(ADDR_TILEINFO* pTileInfo) const; virtual BOOL_32 HwlReduceBankWidthHeight( UINT_32 tileSize, UINT_32 bpp, ADDR_SURFACE_FLAGS flags, UINT_32 numSamples, -- cgit v1.2.3