Commit 93db15d3 authored by Rob Clark's avatar Rob Clark 💬

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's avatarRob Clark <robdclark@gmail.com>
parent a52ef80d
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment