Преглед изворни кода

nvc0: disable early fragment tests if KIL is used

Early-Z pass raises the occlusion counter.
tags/android-x86-2.2-r2
Christoph Bumiller пре 14 година
родитељ
комит
80a7ae3cc5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      src/gallium/drivers/nvc0/nvc0_program.c

+ 1
- 1
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);

Loading…
Откажи
Сачувај