radeonsi: stop using TGSI_PROPERTY_FS_COORD_PIXEL_CENTER
authorMarek Olšák <marek.olsak@amd.com>
Tue, 1 Sep 2020 22:22:24 +0000 (18:22 -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 8c18a3be98c2bb1ef774bd1ed77bea9a45560d03..ae9d9b614fd2ce658e3a6ce5f75e72f56fa7abc7 100644 (file)
@@ -465,10 +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;
 
-      if (nir->info.fs.pixel_center_integer) {
-         info->properties[TGSI_PROPERTY_FS_COORD_PIXEL_CENTER] = TGSI_FS_COORD_PIXEL_CENTER_INTEGER;
-      }
-
       if (nir->info.fs.depth_layout != FRAG_DEPTH_LAYOUT_NONE) {
          switch (nir->info.fs.depth_layout) {
          case FRAG_DEPTH_LAYOUT_ANY:
index e1c13f8e6c089296a0830111ed91f483491d5700..bb887e89213d1aca117cc3e7464944afc3748be6 100644 (file)
@@ -1595,7 +1595,7 @@ static void si_shader_ps(struct si_screen *sscreen, struct si_shader *shader)
     */
    spi_baryc_cntl |= S_0286E0_POS_FLOAT_LOCATION(2);
 
-   if (info->properties[TGSI_PROPERTY_FS_COORD_PIXEL_CENTER] == TGSI_FS_COORD_PIXEL_CENTER_INTEGER)
+   if (info->base.fs.pixel_center_integer)
       spi_baryc_cntl |= S_0286E0_POS_FLOAT_ULC(1);
 
    spi_shader_col_format = si_get_spi_shader_col_format(shader);