From 39a13c08dc16ffde7c0e11bbe1bef3c0ee55ba0e Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 3 Jun 2017 14:48:15 -0700 Subject: [PATCH] i965/blorp: Set no_depth_or_stencil correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Samuel Iglesias Gonsálvez --- src/mesa/drivers/dri/i965/genX_blorp_exec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/genX_blorp_exec.c b/src/mesa/drivers/dri/i965/genX_blorp_exec.c index a162b6e6b5d..8fd17fb053b 100644 --- a/src/mesa/drivers/dri/i965/genX_blorp_exec.c +++ b/src/mesa/drivers/dri/i965/genX_blorp_exec.c @@ -286,7 +286,8 @@ retry: * rendering tracks for GL. */ brw->ctx.NewDriverState |= BRW_NEW_BLORP; - brw->no_depth_or_stencil = false; + brw->no_depth_or_stencil = !params->depth.enabled && + !params->stencil.enabled; brw->ib.index_size = -1; if (params->dst.enabled) -- 2.30.2