i965/blorp: Set no_depth_or_stencil correctly
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 3 Jun 2017 21:48:15 +0000 (14:48 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jun 2017 01:15:05 +0000 (18:15 -0700)
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/mesa/drivers/dri/i965/genX_blorp_exec.c

index a162b6e6b5d380c812594c66fe4dce23facf1ee9..8fd17fb053b1d3b62ee86199240103cfd2b6dc8d 100644 (file)
@@ -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)