From: Rob Clark Date: Fri, 14 Sep 2018 14:35:11 +0000 (-0400) Subject: freedreno/a6xx: fix gpu crash with separate-stencil X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=93db15d30068a8dc4084bdb3ba58573b426836d7;p=mesa.git 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 --- 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));