i965: NULL check depth_mt to quiet static analysis.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
Matt Turner 2013-06-27 11:18:36 -07:00
parent 7d430bfab9
commit adf8afa168

View 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.