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 <marek.olsak@amd.com>
This commit is contained in:
Park, Jeongmin 2015-02-07 17:53:48 +09:00 committed by Marek Olšák
parent 2e6ba6afdb
commit 0467a52dc3
2 changed files with 2 additions and 2 deletions

View File

@ -418,7 +418,7 @@ dri_postprocessing(struct dri_context *ctx,
struct pipe_resource *src = drawable->textures[att];
struct pipe_resource *zsbuf = drawable->textures[ST_ATTACHMENT_DEPTH_STENCIL];
if (ctx->pp && src && zsbuf)
if (ctx->pp && src)
pp_run(ctx->pp, src, src, zsbuf);
}

View File

@ -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);