diff options
Diffstat (limited to 'drivers/gpu/imx/imx8_dprc.c')
-rw-r--r-- | drivers/gpu/imx/imx8_dprc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/imx/imx8_dprc.c b/drivers/gpu/imx/imx8_dprc.c index 431649f2a77f..7136721a4a76 100644 --- a/drivers/gpu/imx/imx8_dprc.c +++ b/drivers/gpu/imx/imx8_dprc.c @@ -372,7 +372,7 @@ void dprc_configure(struct dprc *dprc, unsigned int stream_id, unsigned int prg_stride = width * info->cpp[0]; unsigned int bpp = 8 * info->cpp[0]; unsigned int preq; - unsigned int mt_w = 0, mt_h = 0; /* w/h in a micro-tile */ + unsigned int mt_w = 1, mt_h = 0; /* w/h in a micro-tile */ u32 val; if (WARN_ON(!dprc)) @@ -583,6 +583,9 @@ void dprc_configure(struct dprc *dprc, unsigned int stream_id, } } + if (dprc->is_blit_chan && dprc->devtype->has_fixup) + prg_stride = (width + (x_offset % mt_w)) * info->cpp[0]; + prg_configure(dprc->prgs[0], width, height, x_offset, y_offset, prg_stride, bpp, baddr, format, modifier, start); if (dprc->use_aux_prg) |