| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
With the load_pipe_screen support, these libraries are no longer needed.
Signed-off-by: Rob Herring <robh@kernel.org>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Mesa EGL needs to retrieve prime fds from gralloc handles.
Signed-off-by: Rob Herring <robh@kernel.org>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Rob Herring <robh@kernel.org>
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
This reverts commit 3e00d3255ba6de08761a6b8f40b838680d502d0b.
|
|/
|
|
|
| |
Change-Id: If640f6ad7c6b904df59b5c5e164f184f1fc97170
Signed-off-by: Sean Paul <seanpaul@chromium.org>
|
|
|
|
| |
Rather than accessing gralloc_drm_pid directly.
|
| |
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
- 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
|
| |
| |
| |
| |
| |
| |
| | |
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>.
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Seems it is buggy.
|
| |
| |
| |
| | |
Now the include paths are imported automatically from libdrm*.
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
Based on the work by pstglia.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| | |
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
|
| |
| |
| |
| |
| |
| |
| | |
- Move MAX macro to gralloc_drm.h
- Drop the freedreno's duplicated ALIGN macro.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
|
| |
| |
| |
| |
| |
| | |
... rather than going through all the conditionals.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
| |
Convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH
to support 64-bit targets.
|
| |
|
| |
|
|
|
|
|
| |
Copied radeon.h (radeon_probe.h) and radeon_chipinfo_gen.h from master branch
of http://cgit.freedesktop.org/xorg/driver/xf86-video-ati
|
| |
|
|
|
|
| |
Old i915 doesn't have I915_EXEC_BLT bit. Only set the bit if it's available.
|
|
|
|
|
| |
This patch adds in a system property "debug.drm.mode.force", which works
*similarly* to "debug.drm.mode". XRESxYRES[@REFRESHRATE].
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|