i965/blorp: Remove unnecessary test in gen7_blorp_emit_depth_stencil_config.
authorPaul Berry <stereotype441@gmail.com>
Tue, 9 Apr 2013 12:58:43 +0000 (05:58 -0700)
committerPaul Berry <stereotype441@gmail.com>
Wed, 10 Apr 2013 20:17:53 +0000 (13:17 -0700)
commit42767dc22fdc69d72622c13521f2e703470170b3
tree3f613dddc449f66ee4bd9e2cbe4b2d181a7e409a
parent34c3f986419340ae695d75103bcc7907a97d0f13
i965/blorp: Remove unnecessary test in gen7_blorp_emit_depth_stencil_config.

gen7_blorp_emit_depth_stencil_config() is only called when
params->depth.mt is non-null.  Therefore, it's not necessary to do an
"if (params->depth.mt)" test inside it.  The presence of this if test
was misleading static analysis tools (and briefly, me) into thinking
that gen7_blorp_emit_depth_stencil_config() might sometimes access
uninitialized data and dereference a null pointer.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen7_blorp.cpp