freedreno/a6xx: Use the right resource for separate stencil stride

Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org>
This commit is contained in:
Kristian H. Kristensen 2019-01-31 15:00:34 -08:00
parent 24b4172375
commit 6d1a7bdba3
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ emit_zs(struct fd_ringbuffer *ring, struct pipe_surface *zsbuf,
if (rsc->stencil) {
struct fd_resource_slice *slice = fd_resource_slice(rsc->stencil, 0);
stride = slice->pitch * rsc->cpp;
stride = slice->pitch * rsc->stencil->cpp;
size = slice->size0;
uint32_t base = gmem ? gmem->zsbuf_base[1] : 0;