From 93db15d30068a8dc4084bdb3ba58573b426836d7 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Fri, 14 Sep 2018 10:35:11 -0400 Subject: [PATCH] freedreno/a6xx: fix gpu crash with separate-stencil Fixes a crash in (of all things) dEQP-GLES2.info.vendor with --deqp-surface-type=fbo.. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/a6xx/fd6_gmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c b/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c index 981cf425f55..8cda9fdedf9 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c @@ -174,7 +174,7 @@ emit_zs(struct fd_ringbuffer *ring, struct pipe_surface *zsbuf, size = slice->size0; uint32_t base = gmem ? gmem->zsbuf_base[1] : 0; - OUT_PKT4(ring, REG_A6XX_RB_STENCIL_INFO, 5); + OUT_PKT4(ring, REG_A6XX_RB_STENCIL_INFO, 6); OUT_RING(ring, A6XX_RB_STENCIL_INFO_SEPARATE_STENCIL); OUT_RING(ring, A6XX_RB_STENCIL_BUFFER_PITCH(stride)); OUT_RING(ring, A6XX_RB_STENCIL_BUFFER_ARRAY_PITCH(size)); -- 2.30.2