diff --git a/src/panfrost/lib/pan_cs.c b/src/panfrost/lib/pan_cs.c index b4375a19db6..def4b27bfb9 100644 --- a/src/panfrost/lib/pan_cs.c +++ b/src/panfrost/lib/pan_cs.c @@ -431,11 +431,7 @@ pan_prepare_rt(const struct pan_fb_info *fb, unsigned idx, pan_rt_init_format(rt, cfg); -#if PAN_ARCH <= 5 cfg->writeback_block_format = mod_to_block_fmt(rt->image->layout.modifier); -#else - cfg->writeback_block_format = mod_to_block_fmt(rt->image->layout.modifier); -#endif struct pan_surface surf; pan_iview_get_surface(rt, 0, 0, 0, &surf);