From: Eric Anholt Date: Thu, 28 Sep 2017 18:06:53 +0000 (-0700) Subject: broadcom/compiler: Don't forget the discard state on TLB Z writes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c4fbab345c164284e62e5e2587382785ade1750;p=mesa.git broadcom/compiler: Don't forget the discard state on TLB Z writes. We don't want to write Z for discarded fragments. --- 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,