summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri/drisw.c
diff options
context:
space:
mode:
authorPark, Jeongmin <[email protected]>2015-02-07 17:53:48 +0900
committerMarek Olšák <[email protected]>2015-02-07 12:12:00 +0100
commit0467a52dc3f7d51eeb51179ce2f9871758ecacb1 (patch)
tree1118c0ae1efa56a9b60fd27754d1900cfd56eb84 /src/gallium/state_trackers/dri/drisw.c
parent2e6ba6afdb62e80689b844c7267272d261db172c (diff)
st/dri: Make depth buffer optional for postprocessing
Since only pp_jimenezmlaa uses depth buffer, we can make it optional. Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/dri/drisw.c')
-rw-r--r--src/gallium/state_trackers/dri/drisw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/dri/drisw.c b/src/gallium/state_trackers/dri/drisw.c
index 8d9acd6af51..5f69a2d670e 100644
--- a/src/gallium/state_trackers/dri/drisw.c
+++ b/src/gallium/state_trackers/dri/drisw.c
@@ -172,7 +172,7 @@ drisw_swap_buffers(__DRIdrawable *dPriv)
ptex = drawable->textures[ST_ATTACHMENT_BACK_LEFT];
if (ptex) {
- if (ctx->pp && drawable->textures[ST_ATTACHMENT_DEPTH_STENCIL])
+ if (ctx->pp)
pp_run(ctx->pp, ptex, ptex, drawable->textures[ST_ATTACHMENT_DEPTH_STENCIL]);
ctx->st->flush(ctx->st, ST_FLUSH_FRONT, NULL);