From: Matt Turner Date: Thu, 27 Jun 2013 18:18:36 +0000 (-0700) Subject: i965: NULL check depth_mt to quiet static analysis. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=adf8afa168fe9fe2e4a2b35afc3003040d05273f;p=mesa.git i965: NULL check depth_mt to quiet static analysis. Reviewed-by: Chad Versace --- diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c index 7e41c849117..23faee6150c 100644 --- a/src/mesa/drivers/dri/i965/brw_misc_state.c +++ b/src/mesa/drivers/dri/i965/brw_misc_state.c @@ -598,7 +598,7 @@ brw_emit_depthbuffer(struct brw_context *brw) depth_mt = stencil_mt; } - if (depth_irb) { + if (depth_irb && depth_mt) { /* When 3DSTATE_DEPTH_BUFFER.Separate_Stencil_Enable is set, then * 3DSTATE_DEPTH_BUFFER.Surface_Format is not permitted to be a packed * depthstencil format.