i965: NULL check depth_mt to quiet static analysis. 95/7295/1
authorMatt Turner <mattst88@gmail.com>
Thu, 27 Jun 2013 18:18:36 +0000 (11:18 -0700)
committerMatt Turner <mattst88@gmail.com>
Sat, 29 Jun 2013 22:19:08 +0000 (15:19 -0700)
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_misc_state.c

index 7e41c84..23faee6 100644 (file)
@@ -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.