Home
last modified time | relevance | path

Searched refs:gem_get_tiling (Results 1 – 2 of 2) sorted by relevance

/external/minigbm/
Dtegra.c266 struct drm_tegra_gem_get_tiling gem_get_tiling; in tegra_bo_import() local
273 memset(&gem_get_tiling, 0, sizeof(gem_get_tiling)); in tegra_bo_import()
274 gem_get_tiling.handle = bo->handles[0].u32; in tegra_bo_import()
276 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_TEGRA_GEM_GET_TILING, &gem_get_tiling); in tegra_bo_import()
284 if (gem_get_tiling.mode == DRM_TEGRA_GEM_TILING_MODE_PITCH) { in tegra_bo_import()
286 } else if (gem_get_tiling.mode == DRM_TEGRA_GEM_TILING_MODE_BLOCK) { in tegra_bo_import()
289 drv_log("%s: unknown tile format %d\n", __func__, gem_get_tiling.mode); in tegra_bo_import()
Di915.c442 struct drm_i915_gem_get_tiling gem_get_tiling; in i915_bo_import() local
449 memset(&gem_get_tiling, 0, sizeof(gem_get_tiling)); in i915_bo_import()
450 gem_get_tiling.handle = bo->handles[0].u32; in i915_bo_import()
452 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_GET_TILING, &gem_get_tiling); in i915_bo_import()
459 bo->tiling = gem_get_tiling.tiling_mode; in i915_bo_import()