Home
last modified time | relevance | path

Searched refs:gem_create (Results 1 – 8 of 8) sorted by relevance

/external/minigbm/
Damdgpu.c136 union drm_amdgpu_gem_create gem_create; in amdgpu_create_bo() local
154 memset(&gem_create, 0, sizeof(gem_create)); in amdgpu_create_bo()
155 gem_create.in.bo_size = bo->total_size; in amdgpu_create_bo()
156 gem_create.in.alignment = 256; in amdgpu_create_bo()
157 gem_create.in.domain_flags = 0; in amdgpu_create_bo()
160 gem_create.in.domain_flags |= AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED; in amdgpu_create_bo()
162 gem_create.in.domains = AMDGPU_GEM_DOMAIN_GTT; in amdgpu_create_bo()
164 gem_create.in.domain_flags |= AMDGPU_GEM_CREATE_CPU_GTT_USWC; in amdgpu_create_bo()
169 gem_create.in.domain_flags |= AMDGPU_GEM_CREATE_EXPLICIT_SYNC; in amdgpu_create_bo()
173 ret = drmCommandWriteRead(drv_get_fd(bo->drv), DRM_AMDGPU_GEM_CREATE, &gem_create, in amdgpu_create_bo()
[all …]
Dexynos.c67 struct drm_exynos_gem_create gem_create; in exynos_bo_create() local
69 memset(&gem_create, 0, sizeof(gem_create)); in exynos_bo_create()
70 gem_create.size = size; in exynos_bo_create()
71 gem_create.flags = EXYNOS_BO_NONCONTIG; in exynos_bo_create()
73 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_EXYNOS_GEM_CREATE, &gem_create); in exynos_bo_create()
79 bo->handles[plane].u32 = gem_create.handle; in exynos_bo_create()
Dmediatek.c50 struct drm_mtk_gem_create gem_create; in mediatek_bo_create() local
60 memset(&gem_create, 0, sizeof(gem_create)); in mediatek_bo_create()
61 gem_create.size = bo->total_size; in mediatek_bo_create()
63 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_MTK_GEM_CREATE, &gem_create); in mediatek_bo_create()
65 drv_log("DRM_IOCTL_MTK_GEM_CREATE failed (size=%llu)\n", gem_create.size); in mediatek_bo_create()
70 bo->handles[plane].u32 = gem_create.handle; in mediatek_bo_create()
Drockchip.c170 struct drm_rockchip_gem_create gem_create; in rockchip_bo_create_with_modifiers() local
209 memset(&gem_create, 0, sizeof(gem_create)); in rockchip_bo_create_with_modifiers()
210 gem_create.size = bo->total_size; in rockchip_bo_create_with_modifiers()
212 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_ROCKCHIP_GEM_CREATE, &gem_create); in rockchip_bo_create_with_modifiers()
216 (unsigned long long)gem_create.size); in rockchip_bo_create_with_modifiers()
221 bo->handles[plane].u32 = gem_create.handle; in rockchip_bo_create_with_modifiers()
Dtegra.c215 struct drm_tegra_gem_create gem_create; in tegra_bo_create() local
225 memset(&gem_create, 0, sizeof(gem_create)); in tegra_bo_create()
226 gem_create.size = size; in tegra_bo_create()
227 gem_create.flags = 0; in tegra_bo_create()
229 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_TEGRA_GEM_CREATE, &gem_create); in tegra_bo_create()
235 bo->handles[0].u32 = gem_create.handle; in tegra_bo_create()
Di915.c343 struct drm_i915_gem_create gem_create; in i915_bo_create_for_modifier() local
375 memset(&gem_create, 0, sizeof(gem_create)); in i915_bo_create_for_modifier()
376 gem_create.size = bo->total_size; in i915_bo_create_for_modifier()
378 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_CREATE, &gem_create); in i915_bo_create_for_modifier()
380 drv_log("DRM_IOCTL_I915_GEM_CREATE failed (size=%llu)\n", gem_create.size); in i915_bo_create_for_modifier()
385 bo->handles[plane].u32 = gem_create.handle; in i915_bo_create_for_modifier()
/external/mesa3d/src/intel/vulkan/
Danv_gem.c54 struct drm_i915_gem_create gem_create = { in anv_gem_create() local
58 int ret = anv_ioctl(device->fd, DRM_IOCTL_I915_GEM_CREATE, &gem_create); in anv_gem_create()
64 return gem_create.handle; in anv_gem_create()
256 struct drm_i915_gem_create gem_create = { in anv_gem_get_bit6_swizzle() local
260 if (anv_ioctl(fd, DRM_IOCTL_I915_GEM_CREATE, &gem_create)) { in anv_gem_get_bit6_swizzle()
272 .handle = gem_create.handle, in anv_gem_get_bit6_swizzle()
286 .handle = gem_create.handle, in anv_gem_get_bit6_swizzle()
299 close.handle = gem_create.handle; in anv_gem_get_bit6_swizzle()
/external/kernel-headers/original/uapi/drm/
Darmada_drm.h31 ARMADA_IOCTL(IOWR, GEM_CREATE, gem_create)