i965: Only enable depth IZ signals if there's an actual depthbuffer.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 2 Aug 2018 18:31:27 +0000 (11:31 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 9 Aug 2018 19:33:38 +0000 (12:33 -0700)
commit11b9f63a7403225c75de07a658a71063bde99ac9
treeaf9e93d3babffcbbcda98345b4cb53131fcb9e01
parent63a6b719d98fb1ad58ae93c2de859e6d4bfa8b8b
i965: Only enable depth IZ signals if there's an actual depthbuffer.

According to the G45 PRM Volume 2 Page 265 we're supposed to only set
these signals when there is an actual depth buffer.  Note that we
already do this for the stencil buffer by virtue of brw->stencil_enabled
invoking _mesa_is_stencil_enabled(ctx) which checks whether the current
drawbuffer's visual has stencil bits (which is updated based on what
buffers are bound).  We just need to do it for depth as well.

Not observed to fix anything.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_wm.c