From: Christoph Bumiller Date: Sat, 12 Feb 2011 21:02:26 +0000 (+0100) Subject: nvc0: disable early fragment tests if KIL is used X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=80a7ae3cc5735b7615c049425b306a53662740a9;p=mesa.git nvc0: disable early fragment tests if KIL is used Early-Z pass raises the occlusion counter. --- diff --git a/src/gallium/drivers/nvc0/nvc0_program.c b/src/gallium/drivers/nvc0/nvc0_program.c index 613dc431bfd..f7ea97ddb1d 100644 --- a/src/gallium/drivers/nvc0/nvc0_program.c +++ b/src/gallium/drivers/nvc0/nvc0_program.c @@ -633,7 +633,7 @@ nvc0_prog_scan(struct nvc0_translation_info *ti) if (ti->scan.writes_z) prog->flags[0] = 0x11; /* ? */ else - if (!ti->global_stores) + if (!ti->scan.uses_kill && !ti->global_stores) prog->fp.early_z = 1; ret = nvc0_fp_gen_header(prog, ti);