summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * nouveau: update against libdrm_nouveau-2.0Emil Velikov2015-01-221-91/+139
| | | | | | | | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
| * all: Cleanup duplicated macros.Emil Velikov2015-01-224-7/+1
| | | | | | | | | | | | | | - Move MAX macro to gralloc_drm.h - Drop the freedreno's duplicated ALIGN macro. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
| * gralloc_drm_pipe: bail out as soon as the correct screen_create is calledEmil Velikov2015-01-221-1/+7
| | | | | | | | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
| * gralloc_drm: bail out early when we find the driverEmil Velikov2015-01-221-11/+16
| | | | | | | | | | | | ... rather than going through all the conditionals. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
| * freedreno: completely untested initial supportRob Clark2015-01-165-0/+234
| | | | | | | | | | | | | | | | | | 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_drm: improve logChih-Wei Huang2015-01-011-7/+12
| |
* | fix building issues of 64-bit targetsChih-Wei Huang2015-01-203-9/+10
| | | | | | | | | | | | | | Just change the 'data' field of gralloc_drm_handle_t to be a pointer to struct gralloc_drm_bo_t. Fix some warnings as well.
* | enable multiarch buildsChih-Wei Huang2015-01-201-2/+2
|/ | | | | Convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH to support 64-bit targets.
* radeon: fix tiling config for family older than 06xxpstglia2014-05-191-4/+9
|
* get rid of HAL pixelformats 5551 and 4444Chih-Wei Huang2013-09-252-4/+0
|
* radeon: update chipinfo and remove outdated headersChih-Wei Huang2013-08-048-541/+161
| | | | | Copied radeon.h (radeon_probe.h) and radeon_chipinfo_gen.h from master branch of http://cgit.freedesktop.org/xorg/driver/xf86-video-ati
* r600g: fix building errors with the latest mesaChih-Wei Huang2013-07-221-0/+2
|
* gralloc_drm_intel: fix i915 issues: failed to exec batchChih-Wei Huang2013-07-171-2/+10
| | | | Old i915 doesn't have I915_EXEC_BLT bit. Only set the bit if it's available.
* allow to force graphics modeSomebody2013-07-171-20/+137
| | | | | This patch adds in a system property "debug.drm.mode.force", which works *similarly* to "debug.drm.mode". XRESxYRES[@REFRESHRATE].
* TEMP HACK: make non-standalone surfaceflinger workChih-Wei Huang2013-07-171-0/+1
|
* change hal name to gralloc.drmChih-Wei Huang2013-07-171-1/+1
|
* Fix refcounting of mapped bo'sAndy Ross2013-06-121-0/+1
| | | | | | | | | | | | | Buffer objects created locally by gralloc_drm_bo_create() would have their refcount properly initialized to 1, but those received from other processes via the drv alloc function would be left at zero, so the delete check in gralloc_drm_bo_decref() would not destroy them as the refcount would wrap negative. The buffer would then leak forever until the mapping process (often surfaceflinger!) exitted. Issue: AXIA-2991 Change-Id: I1a0c73b21cfbc67b441970002fd71712112e1871 Signed-off-by: Andy Ross <andy.ross@windriver.com>
* gralloc: map HAL format RGBX_8888 to drm format XBGR8888Tapani Pälli2013-05-211-1/+2
| | | | | | | | | | currently we end up creating framebuffers with wrong format for RGBX users and set_plane with these would show wrong colors, one example is the menu screen of the glb27 application. Change-Id: Ifa051a4c5e9f39a6427ae2864ac06955cb48ad2b Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
* gralloc: provide methods for hwc to change handle of a planeTapani Pälli2013-05-134-4/+37
| | | | | | | | | | | | | 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>
* Merge "gralloc: check possible crtcs of plane against primary output"Matthew K Gumbel2013-05-092-0/+30
|\
| * gralloc: check possible crtcs of plane against primary outputTapani Pälli2013-05-072-0/+30
| | | | | | | | | | | | | | | | | | 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>
* | Merge "gralloc: Remove localized hw specific pixel format"Andrew P Boie2013-05-092-2/+2
|\ \ | |/ |/|
| * gralloc: Remove localized hw specific pixel formatSean V Kelley2013-05-012-2/+2
| | | | | | | | | | | | | | | | | | Reduces need to build with drm_gralloc headers elsewhere in tree. Returning to system/graphics.h approach. Change-Id: I26717cfe0a9a83ab263c26803e2849eb55560696 Depends-Change-Id: I405398b172fab19949fef33c89a60132b1bd0ea9 Signed-off-by: Sean V Kelley <sean.v.kelley@intel.com>
* | gralloc: cleanup, use ALIGN macroTapani Pälli2013-05-034-7/+7
| | | | | | | | | | Change-Id: I029aafe5a99393a4c0f7ff87f422317621fada12 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* | add ilo to intel_driversChia-I Wu2013-05-031-1/+1
|/ | | | | | | | It is a new Gallium-based driver for Intel GEN6+. Change-Id: I8a73b6f276d4cc3d38427c2725d63710512bff32 Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
* gralloc: plane supportTapani Pälli2013-04-154-1/+183
| | | | | | | | | | | | 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-117-22/+42
| | | | | Change-Id: Ifdf23b59542152c364d3ed010a4cc82bbf1a0103 Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
* gralloc: use proper mode for hdmi outputTapani Pälli2013-03-012-24/+71
| | | | | | | | | | | | 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-014-43/+74
| | | | | | | | | | | | | | | | 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-183-7/+12
| | | | | | | | 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>
* Merge "gralloc_drm_bo_lock: add special usage for GRALLOC_USAGE_HW_TEXTURE"Andrew P Boie2013-02-041-1/+6
|\
| * gralloc_drm_bo_lock: add special usage for GRALLOC_USAGE_HW_TEXTUREAdrian Marius Negreanu2013-01-181-1/+6
| | | | | | | | | | | | | | | | | | | | The BO 'usage' can be different from the 'usage' passed to lock. For example when the BO is created by SurfaceMediaSource, having set GRALLOC_USAGE_HW_TEXTURE while the CPU locks it with GRALLOC_USAGE_SW_WRITE_OFTEN Change-Id: I4ba0ac05f1833439299e7fd694208076e66f8dfd Signed-off-by: Adrian Marius Negreanu <adrian.m.negreanu@intel.com>
* | gralloc: set supported planes for buffers on allocationTapani Pälli2013-01-214-1/+30
| | | | | | | | | | | | | | | | | | This is done so that we should not have to do it dynamically during composition. This information will be used later with hwcomposer module when using planes for composition. Change-Id: I2b6716fe9a8da81050645900c6c0955385946991 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* | gralloc: implement yuv offset query as hw specific functionTapani Pälli2013-01-216-52/+78
| | | | | | | | | | | | | | | | | | | | 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: new function to query the gem handle of buffer_handle_tTapani Pälli2013-01-152-0/+7
|/ | | | | | | | This function can be used from Mesa instead of having to expose the whole gralloc_drm_handle_t structure. Change-Id: I1aa5368b21e588d5d711c1005fff2a5296e143a0 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* Merge "split gralloc.$(TARGET_PRODUCT)"Andrew P Boie2013-01-101-9/+33
|\
| * split gralloc.$(TARGET_PRODUCT)Adrian Marius Negreanu2012-11-141-9/+33
| | | | | | | | | | | | | | | | | | | | Some of the functions in gralloc.$(TARGET_PRODUCT) can be reused. Since one should not link against a HAL library, have gralloc.c as gralloc.$(TARGET_PRODUCT) and extract the reusable code into libgralloc_drm. Change-Id: I08a6989bb0b191ec56662aa4a21f6da7aea6b24d Signed-off-by: Adrian Marius Negreanu <adrian.m.negreanu@intel.com>
* | gralloc: yuv offset calculation function for mesaTapani Pälli2012-12-141-0/+19
| | | | | | | | | | | | | | | | Patch adds add api for mesa to query component offsets for yuv buffer handles. Change-Id: Ib477627ad812f5b6352665d00fb2bb3b10fe5b8e Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* | gralloc: add NV12 format enum and fb allocation support for itTapani Pälli2012-12-144-0/+55
| | | | | | | | | | Change-Id: If1c92810a17c60c29239f5384d6e971b015dd174 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* | gralloc: use headers from drm and mesa instead of local copyTapani Pälli2012-11-094-217/+6
| | | | | | | | | | | | | | | | | | | | | | | | Patch removes local outdated headers for intel hw and starts to depend on ones from libdrm and mesa projects, this makes sure we are up to date with new pci id's etc. intel_init_kms_features required some fixing because of changed macros, patch also adds GEN7 check in place for IVB and HSW. Change-Id: Iee6375ceb558baf4334e3b9b5d26210406aa7b71 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* | gralloc: no cloned mode on platforms with hdmi as primaryTapani Pälli2012-11-071-1/+10
|/ | | | | | | | On some platforms we might have only HDMI connector, on those platforms do not attempt to use cloned/extended mode with HDMI. Change-Id: If0f21986030e4e97991202bd8168d7c9e25de493 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* gralloc: hdmi cloned mode supportTapani Pälli2012-10-244-56/+243
| | | | | | | | | | | | | | | | | | 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-234-238/+56
| | | | This reverts commit 2d2758bca0f962ef21673dbe29df4c042d7f3254.
* gralloc: hdmi cloned mode supportTapani Pälli2012-10-184-56/+238
| | | | | | | | | | | | | | | | | | 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_drm_intel: set gem handle for each boTapani Pälli2012-10-121-2/+1
| | | | | | | not just fbs, potentially anything can be used as framebuffer by kms code Change-Id: Ib710bb62ae23cf58a987c6614306711dedb11cbf Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* gralloc: split resolve_drm_formatTapani Pälli2012-10-121-13/+22
| | | | | | | | refactored code so that drm_format_from_hal helper can be used from other parts of code. Change-Id: Ibaa3e483b2987c96d9651b2886360402e2c5642d Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* gralloc: introduce planeresourcesTapani Pälli2012-10-122-0/+47
| | | | | | | | 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-125-9/+26
| | | | | | | | | | 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>
* gralloc : use drmModeAddFB2Tapani Pälli2012-10-121-6/+59
| | | | | | | | start using drmModeAddFB2 API, this is enabler to create framebuffers with YUV pixel formats that can be shown on hardware overlay. Change-Id: I700c752ada119222573ab286a8b231092c3250c0 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* gralloc: Add support for prebuilt gralloc libsAndrew Boie2012-09-251-2/+14
| | | | | | | | | | If the user sets BOARD_GPU_DRIVERS to 'prebuilt' and passes a path to the prebuilt gralloc binary via BOARD_GPU_DRIVER_BINARY, then that prebuilt gralloc image will be used instead of building it from source here. Change-Id: I0fe3bc1919cacc38087afe3f76e4b8391975edbd Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>