No description
Many GL drivers assume that first value in the native_handle data array is the fd associated with the graphics buffer, i.e, int prime_fd = handle->data[0]; This in our case until 4bfc7401. We added 64-bit modifiers in our import data, so all values in the drv_import_fd_data struct get 8-byte aligned. In our cros_gralloc_handle, 4 bytes of padding are added between native_handle_t and drv_import_fd_data to make the alignment work. To counter-act this, we can stop embedding drv_import_fd_data in cros_gralloc_handle. BUG=chromium:616275 TEST=Mali driver doesn't return an error when running cros_gralloc CQ-DEPEND=CL:414585 Change-Id: Ib6c165e98126468b96fa7119d5ca13eebee1655c Reviewed-on: https://chromium-review.googlesource.com/414536 Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: Gurchetan Singh <gurchetansingh@chromium.org> Reviewed-by: Stéphane Marchesin <marcheu@chromium.org> |
||
|---|---|---|
| cros_gralloc | ||
| amdgpu.c | ||
| cirrus.c | ||
| common.mk | ||
| drv.c | ||
| drv.h | ||
| drv_priv.h | ||
| evdi.c | ||
| exynos.c | ||
| gbm.c | ||
| gbm.h | ||
| gbm.pc | ||
| gbm_helpers.c | ||
| gbm_helpers.h | ||
| gbm_priv.h | ||
| gma500.c | ||
| helpers.c | ||
| helpers.h | ||
| i915.c | ||
| list.h | ||
| Makefile | ||
| marvell.c | ||
| mediatek.c | ||
| rockchip.c | ||
| tegra.c | ||
| udl.c | ||
| util.h | ||
| vgem.c | ||
| virtio_gpu.c | ||