aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-08-26 14:36:57 -0700
committerEric Anholt <[email protected]>2012-08-28 11:43:04 -0700
commit707f242c4be9bd6ea9140b9a7a7673ae5e4e191d (patch)
tree303c3aa2c95986531d3df0c203857086e09b46fd /src/mesa
parent70f9dbe298043f0e3914e6956ddcc0a098f7eca3 (diff)
i965: Drop manual hiz resolves in span rendering.
swrast uses MapRenderbuffer, which leads to intel_miptree_map, which does the depth resolve. Reviewed-by: Chad Versace <[email protected]> Acked-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/intel/intel_span.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_span.c b/src/mesa/drivers/dri/intel/intel_span.c
index b0dc72023f3..3dc7f21f0bd 100644
--- a/src/mesa/drivers/dri/intel/intel_span.c
+++ b/src/mesa/drivers/dri/intel/intel_span.c
@@ -117,8 +117,6 @@ static void
intel_span_resolve_buffers(struct intel_context *intel)
{
struct gl_context *ctx = &intel->ctx;
- struct intel_renderbuffer *draw_irb;
- struct intel_renderbuffer *read_irb;
struct intel_texture_object *tex_obj;
/* Resolve depth buffer of each enabled texture. */
@@ -131,14 +129,6 @@ intel_span_resolve_buffers(struct intel_context *intel)
continue;
intel_miptree_all_slices_resolve_depth(intel, tex_obj->mt);
}
-
- /* Resolve each attached depth buffer. */
- draw_irb = intel_get_renderbuffer(ctx->DrawBuffer, BUFFER_DEPTH);
- read_irb = intel_get_renderbuffer(ctx->ReadBuffer, BUFFER_DEPTH);
- if (draw_irb)
- intel_renderbuffer_resolve_depth(intel, draw_irb);
- if (read_irb != draw_irb && read_irb)
- intel_renderbuffer_resolve_depth(intel, read_irb);
}
/**