mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 13:50:09 +01:00
radeonsi: stop using TGSI_PROPERTY_FS_COORD_PIXEL_CENTER
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6624>
This commit is contained in:
parent
c597e394d4
commit
ce0291df4a
2 changed files with 1 additions and 5 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue