Lines Matching defs:gralloc
26 #include <hardware/gralloc.h>
118 /* get dma-buf and modifier from gralloc info */
134 /* Qualcomm gralloc, find it at:
139 * from your platform's gralloc. On msm8996 (a5xx) and newer grallocs
147 "expected at least 2 for qcom gralloc",
161 /* QCOM gralloc has two fds passed in: the actual GPU buffer, and a buffer
169 "expected 1 (gbm_gralloc) or 2 (qcom gralloc)",
199 const gralloc_module_t *gralloc = device->gralloc;
203 ret = gralloc->perform(gralloc, CROS_GRALLOC_DRM_GET_BUFFER_INFO,
221 if (!device->gralloc) {
222 /* get gralloc module for gralloc buffer info query */
224 (const hw_module_t **)&device->gralloc);
228 * a gralloc handle, and there is no gralloc, it is some sort
233 "Could not open gralloc\n");
236 const gralloc_module_t *gralloc = device->gralloc;
238 mesa_logi("opened gralloc module name: %s", gralloc->common.name);
240 /* TODO not sure qcom gralloc module name, but we should check
244 if (!strcmp(gralloc->common.name, cros_gralloc_module_name) && gralloc->perform) {
259 * Creates the VkImage using the gralloc handle in *gralloc_info.
261 * We support two different grallocs here, gbm_gralloc, and the qcom gralloc
385 * gralloc swapchains.
389 "unsupported VkImageUsageFlags(0x%x) for gralloc "