diff options
author | Matt Turner <[email protected]> | 2013-06-27 11:18:36 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-06-29 15:19:08 -0700 |
commit | adf8afa168fe9fe2e4a2b35afc3003040d05273f (patch) | |
tree | 1e837f1c8e90beb5926e60aa2c87edfd06098406 /src/mesa/drivers/dri/i965/brw_misc_state.c | |
parent | 7d430bfab98f3639cb9d354d1d42f3c0ec5a9e76 (diff) |
i965: NULL check depth_mt to quiet static analysis.
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_misc_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_misc_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. |