amdgpu/addrlib: Change to compute TC compatible stencil info
authorCarlos Xiong <clever.xiong@amd.com>
Tue, 10 Jun 2014 07:43:44 +0000 (03:43 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 30 Mar 2017 12:44:33 +0000 (14:44 +0200)
commitd52e0bbfe6e7f3745a2193673c49e80b9f005123
tree40279f58e7a962fcf25cb0b177cd23726bbcfcf7
parent6c65f256e2e143914cec1326b35aa3b8d4622256
amdgpu/addrlib: Change to compute TC compatible stencil info

Change the logic to compute tc compatible stencil info via depth's
tileIndex instead of using depth's tileInfo. So the clients can get
the stencil's tileInfo computed from macroModeTable. If the stencil
tileInfo is same as depth tileInfo, then stencil is tc compatible;
otherwise, stencil is not tc compatible. The current suggestion is to
create another stencil buffer with the tc compatible tileInfo, use
depth-to-color copy to decompress and tile convert the rendered
stencil to tc compoatible stencil (And use the new stencil buffer to
program TC).
src/amd/addrlib/core/addrlib.cpp
src/amd/addrlib/r800/ciaddrlib.cpp