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:
parent
2e6ba6afdb
commit
0467a52dc3
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue