Skip to content

Commit

Permalink
riscv: drm: dc: change pitch alignment for gst problem
Browse files Browse the repository at this point in the history
change dc pitch alignment from 128 to 32 for gst problem

Signed-off-by: Shengyang Chen <[email protected]>
  • Loading branch information
starfivesyangc authored and MichaIng committed Dec 8, 2023
1 parent 20b33c2 commit e5c58f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions drivers/gpu/drm/verisilicon/vs_dc_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ static const struct vs_dc_info dc_info[] = {
DRM_COLOR_FORMAT_YCBCR420,
.gamma_size = GAMMA_EX_SIZE,
.gamma_bits = 12,
.pitch_alignment = 128,
.pitch_alignment = 32,
.pipe_sync = false,
.mmu_prefetch = false,
.background = true,
Expand All @@ -1121,7 +1121,7 @@ static const struct vs_dc_info dc_info[] = {
DRM_COLOR_FORMAT_YCBCR420,
.gamma_size = GAMMA_EX_SIZE,
.gamma_bits = 12,
.pitch_alignment = 128,
.pitch_alignment = 32,
.pipe_sync = false,
.mmu_prefetch = false,
.background = true,
Expand All @@ -1142,7 +1142,7 @@ static const struct vs_dc_info dc_info[] = {
DRM_COLOR_FORMAT_YCBCR420,
.gamma_size = GAMMA_EX_SIZE,
.gamma_bits = 12,
.pitch_alignment = 128,
.pitch_alignment = 32,
.pipe_sync = false,
.mmu_prefetch = false,
.background = true,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/verisilicon/vs_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ static int vs_drm_bind(struct device *dev)
goto err_put_dev;
}

priv->pitch_alignment = 64;
priv->pitch_alignment = 32;
priv->dma_dev = drm_dev->dev;
priv->dma_dev->coherent_dma_mask = dma_mask;
drm_dev->dev_private = priv;
Expand Down

0 comments on commit e5c58f2

Please sign in to comment.