freedreno: fix depth usage logic
authorJonathan Marek <jonathan@marek.ca>
Mon, 21 Jan 2019 16:04:47 +0000 (11:04 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 29 Jan 2019 20:22:33 +0000 (20:22 +0000)
commitc93d77431f711a39a638c43541635cd95924bc2d
treee1a81b1000a607275df202277f18c4bf8f72b1a6
parentbcefa0f1cb99229b6dc241ff50b2c88da1dad950
freedreno: fix depth usage logic

Depth can be used even when there is no restore/resolve of depth. This
happens when the depth buffer is invalidated after rendering to avoid
the resolve operation.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
src/gallium/drivers/freedreno/freedreno_gmem.c