summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0/nvc0_program.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-02-12 22:02:26 +0100
committerChristoph Bumiller <[email protected]>2011-02-16 15:45:30 +0100
commit80a7ae3cc5735b7615c049425b306a53662740a9 (patch)
treeeaaaa509ffeb0c5d2d0f600412eb903a855058a1 /src/gallium/drivers/nvc0/nvc0_program.c
parent17d680cc537acf8a967d9e36f7006afab560122a (diff)
nvc0: disable early fragment tests if KIL is used
Early-Z pass raises the occlusion counter.
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_program.c')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_program.c2
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 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);