From 4c4fbab345c164284e62e5e2587382785ade1750 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 28 Sep 2017 11:06:53 -0700 Subject: [PATCH] broadcom/compiler: Don't forget the discard state on TLB Z writes. We don't want to write Z for discarded fragments. --- src/broadcom/compiler/nir_to_vir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/broadcom/compiler/nir_to_vir.c b/src/broadcom/compiler/nir_to_vir.c index af9f8485c13..1c9a9a9746c 100644 --- a/src/broadcom/compiler/nir_to_vir.c +++ b/src/broadcom/compiler/nir_to_vir.c @@ -1031,6 +1031,7 @@ emit_frag_end(struct v3d_compile *c) struct qinst *inst = vir_MOV_dest(c, vir_reg(QFILE_TLBU, 0), c->outputs[c->output_position_index]); + vir_set_cond(inst, discard_cond); inst->src[vir_get_implicit_uniform_src(inst)] = vir_uniform_ui(c, -- 2.30.2