freedreno/a6xx: fix VSC bug with larger # of tiles
authorRob Clark <robdclark@gmail.com>
Tue, 30 Oct 2018 12:41:58 +0000 (08:41 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 6 Nov 2018 13:56:21 +0000 (08:56 -0500)
commit3bbad81c80bd0c7e9cb4087e16b006a2b7250bc8
treeec4e4694acdd942c0a548b8a2b27ac7ed9eee77d
parent2d9c3a5db2e4b3746e9c938b593b624de4bc5340
freedreno/a6xx: fix VSC bug with larger # of tiles

At higher resolutions with the addition of MSAA, the number of tiles
can increase to the point where we use more than one VSC pipe per
tile.  Which would cause us to calculate an out-of-bounds offset for
VSC_SIZE_ADDRESS.  So don't try to be clever, just always put it at
a fixed offset assuming the max 32 VSC pipes in use.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a6xx/fd6_gmem.c