summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2012-08-14 11:28:27 -0700
committerChad Versace <[email protected]>2012-08-27 07:47:09 -0700
commita2a7e640a4e81c906e42a98602c84757c37ed0b1 (patch)
treef45c4869e37bdb3c8e4fb062a29a0728bded698c /src
parent7f0fcf17c342dcb788c2182b20973c48806ee498 (diff)
i965: Remove redundant null check
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 <[email protected]> Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c
index ccfc306cac6..7ae3f6fc28a 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.c
+++ b/src/mesa/drivers/dri/i965/brw_draw.c
@@ -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++) {