radeonsi/nir: set TGSI_PROPERTY_FS_EARLY_DEPTH_STENCIL correctly
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 15 Feb 2018 04:08:49 +0000 (15:08 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 16 Feb 2018 04:53:13 +0000 (15:53 +1100)
We set this for post_depth_coverage in addition to early_fragment_tests.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader_nir.c

index 0a09963e9182a936969e693bdb1f63af787e6ec0..1ac6903bbc37df23192a3528b2dd9ff26b712cd6 100644 (file)
@@ -277,7 +277,8 @@ void si_nir_scan_shader(const struct nir_shader *nir,
        }
 
        if (nir->info.stage == MESA_SHADER_FRAGMENT) {
-               info->properties[TGSI_PROPERTY_FS_EARLY_DEPTH_STENCIL] = nir->info.fs.early_fragment_tests;
+               info->properties[TGSI_PROPERTY_FS_EARLY_DEPTH_STENCIL] =
+                       nir->info.fs.early_fragment_tests | nir->info.fs.post_depth_coverage;
                info->properties[TGSI_PROPERTY_FS_POST_DEPTH_COVERAGE] = nir->info.fs.post_depth_coverage;
 
                if (nir->info.fs.depth_layout != FRAG_DEPTH_LAYOUT_NONE) {