i965: NULL check depth_mt to quiet static analysis.
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 7e41c849117552ac5c8f7b7da656a2107f55c22a..23faee6150c033510a039124cfe08c6a186536b2 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.