radeonsi: stop using TGSI_PROPERTY_FS_POST_DEPTH_COVERAGE
authorMarek Olšák <marek.olsak@amd.com>
Tue, 1 Sep 2020 22:20:09 +0000 (18:20 -0400)
committerVivek Pandya <vivekvpandya@gmail.com>
Mon, 7 Sep 2020 15:55:17 +0000 (21:25 +0530)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6624>

src/gallium/drivers/radeonsi/si_shader_nir.c
src/gallium/drivers/radeonsi/si_state_shaders.c

index f58ee02dedef34abe972123d30bbb8e305455030..8c18a3be98c2bb1ef774bd1ed77bea9a45560d03 100644 (file)
@@ -465,8 +465,6 @@ void si_nir_scan_shader(const struct nir_shader *nir, struct si_shader_info *inf
       /* post_depth_coverage implies early_fragment_tests */
       info->base.fs.early_fragment_tests |= info->base.fs.post_depth_coverage;
 
-      info->properties[TGSI_PROPERTY_FS_POST_DEPTH_COVERAGE] = nir->info.fs.post_depth_coverage;
-
       if (nir->info.fs.pixel_center_integer) {
          info->properties[TGSI_PROPERTY_FS_COORD_PIXEL_CENTER] = TGSI_FS_COORD_PIXEL_CENTER_INTEGER;
       }
index 2859fc2b16c9e7ff78bd00a50a20ad8fbd38b76f..e1c13f8e6c089296a0830111ed91f483491d5700 100644 (file)
@@ -2805,7 +2805,7 @@ static void *si_create_shader_selector(struct pipe_context *ctx,
          sel->db_shader_control |= S_02880C_Z_ORDER(V_02880C_EARLY_Z_THEN_LATE_Z);
       }
 
-      if (sel->info.properties[TGSI_PROPERTY_FS_POST_DEPTH_COVERAGE])
+      if (sel->info.base.fs.post_depth_coverage)
          sel->db_shader_control |= S_02880C_PRE_SHADER_DEPTH_COVERAGE_ENABLE(1);
    }