Lines Matching refs:whandle
579 struct winsys_handle whandle; in surface_from_external_memory() local
610 memset(&whandle, 0, sizeof(struct winsys_handle)); in surface_from_external_memory()
611 whandle.type = WINSYS_HANDLE_TYPE_FD; in surface_from_external_memory()
612 whandle.handle = memory_attribute->buffers[index]; in surface_from_external_memory()
613 whandle.modifier = DRM_FORMAT_MOD_INVALID; in surface_from_external_memory()
614 whandle.format = templat->buffer_format; in surface_from_external_memory()
636 whandle.stride = memory_attribute->pitches[i]; in surface_from_external_memory()
637 whandle.offset = memory_attribute->offsets[i]; in surface_from_external_memory()
638 resources[i] = pscreen->resource_from_handle(pscreen, &res_templ, &whandle, in surface_from_external_memory()
667 struct winsys_handle whandle; in surface_from_prime_2() local
725 memset(&whandle, 0, sizeof(struct winsys_handle)); in surface_from_prime_2()
726 whandle.type = WINSYS_HANDLE_TYPE_FD; in surface_from_prime_2()
727 whandle.format = templat->buffer_format; in surface_from_prime_2()
728 whandle.modifier = desc->objects[0].drm_format_modifier; in surface_from_prime_2()
745 whandle.stride = desc->layers[layer].pitch[layer_plane]; in surface_from_prime_2()
746 whandle.offset = desc->layers[layer].offset[layer_plane]; in surface_from_prime_2()
747 whandle.handle = desc->objects[desc->layers[layer].object_index[layer_plane]].fd; in surface_from_prime_2()
748 whandle.plane = plane; in surface_from_prime_2()
750 resources[plane] = pscreen->resource_from_handle(pscreen, &res_templ, &whandle, in surface_from_prime_2()
1267 struct winsys_handle whandle; in vlVaExportSurfaceHandle() local
1282 memset(&whandle, 0, sizeof(whandle)); in vlVaExportSurfaceHandle()
1283 whandle.type = WINSYS_HANDLE_TYPE_FD; in vlVaExportSurfaceHandle()
1286 &whandle, usage)) { in vlVaExportSurfaceHandle()
1291 desc->objects[p].fd = (int)whandle.handle; in vlVaExportSurfaceHandle()
1293 desc->objects[p].drm_format_modifier = whandle.modifier; in vlVaExportSurfaceHandle()
1297 desc->layers[0].offset[p] = whandle.offset; in vlVaExportSurfaceHandle()
1298 desc->layers[0].pitch[p] = whandle.stride; in vlVaExportSurfaceHandle()
1303 desc->layers[p].offset[0] = whandle.offset; in vlVaExportSurfaceHandle()
1304 desc->layers[p].pitch[0] = whandle.stride; in vlVaExportSurfaceHandle()