nvc0: disable early fragment tests if KIL is used
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 12 Feb 2011 21:02:26 +0000 (22:02 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 16 Feb 2011 14:45:30 +0000 (15:45 +0100)
Early-Z pass raises the occlusion counter.

src/gallium/drivers/nvc0/nvc0_program.c

index 613dc431bfdbc1249732fc70103f83d2a1c62e17..f7ea97ddb1d6161e178eef50adb22966327ac253 100644 (file)
@@ -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);