summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2011-05-23 11:24:43 -0700
committerKenneth Graunke <[email protected]>2011-06-08 14:31:04 -0700
commitbd265201da44093ce9c583fe04aa7db94f61453c (patch)
treecab8da42f37abb0ec2365264cd537589bf145794 /src/mesa
parente37e196151bd8c10a8475680ed91a82de8f7aad3 (diff)
i965/gen7: Remove stencil renderbuffer from gen7_depth_format.
Since Gen7 doesn't support packed depth/stencil, the stencil buffer can't possibly be relevant for determining the depth format. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/gen7_misc_state.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_misc_state.c b/src/mesa/drivers/dri/i965/gen7_misc_state.c
index a180b678c11..8d5fc70f098 100644
--- a/src/mesa/drivers/dri/i965/gen7_misc_state.c
+++ b/src/mesa/drivers/dri/i965/gen7_misc_state.c
@@ -35,13 +35,10 @@ gen7_depth_format(struct brw_context *brw)
struct gl_context *ctx = &intel->ctx;
struct gl_framebuffer *fb = ctx->DrawBuffer;
struct intel_renderbuffer *drb = intel_get_renderbuffer(fb, BUFFER_DEPTH);
- struct intel_renderbuffer *srb = intel_get_renderbuffer(fb, BUFFER_STENCIL);
struct intel_region *region = NULL;
if (drb)
region = drb->region;
- else if (srb)
- region = srb->region;
else
return BRW_DEPTHFORMAT_D32_FLOAT;