From adf8afa168fe9fe2e4a2b35afc3003040d05273f Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Thu, 27 Jun 2013 11:18:36 -0700 Subject: [PATCH] i965: NULL check depth_mt to quiet static analysis. Reviewed-by: Chad Versace --- src/mesa/drivers/dri/i965/brw_misc_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.30.2