summaryrefslogtreecommitdiffstats
path: root/gralloc_drm_priv.h
Commit message (Collapse)AuthorAgeFilesLines
* Support multiple exteranl dispaly in mirror modeWuZhen2016-06-271-1/+1
| | | | | | and extend support beyong hdmi. Change-Id: Ib9550eac0330807ccd4c3919609cbf02ad98299d
* Maintain a list of connector outputsWuZhen2016-06-271-5/+7
| | | | | | Refactor code to support multiple mirrored outputs following code. Change-Id: I60781d707ae68db2dbd2c4c4122b9183633a74be
* Rename hdmi_output_modeWuZhen2016-06-271-4/+6
| | | | | | | Rename it to drm_output_mode and move it into gralloc_drm_output in preparation for folowing changes. Change-Id: I488f395feede9c9a20eadb9145ebf46295ba4a71
* freedreno: completely untested initial supportRob Clark2015-01-161-0/+2
| | | | | | | | | v2: [Emil Velikov] - drmGetVersion returns the kernel module name. - Add it to the build :) - freedreno_map returns void * while gralloc::map expects int. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* gralloc: provide methods for hwc to change handle of a planeTapani Pälli2013-05-131-1/+7
| | | | | | | | | | | | | Patch changes reserve_plane to get id number as additional parameter. This can be used by hwc to make changes to a particular plane. New api hwc_set_plane_handle is introduced so that hwc can change the buffer handle of a plane, this is required because after plane has been reserved for a particular ui layer, this handle can change as the layer is typically multibuffered. Change-Id: I32d711ff3565ae9e8f5b8a6691c22b03a50cefe7 Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
* gralloc: check possible crtcs of plane against primary outputTapani Pälli2013-05-071-0/+1
| | | | | | | | | Current implementation supports planes only with primary output, patch adds a check to guard this. Change-Id: I537858122a4fe77a374031d11339eaaea27ad9bf Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
* gralloc: plane supportTapani Pälli2013-04-151-0/+25
| | | | | | | | | | | | patch introduces API between hwcomposer and gralloc, hwcomposer can reserve an overlay plane to be used by a particular layer in prepare hook, drmModeSetPlane for each plane gets called later when post() gets called by the eglSwapBuffers (from hwcomposer set), this can be later changed to use atomic modesetting code and drm properties to make one 'atomic flip' for graphics + planes. Change-Id: I3b7d179b285e43eb19fdc3b4c7ce093f3ba6aade Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* gralloc_drm: fix building errors with latest mesaChih-Wei Huang2013-04-111-0/+7
| | | | | Change-Id: Ifdf23b59542152c364d3ed010a4cc82bbf1a0103 Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
* gralloc: use proper mode for hdmi outputTapani Pälli2013-03-011-0/+3
| | | | | | | | | | | | Patch uses the best mode available on hdmi output and creates a private buffer that is used for pageflipping. Primary display content is copied to private buffer on each page flip. This patch removes current hack where same mode is assumed from hdmi output, this caused graphical artifacts with some tv's. Also some more debug output is added. Change-Id: Ic862a8374f46992f0ff92545da8a010f9684b934 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* gralloc: change copy api and fix copy function for intelTapani Pälli2013-03-011-3/+6
| | | | | | | | | | | | | | | | Patch extends current copy api, renames it blit and introduces src+dst coordinates to be able to implement partial blits and blits with offsets. Implementation must take care of hw specific restrictions with blits. Patch also fixes issues with the current intel_blit function. Current implementation does not select ring buffer and ends up queuing blit commands to the render ring. Patch starts to use drm_intel_bo_mrb_exec to be able to select blit ring and fixes the checks inside copy function. Change-Id: I05905e0b9c48fc2a55230212b676bfb8813a2b55 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* move drm_module_t to a hal private headerTapani Pälli2013-02-181-0/+7
| | | | | | | | this way it can be accessed by hwcomposer module, which will be required to implement jellybean mr1 hooks. Change-Id: I68872243c30aee2d0eb76f38fe54efdea4862a66 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* gralloc: implement yuv offset query as hw specific functionTapani Pälli2013-01-211-0/+5
| | | | | | | | | | This patch reverts earlier cca14cfd... and introduces a new hw specific hook to query yuv components offsets which can vary between different hw, decoders, cameras etc. Change-Id: Ib60bc8ee28df7bc9425b6d7934294fe36fc55354 Depends-Change-Id: I1aa5368b21e588d5d711c1005fff2a5296e143a0 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* gralloc: hdmi cloned mode supportTapani Pälli2012-10-241-5/+25
| | | | | | | | | | | | | | | | | | Patch implements simple support for cloned mode hdmi by introducing primary and hdmi outputs that are updated respectively. Current implementation is rather naive and assumes hdmi can drive same mode as the local lvds. Only cloned mode is supported but can be extended later to support extended mode when hwcomposer is available for controlling this behaviour. HDMI hotplug is implemented as a separate observer thread that listens to uevents and reads hdmi connection state from there, this requires switch support from the kernel hdmi driver. Change-Id: I147273bbe4d21ab9f390f38c9a5f945530c8fd2e Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Signed-off-by: Matt Gumbel <matthew.k.gumbel@linux.intel.com>
* Revert "gralloc: hdmi cloned mode support"Daniel Leung2012-10-231-24/+5
| | | | This reverts commit 2d2758bca0f962ef21673dbe29df4c042d7f3254.
* gralloc: hdmi cloned mode supportTapani Pälli2012-10-181-5/+24
| | | | | | | | | | | | | | | | | | Patch implements simple support for cloned mode hdmi by introducing primary and hdmi outputs that are updated respectively. Current implementation is rather naive and assumes hdmi can drive same mode as the local lvds. Only cloned mode is supported but can be extended later to support extended mode when hwcomposer is available for controlling this behaviour. HDMI hotplug is implemented as a separate observer thread that listens to uevents and reads hdmi connection state from there, this requires switch support from the kernel hdmi driver. Change-Id: I1d5873214d672563789f4953a892de60539eca88 Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Signed-off-by: Matt Gumbel <matthew.k.gumbel@linux.intel.com>
* gralloc: introduce planeresourcesTapani Pälli2012-10-121-0/+8
| | | | | | | | maintain planeresources and additional helper structure gralloc_drm_plane_t for planes, also prints out plane formats on startup. Change-Id: Ibc717d646acd581b8c247c22d269260e78d92fd9 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* gralloc: add refcount to gralloc_drm_bo_tTapani Pälli2012-10-121-0/+2
| | | | | | | | | | This is an basic enabler for gralloc to let buffers live while they are still in use by gralloc (for example during scanout), otherwise Android may choose to destroy them while they are still needed. This facility will get used with upcoming plane support and direct rendering support. Change-Id: I2f0bc595846a68e8d2feb5138b022d16f207e2b5 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* vmwgfx: assorted fixesChia-I Wu2011-08-241-1/+1
| | | | | | | | | | | Based on trial and error, we know - drm_kms_wait_for_post() hangs the VM - drmModeDirtyFB() should be called whenever the front buffer changes - drmModePageFlip() is not supported They might not be entirely correct, but fixing them makes drm_gralloc work.
* map a bo only when it is locked for CPU accessChia-I Wu2011-07-291-0/+3
| | | | To match the doc a little better.
* let drivers decide the fb formatChia-I Wu2011-07-111-2/+3
|
* add (untested) pipe supportChia-I Wu2011-06-131-1/+1
|
* add nouveau supportChia-I Wu2011-06-131-0/+1
|
* initial commitChia-I Wu2011-06-121-0/+115