freedreno/a6xx: separate stencil restore/resolve fixes
authorRob Clark <robdclark@gmail.com>
Thu, 10 Jan 2019 13:32:51 +0000 (08:32 -0500)
committerRob Clark <robdclark@gmail.com>
Thu, 10 Jan 2019 19:21:39 +0000 (14:21 -0500)
commiteb625d30b7b01db98b28a97ab6c15c9d3459fa74
treebde5a6a461b0538464ebaa48739579f991eedcfd
parent04aff7e42b88fdd251617436a589ea0be2f44093
freedreno/a6xx: separate stencil restore/resolve fixes

Previously we'd use format/etc from the primary (z32) buffer for the
stencil (s8), due to confusion about rsc vs psurf.  Rework this to drop
extra arg and push down handling of separate stencil case (and make sure
we take the fmt from the right place).

This doesn't completely fix separate-stencil, but at least it avoids the
GPU scribbling over random other cmdstream buffers and causing a bunch
of bogus fails in dEQP.

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