Mesa (master): nvc0: disable early fragment tests if KIL is used

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Wed Feb 16 14:48:35 UTC 2011


Module: Mesa
Branch: master
Commit: 80a7ae3cc5735b7615c049425b306a53662740a9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=80a7ae3cc5735b7615c049425b306a53662740a9

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Sat Feb 12 22:02:26 2011 +0100

nvc0: disable early fragment tests if KIL is used

Early-Z pass raises the occlusion counter.

---

 src/gallium/drivers/nvc0/nvc0_program.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/nvc0/nvc0_program.c b/src/gallium/drivers/nvc0/nvc0_program.c
index 613dc43..f7ea97d 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);




More information about the mesa-commit mailing list