Since only pp_jimenezmlaa uses depth buffer, we can make it optional.
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
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);
}
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);