1
0
Fork 0
No description
Find a file
Lauri Peltonen ceaadea1bd drm_hwcomposer: Support Nvidia gralloc
When using an Nvidia gralloc implementation, ask Nvidia gralloc to import the
buffer_handle_t to the hwcomposer's drm device.

Arguably, the code to perform the import would more naturally belong to
drm_hwcomposer than Nvidia gralloc.  But letting Nvidia gralloc do it has two
advantages.  First, drm_hwcomposer doesn't need to include vendor headers or
link against vendor libraries.  This means that it's easy to support both
drm_gralloc and Nvidia gralloc from the same default build of drm_hwcomposer.
Second, Nvidia gralloc will take care of properly setting up any vendor
specific metadata (such as tiling parameters) of the imported GEM handle.

Change-Id: I0f77fb301e7e0bff2a8cd7befeae4bc4892220ad
Reviewed-on: https://chrome-internal-review.googlesource.com/195115
Reviewed-by: Stéphane Marchesin <marcheu@google.com>
Commit-Queue: Stéphane Marchesin <marcheu@google.com>
Tested-by: Stéphane Marchesin <marcheu@google.com>
2015-02-14 02:04:16 +00:00
Android.mk drm_hwcomposer: Support Nvidia gralloc 2015-02-14 02:04:16 +00:00
drm_hwcomposer.h drm_hwcomposer: Support Nvidia gralloc 2015-02-14 02:04:16 +00:00
hwcomposer.cpp drm_hwcomposer: Support other drm nodes than card0 2015-02-14 01:38:58 +00:00
hwcomposer_import_drm_gralloc.cpp drm_hwcomposer: Use prime to import gem handles 2015-02-09 02:24:11 -05:00
hwcomposer_import_nv_gralloc.cpp drm_hwcomposer: Support Nvidia gralloc 2015-02-14 02:04:16 +00:00