Skip to content

Commit 7a67ae5

Browse files
joshua-hendersoncristibirsan
authored andcommitted
drm/atmel-hlcdc: set layer REP bit to enable replication logic
This bit enabled replication logic to expand an RGB color less than 24 bits, to 24 bits, which is used internally for all formats. Otherwise, the least significant bits are always set to zero and the color may not be what is expected. Signed-off-by: Joshua Henderson <joshua.henderson@microchip.com> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
1 parent e318512 commit 7a67ae5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ atmel_hlcdc_plane_update_general_settings(struct atmel_hlcdc_plane *plane,
372372
atmel_hlcdc_layer_write_cfg(&plane->layer, ATMEL_HLCDC_LAYER_DMA_CFG,
373373
cfg);
374374

375-
cfg = ATMEL_HLCDC_LAYER_DMA;
375+
cfg = ATMEL_HLCDC_LAYER_DMA | ATMEL_HLCDC_LAYER_REP;
376376

377377
if (plane->base.type != DRM_PLANE_TYPE_PRIMARY) {
378378
cfg |= ATMEL_HLCDC_LAYER_OVR | ATMEL_HLCDC_LAYER_ITER2BL |

0 commit comments

Comments
 (0)