i965/brw: Fix emit_depthbuffer() when packed depth/stencil texture is attached
authorChad Versace <chad@chad-versace.us>
Fri, 10 Jun 2011 17:27:54 +0000 (10:27 -0700)
committerChad Versace <chad@chad-versace.us>
Fri, 10 Jun 2011 17:37:30 +0000 (10:37 -0700)
commit97d230b0bcf8ed001f685ebac314fbd8e1955718
tree129e8dd33f8e7716592af0d7a84fa6f331111dd8
parenteca3e910edbaf3074f3e2c3afdfca1dccd52f2a1
i965/brw: Fix emit_depthbuffer() when packed depth/stencil texture is attached

If either depth or stencil buffer has packed depth/stencil format, then do
not use separate stencil.

Before this commit, emit_depthbuffer() incorrectly assumed that the
texture's stencil renderbuffer wrapper was a *separate* stencil buffer,
because the depth and stencil renderbuffer wrappers are distinct for
depth/stencil textures (that is, depth_irb != stencil_irb).

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38134
Signed-off-by: Chad Versace <chad@chad-versace.us>
src/mesa/drivers/dri/i965/brw_misc_state.c