i965: Remove redundant null check
authorChad Versace <chad.versace@linux.intel.com>
Tue, 14 Aug 2012 18:28:27 +0000 (11:28 -0700)
committerChad Versace <chad.versace@linux.intel.com>
Mon, 27 Aug 2012 14:47:09 +0000 (07:47 -0700)
intel_renderbuffer_resolve_hiz checks if rb->mt is null, so there is no
need for the caller to do so.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_draw.c

index ccfc306cac622d09d33ff170be36d152284b54f3..7ae3f6fc28a3fed9c7e7d251021527fd21d98ea4 100644 (file)
@@ -305,9 +305,8 @@ brw_predraw_resolve_buffers(struct brw_context *brw)
 
    /* Resolve the depth buffer's HiZ buffer. */
    depth_irb = intel_get_renderbuffer(ctx->DrawBuffer, BUFFER_DEPTH);
-   if (depth_irb && depth_irb->mt) {
+   if (depth_irb)
       intel_renderbuffer_resolve_hiz(intel, depth_irb);
-   }
 
    /* Resolve depth buffer of each enabled depth texture. */
    for (int i = 0; i < BRW_MAX_TEX_UNIT; i++) {