summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Changed format constants to match what vmwgfx driver expects"Chih-Wei Huang2016-03-171-6/+4
| | | | This partially reverts commit dc21193e3252ba2d6526546ba1d0c02116baf3ee.
* Android.mk: remove unneeded static librariesRob Herring2016-03-171-3/+0
| | | | | | With the load_pipe_screen support, these libraries are no longer needed. Signed-off-by: Rob Herring <robh@kernel.org>
* Build pipe support by defaultRob Herring2016-03-171-9/+4
| | | | | | | Build pipe support by default when any unlisted driver is enabled. This way gralloc doesn't have to be updated for every new driver. Signed-off-by: Rob Herring <robh@kernel.org>
* WIP: synchronize gralloc entry pointsRob Clark2016-03-171-15/+55
| | | | | | Note entirely sure what synchronization guarantees android provides before calling in to module.. but stuff inside gralloc module is definately not thread-safe so slap a big lock around the outside.
* Add gralloc_drm_get_prime_fd functionRob Herring2016-03-173-0/+11
| | | | | | Mesa EGL needs to retrieve prime fds from gralloc handles. Signed-off-by: Rob Herring <robh@kernel.org>
* pipe: use gallium loader functionRob Herring2016-03-173-280/+23
| | | | | | | Based on Rob Clark's work to avoid duplicating gallium driver loading code and statically linking each driver's pipe and winsys libraries. Signed-off-by: Rob Herring <robh@kernel.org>
* fix pipe building with upstreamRob Herring2016-03-171-2/+2
| | | | Signed-off-by: Rob Herring <robh@kernel.org>
* add padding to gralloc_drm_handle_tWuZhen2016-01-061-1/+4
| | | | | | | gralloc_drm_handle_t size differs for 32/64 bit process. thus on x86_64, this will crash any 32bit app, add propper padding. Change-Id: I03663b36dd841bf69c84973fd2f5e99741317c15
* Merge remote-tracking branch 'x86/lollipop-x86' into marshmallow-x86Chih-Wei Huang2015-11-141-3/+6
|\
| * fix GRALLOC_DRM_HANDLE_NUM_INTS definition for 64-bitMauro Rossi2015-11-141-3/+6
| | | | | | | | | | | | | | | | | | As highlighted by pstglia current definition of GRALLOC_DRM_HANDLE_NUM_INTS causes issues with 64-bit, because a pointer is accounted as having size of an integer, which is not applicable to 64-bit pointer The same definition adopted in AOSP hardware/drm_gralloc master branch has been used, without changing the structure of gralloc_drm_handle_t.
* | Revert "gralloc: Remove localized hw specific pixel format"Chih-Wei Huang2015-10-102-2/+2
| | | | | | | | This reverts commit 3e00d3255ba6de08761a6b8f40b838680d502d0b.
* | drm_gralloc: Add drm_gralloc actions to gralloc_drm.hSean Paul2015-10-101-0/+8
|/ | | | | Change-Id: If640f6ad7c6b904df59b5c5e164f184f1fc97170 Signed-off-by: Sean Paul <seanpaul@chromium.org>
* WIP: always use gralloc_drm_get_pid()Rob Clark2015-10-061-1/+1
| | | | Rather than accessing gralloc_drm_pid directly.
* android: export drm_gralloc headersMauro Rossi2015-09-181-0/+3
|
* Merge remote-tracking branch 'x86/kitkat-x86' into lollipop-x86Chih-Wei Huang2015-07-271-2/+0
|\
| * gralloc_drm_pipe: remove unnecessary headersChih-Wei Huang2015-06-191-2/+0
| |
* | Correct the casting type for radeon drm callsPaulo Sergio Travaglia2015-07-261-2/+2
| | | | | | | | | | | | | | | | It could be wrong to cast a pointer to a long type (32-bit signed integer) and extend it to a uint64_t (64-bit unsigned integer). Cast it to uintptr_t as the xorg-video-ati does.
* | Merge remote-tracking branch 'x86/kitkat-x86' into lollipop-x86Chih-Wei Huang2015-05-112-1/+59
|\ \ | |/
| * Include newer/missing chipset familiesPaulo Sergio Travaglia2015-05-112-1/+59
| | | | | | | | | | | | | | | | - HAWAII and MULLINS added - changed 0x9649 from CHIP_FAMILY_SUMO to CHIP_FAMILY_SUMO2 - added missing chipInfo for CHIP_FAMILY_VERDE, CHIP_FAMILY_OLAND, CHIP_FAMILY_BONAIRE and CHIP_FAMILY_KAVERI
* | gralloc_drm: make GRALLOC_USAGE_SW_READ_OFTEN be a valid usageChih-Wei Huang2015-04-301-2/+3
| | | | | | | | | | | | | | It allows the camera to get a lock on the buffer. This is required when a picture is taken. Credited to Edgardo Gho <edgardogho@gmail.com>.
* | Merge remote-tracking branch 'x86/kitkat-x86' into lollipop-x86Chih-Wei Huang2015-04-301-20/+1
|\ \ | |/
| * do not use pipe driver for r600gChih-Wei Huang2015-04-291-8/+0
| | | | | | | | Seems it is buggy.
| * remove unnecessary paths in LOCAL_C_INCLUDESChih-Wei Huang2015-04-291-12/+1
| | | | | | | | Now the include paths are imported automatically from libdrm*.
* | Enable radeonsi on Android-x86Paulo Sergio Travaglia2015-04-301-1/+1
| |
* | Merge remote-tracking branch 'x86/kitkat-x86' into lollipop-x86Chih-Wei Huang2015-04-199-128/+454
|\ \ | |/
| * Changed format constants to match what vmwgfx driver expectsPaulo Sergio Travaglia2015-04-192-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | When allocating a new buffer using pipe driver, pipe constants are used to define a format based on corresponding HAL_PIXEL_FORMAT However, vmwgfx driver expects other constants (SVGA3D_A8R8G8B8, SVGA3D_X8R8G8B8, SVGA3D_R5G6B5, etc) Changed the returning constants to match what driver expects. v2: [cwhuang] - Use the constants defined in svga3d_types.h. - Use C99 standard to avoid building errors with mesa 10.6.
| * nouveau: undefine SW_INDICATOR_FULLY_DISABLES_TILINGChih-Wei Huang2015-01-291-1/+1
| | | | | | | | Based on the work by pstglia.
| * gralloc_drm_pipe: fix building errors with mesa 10.4Chih-Wei Huang2015-01-222-19/+11
| |
| * add radeonsi to pci_id_driver_map.hChih-Wei Huang2015-01-221-0/+7
| |
| * nouveau: bring some sw_indicator loveEmil Velikov2015-01-221-4/+34
| | | | | | | | | | | | | | | | | | | | Based on some work by pstglia, one needs to switch off (partially or fully?) the tiling when creating the BO. Comment/uncomment the SW_INDICATOR_FULLY_DISABLES_TILING define to toggle between the two. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
| * 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
|\