freedreno/a6xx: fix gpu crash with separate-stencil
authorRob Clark <robdclark@gmail.com>
Fri, 14 Sep 2018 14:35:11 +0000 (10:35 -0400)
committerRob Clark <robdclark@gmail.com>
Thu, 27 Sep 2018 19:31:34 +0000 (15:31 -0400)
Fixes a crash in (of all things) dEQP-GLES2.info.vendor with
--deqp-surface-type=fbo..

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

index 981cf425f559eddb742d512b918590c756a38386..8cda9fdedf99914b026a8d0e44a267f913c0de09 100644 (file)
@@ -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));