You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

DRM Block Diagram.png

Verify Hardware Layers

  • You can use the modetest application that is included by default in the BSP to verify the hardware layer support of the RZ DRM display drivers.
  • In the results returned by modetest, you will see that the overlay image supports the alpha attribute.
  • After execution, you can see that the overly image has a translucent effect and is superimposed with the primary layer.
  • Simple follow the steps below.

Close Weston before testing

$ systemctl stop weston@root

Use modetest to get display information

modetest -M rcar-du

There will be an unique 'id' for each component. These numbers are used when you want to reference different portions. The id numbers might be different between SoC device and not match the example commands below, so please find them first with the modetest command.

According to the results returned by modetest, the following information can be obtained.

  • Encoders:
  • Connectors:
  • CRTCs:
  • Planes:
  • Frame buffers:

For example, according to the return result of modetest on a RZ/G2L EVK, RZ/G2L has 2 physical planes.

ExpandExample modetest output on a RZ/G2L EVK             Β  Β 


Below is an example of an RZ/G2L connected to a 1280x800 MHDI LCD. There are 2 IDSs for "Planes" ('32' and '34') because there are 2 hardware layers in the RZ/G2L LCD display controller.

Display the test pattern on the Primary Plane

Use the id of the 'Connector' and the resolution of your LCD panel.

Example:

modetest -M rcar-du -s 39:1280x800@AR24 -d 

(present ENTER on the keyboard to exit modetest)


Primary Plane+Overlay

  • Primary plane(39) displays SMPTE color bar spectrum in full screen.
  • Overlay plane(34) displays a layer with a size of (400x300) at the position of coordinates (200,200)
modetest -M rcar-du -s 39:1280x800@AR24 -d -P '34@37:400x300 +200+200@AR24'

(present ENTER on the keyboard to exit modetest)


Set the alpha property of the overlay layer

  • Start the Primary Plane+Overlay test again, but in the backgound (& at the end)
$ modetest -M rcar-du -s 39:1280x800@AR24 -d -P '34@37:400x300 +200+200@AR24'  &
  • Now change the Alpha of the hardware layer (0 to 65535)
  • You can see that the overly image has a translucent effect and is superimposed with the primary layer
$ modetest -M rcar-du -w 34:alpha:32768
$ modetest -M rcar-du -w 34:alpha:16384
$ modetest -M rcar-du -w 34:alpha:50000
  • End the modetest still running in the background (bring to forground)
$ fg

(present ENTER on the keyboard to exit modetest)

  • No labels