summaryrefslogtreecommitdiff
path: root/README
blob: 10bd4638b3e141d69d78e980f3daf5e647d5443f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
xf86-video-armsoc
Open-source X.org graphics driver for ARM graphics

Platform specific values
------------------------
The meaning of the bits in the 'flags' element in the drm_mode_create_dumb struct
used by DRM_IOCTL_MODE_CREATE_DUMB is platform dependent.  
The defines for the flag values in omap_drmif_fb.h should be modified for the target platform in use. 

The example given is for a DRM driver which uses bit 0 of flags to select the buffer type. 
In this case a value of 1 for bit 0 selects a buffer with a scanoutable allocation.

The platform specific defines are :

	/* Platform specific values for the flags element of the drm_mode_create_dumb struct
 	* used by DRM_IOCTL_MODE_CREATE_DUMB. Substitute appropriate values for the target drm driver.
 	*/
	#define DRM_BO_SCANOUT				0x00000001			/* request scanout compatible buffer */
	#define DRM_BO_NON_SCANOUT			0x00000000			/* request non-scanout compatible buffer */


HW Cursors support
-------------------

HW Cursor plane configuration
------------------------------

The cursor plane format needs to be modified to select the format that the platform expects. This can
be done by setting DRM_CURSOR_PLANE_FORMAT define to the desired format in omap_drmif_fb.h.

Currently available options are:

HW_CURSOR_ARGB   -  Cursor images support full ARGB8888 pixel format.
HW_CURSOR_PL111  -  Cursor images support PL111 LBBP pixel format.

For example to set HW_CURSOR_PL111 cursor support set DRM_CURSOR_PLANE_FORMAT in the following way:

#define DRM_CURSOR_PLANE_FORMAT	HW_CURSOR_PL111