diff options
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_blit.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_blit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/ilo/ilo_blit.c b/src/gallium/drivers/ilo/ilo_blit.c index f0e9412b794..ad6aa801602 100644 --- a/src/gallium/drivers/ilo/ilo_blit.c +++ b/src/gallium/drivers/ilo/ilo_blit.c @@ -64,9 +64,10 @@ ilo_clear(struct pipe_context *pipe, unsigned stencil) { struct ilo_context *ilo = ilo_context(pipe); + struct ilo_state_vector *vec = &ilo->state_vector; - if ((buffers & PIPE_CLEAR_DEPTHSTENCIL) && ilo->fb.state.zsbuf) { - if (ilo_blitter_rectlist_clear_zs(ilo->blitter, ilo->fb.state.zsbuf, + if ((buffers & PIPE_CLEAR_DEPTHSTENCIL) && vec->fb.state.zsbuf) { + if (ilo_blitter_rectlist_clear_zs(ilo->blitter, vec->fb.state.zsbuf, buffers & PIPE_CLEAR_DEPTHSTENCIL, depth, stencil)) buffers &= ~PIPE_CLEAR_DEPTHSTENCIL; |