summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-11-18Update Mesa locationHEADmasterBernhard Rosenkränzer
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2015-11-18Make it build inside MarshmallowBernhard Rosenkränzer
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2015-09-19pipe: fix for latest mesafreedrenoRob Clark
2015-09-08WIP: pipe: use load_pipe_screen()Rob Clark
Rather than duplicate logic about which pipe driver to load, and statically link pipe driver and winsys code into gralloc, dlopen() gallium_dri.so and use the newly introduced load_pipe_screen() to find our pipe driver. This is important, as otherwise we end up w/ two copies of winsys, one in GLES and one in gralloc. Which defeats the purpose of logic in the winsys to avoid having two pipe_screen's (and therefore two fd_device's) for same drm fd. Otherwise we end up w/ scenario's where one pipe_screen (fd_device) closes GEM handles that the other is still using, which leads to SUBMIT ioctl errors and generally a bad time.
2015-09-08fixup! WIP: pipe: add dmabuf/prime supportRob Clark
2015-09-04Revert "WIP: dup returned fd"Rob Clark
This reverts commit 3aa8ec295d6e8846977bed3bf268467a28e3afef.
2015-09-04fixup! WIP: more debug loggingRob Clark
2015-09-04WIP: hook drm debug traces up to android log stuffRob Clark
2015-09-01WIP: hacks to build gralloc_drm_pipe for freedrenoRob Clark
2015-09-01WIP: pipe: fix typo with initial freedreno supportRob Clark
Well, it *was* completely untested at the time.
2015-09-01WIP: dup returned fdRob Clark
This will be passed in to driver, who expects to take ownership of the fd.. so don't hand out our internal fd without dup()'ing it. TODO: double check this.. EGL_EXT_image_dma_buf_import says driver does not take ownership of the fd, and I think platform_android is using almost the same code-paths.. so possibly the dup() should be in the driver. (but dri3 doesn't appear to explode.. root question is whether screen->resource_from_handle() takes ownership of the fd or not, so not sure if there is already a dup() somewhere in the dma_buf_import path.)
2015-09-01WIP: gralloc.drm.so should go in system/lib/hwRob Clark
2015-09-01fixup! WIP: pipe: add dmabuf/prime supportRob Clark
2015-09-01WIP: pipe: add dmabuf/prime supportRob Clark
2015-09-01WIP: pipe: clean up driver specific includesRob Clark
2015-09-01Revert "Changed format constants to match what vmwgfx driver expects"Rob Clark
I'm not even sure how this could work.. vmwgfx should expect pipe_format's for the pipe_transfer, so with this change it should be converting incorrectly in svga_transform_format(). If this is really needed, it must be fixed in vmwgfx (since GL would be equally broken on vmwgfx) This reverts commit dc21193e3252ba2d6526546ba1d0c02116baf3ee.
2015-09-01WIP: freedreno: map/unmap should cpu_prep/finiRob Clark
We'd need to use pipe_transfer to synchronize w/ rendering done in the same process.. so let's hope that never happens. But locking for cpu access should sync w/ pending gpu access to the buffer to at least get the sw rendered client sharing buffers safely w/ surfaceflinger using the gpu.
2015-08-31WIP: always use gralloc_drm_get_pid()Rob Clark
Rather than accessing gralloc_drm_pid directly.
2015-08-31WIP: synchronize gralloc entry pointsRob Clark
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.
2015-08-31WIP: more debug loggingRob Clark
Including macro for tracing/debugging buffer lifetime issues. Possibly that should be made compile time option to reduce the debug traces for release build..
2015-07-14freedreno: add prime_fd support to bo handlesVarad Gautam
* registerBuffer(): import handles using dma-buf fd instead of flink * alloc(): locally created bo-s carry both fd and flink enabled using DMABUF flag in Android.mk. Signed-off-by: Varad Gautam <varadgautam@gmail.com>
2015-06-27freedreno: fill in virtual buffer address after mmapVarad Gautam
gralloc:lock() must supply virtual address for GRALLOC_USAGE_SW* type buffers. Signed-off-by: Varad Gautam <varadgautam@gmail.com>
2015-05-11Merge remote-tracking branch 'x86/kitkat-x86' into lollipop-x86Chih-Wei Huang
2015-05-11Include newer/missing chipset familiesPaulo Sergio Travaglia
- 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
2015-04-30gralloc_drm: make GRALLOC_USAGE_SW_READ_OFTEN be a valid usageChih-Wei Huang
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>.
2015-04-30Merge remote-tracking branch 'x86/kitkat-x86' into lollipop-x86Chih-Wei Huang
2015-04-30Enable radeonsi on Android-x86Paulo Sergio Travaglia
2015-04-29do not use pipe driver for r600gChih-Wei Huang
Seems it is buggy.
2015-04-29remove unnecessary paths in LOCAL_C_INCLUDESChih-Wei Huang
Now the include paths are imported automatically from libdrm*.
2015-04-19Merge remote-tracking branch 'x86/kitkat-x86' into lollipop-x86Chih-Wei Huang
2015-04-19Changed format constants to match what vmwgfx driver expectsPaulo Sergio Travaglia
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.
2015-01-29nouveau: undefine SW_INDICATOR_FULLY_DISABLES_TILINGChih-Wei Huang
Based on the work by pstglia.
2015-01-22gralloc_drm_pipe: fix building errors with mesa 10.4Chih-Wei Huang
2015-01-22add radeonsi to pci_id_driver_map.hChih-Wei Huang
2015-01-22nouveau: bring some sw_indicator loveEmil Velikov
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>
2015-01-22nouveau: update against libdrm_nouveau-2.0Emil Velikov
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-01-22all: Cleanup duplicated macros.Emil Velikov
- Move MAX macro to gralloc_drm.h - Drop the freedreno's duplicated ALIGN macro. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-01-22gralloc_drm_pipe: bail out as soon as the correct screen_create is calledEmil Velikov
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-01-22gralloc_drm: bail out early when we find the driverEmil Velikov
... rather than going through all the conditionals. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-01-20fix building issues of 64-bit targetsChih-Wei Huang
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.
2015-01-20enable multiarch buildsChih-Wei Huang
Convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH to support 64-bit targets.
2015-01-16freedreno: completely untested initial supportRob Clark
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>
2015-01-01gralloc_drm: improve logChih-Wei Huang
2014-05-19radeon: fix tiling config for family older than 06xxpstglia
2013-09-25get rid of HAL pixelformats 5551 and 4444Chih-Wei Huang
2013-08-04radeon: update chipinfo and remove outdated headersChih-Wei Huang
Copied radeon.h (radeon_probe.h) and radeon_chipinfo_gen.h from master branch of http://cgit.freedesktop.org/xorg/driver/xf86-video-ati
2013-07-22r600g: fix building errors with the latest mesaChih-Wei Huang
2013-07-17gralloc_drm_intel: fix i915 issues: failed to exec batchChih-Wei Huang
Old i915 doesn't have I915_EXEC_BLT bit. Only set the bit if it's available.
2013-07-17allow to force graphics modeSomebody
This patch adds in a system property "debug.drm.mode.force", which works *similarly* to "debug.drm.mode". XRESxYRES[@REFRESHRATE].
2013-07-17TEMP HACK: make non-standalone surfaceflinger workChih-Wei Huang