• Home
  • Raw
  • Download

Lines Matching refs:screen

51    struct tegra_screen *screen = to_tegra_screen(pscreen);  in tegra_screen_destroy()  local
53 screen->gpu->destroy(screen->gpu); in tegra_screen_destroy()
78 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_get_param() local
80 return screen->gpu->get_param(screen->gpu, param); in tegra_screen_get_param()
86 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_get_paramf() local
88 return screen->gpu->get_paramf(screen->gpu, param); in tegra_screen_get_paramf()
95 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_get_shader_param() local
97 return screen->gpu->get_shader_param(screen->gpu, shader, param); in tegra_screen_get_shader_param()
106 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_get_video_param() local
108 return screen->gpu->get_video_param(screen->gpu, profile, entrypoint, in tegra_screen_get_video_param()
118 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_get_compute_param() local
120 return screen->gpu->get_compute_param(screen->gpu, ir_type, param, in tegra_screen_get_compute_param()
127 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_get_timestamp() local
129 return screen->gpu->get_timestamp(screen->gpu); in tegra_screen_get_timestamp()
140 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_is_format_supported() local
142 return screen->gpu->is_format_supported(screen->gpu, format, target, in tegra_screen_is_format_supported()
153 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_is_video_format_supported() local
155 return screen->gpu->is_video_format_supported(screen->gpu, format, profile, in tegra_screen_is_video_format_supported()
163 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_can_create_resource() local
165 return screen->gpu->can_create_resource(screen->gpu, template); in tegra_screen_can_create_resource()
168 static int tegra_screen_import_resource(struct tegra_screen *screen, in tegra_screen_import_resource() argument
179 status = screen->gpu->resource_get_handle(screen->gpu, NULL, resource->gpu, in tegra_screen_import_resource()
195 err = drmPrimeFDToHandle(screen->fd, fd, &resource->handle); in tegra_screen_import_resource()
208 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_resource_create() local
231 resource->gpu = screen->gpu->resource_create_with_modifiers(screen->gpu, in tegra_screen_resource_create()
239 err = tegra_screen_import_resource(screen, resource); in tegra_screen_resource_create()
246 resource->base.screen = &screen->base; in tegra_screen_resource_create()
251 screen->gpu->resource_destroy(screen->gpu, resource->gpu); in tegra_screen_resource_create()
263 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_resource_create_front() local
266 resource = screen->gpu->resource_create_front(screen->gpu, template, in tegra_screen_resource_create_front()
269 resource->screen = pscreen; in tegra_screen_resource_create_front()
280 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_resource_from_handle() local
287 resource->gpu = screen->gpu->resource_from_handle(screen->gpu, template, in tegra_screen_resource_from_handle()
296 resource->base.screen = &screen->base; in tegra_screen_resource_from_handle()
307 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_resource_from_user_memory() local
310 resource = screen->gpu->resource_from_user_memory(screen->gpu, template, in tegra_screen_resource_from_user_memory()
313 resource->screen = pscreen; in tegra_screen_resource_from_user_memory()
327 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_resource_get_handle() local
341 ret = screen->gpu->resource_get_handle(screen->gpu, in tegra_screen_resource_get_handle()
368 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_flush_frontbuffer() local
371 screen->gpu->flush_frontbuffer(screen->gpu, in tegra_screen_flush_frontbuffer()
382 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_fence_reference() local
384 screen->gpu->fence_reference(screen->gpu, ptr, fence); in tegra_screen_fence_reference()
394 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_fence_finish() local
396 return screen->gpu->fence_finish(screen->gpu, in tegra_screen_fence_finish()
405 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_fence_get_fd() local
407 return screen->gpu->fence_get_fd(screen->gpu, fence); in tegra_screen_fence_get_fd()
415 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_get_driver_query_info() local
417 return screen->gpu->get_driver_query_info(screen->gpu, index, info); in tegra_screen_get_driver_query_info()
425 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_get_driver_query_group_info() local
427 return screen->gpu->get_driver_query_group_info(screen->gpu, index, info); in tegra_screen_get_driver_query_group_info()
434 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_query_memory_info() local
436 screen->gpu->query_memory_info(screen->gpu, info); in tegra_screen_query_memory_info()
444 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_get_compiler_options() local
447 if (screen->gpu->get_compiler_options) in tegra_screen_get_compiler_options()
448 options = screen->gpu->get_compiler_options(screen->gpu, ir, shader); in tegra_screen_get_compiler_options()
456 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_get_disk_shader_cache() local
458 return screen->gpu->get_disk_shader_cache(screen->gpu); in tegra_screen_get_disk_shader_cache()
467 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_resource_create_with_modifiers() local
486 resource->gpu = screen->gpu->resource_create_with_modifiers(screen->gpu, in tegra_screen_resource_create_with_modifiers()
493 err = tegra_screen_import_resource(screen, resource); in tegra_screen_resource_create_with_modifiers()
499 resource->base.screen = &screen->base; in tegra_screen_resource_create_with_modifiers()
504 screen->gpu->resource_destroy(screen->gpu, resource->gpu); in tegra_screen_resource_create_with_modifiers()
516 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_query_dmabuf_modifiers() local
518 screen->gpu->query_dmabuf_modifiers(screen->gpu, format, max, modifiers, in tegra_screen_query_dmabuf_modifiers()
528 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_is_dmabuf_modifier_supported() local
530 return screen->gpu->is_dmabuf_modifier_supported(screen->gpu, modifier, in tegra_screen_is_dmabuf_modifier_supported()
539 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_get_dmabuf_modifier_planes() local
541 return screen->gpu->get_dmabuf_modifier_planes ? in tegra_screen_get_dmabuf_modifier_planes()
542 screen->gpu->get_dmabuf_modifier_planes(screen->gpu, modifier, format) : in tegra_screen_get_dmabuf_modifier_planes()
551 struct tegra_screen *screen = to_tegra_screen(pscreen); in tegra_screen_memobj_create_from_handle() local
553 return screen->gpu->memobj_create_from_handle(screen->gpu, handle, in tegra_screen_memobj_create_from_handle()
560 struct tegra_screen *screen; in tegra_screen_create() local
562 screen = calloc(1, sizeof(*screen)); in tegra_screen_create()
563 if (!screen) in tegra_screen_create()
566 screen->fd = fd; in tegra_screen_create()
568 screen->gpu_fd = loader_open_render_node("nouveau"); in tegra_screen_create()
569 if (screen->gpu_fd < 0) { in tegra_screen_create()
573 free(screen); in tegra_screen_create()
577 screen->gpu = nouveau_drm_screen_create(screen->gpu_fd); in tegra_screen_create()
578 if (!screen->gpu) { in tegra_screen_create()
580 close(screen->gpu_fd); in tegra_screen_create()
581 free(screen); in tegra_screen_create()
585 screen->base.destroy = tegra_screen_destroy; in tegra_screen_create()
586 screen->base.get_name = tegra_screen_get_name; in tegra_screen_create()
587 screen->base.get_vendor = tegra_screen_get_vendor; in tegra_screen_create()
588 screen->base.get_device_vendor = tegra_screen_get_device_vendor; in tegra_screen_create()
589 screen->base.get_param = tegra_screen_get_param; in tegra_screen_create()
590 screen->base.get_paramf = tegra_screen_get_paramf; in tegra_screen_create()
591 screen->base.get_shader_param = tegra_screen_get_shader_param; in tegra_screen_create()
592 screen->base.get_video_param = tegra_screen_get_video_param; in tegra_screen_create()
593 screen->base.get_compute_param = tegra_screen_get_compute_param; in tegra_screen_create()
594 screen->base.get_timestamp = tegra_screen_get_timestamp; in tegra_screen_create()
595 screen->base.context_create = tegra_screen_context_create; in tegra_screen_create()
596 screen->base.is_format_supported = tegra_screen_is_format_supported; in tegra_screen_create()
597 screen->base.is_video_format_supported = tegra_screen_is_video_format_supported; in tegra_screen_create()
600 if (screen->gpu->can_create_resource) in tegra_screen_create()
601 screen->base.can_create_resource = tegra_screen_can_create_resource; in tegra_screen_create()
603 screen->base.resource_create = tegra_screen_resource_create; in tegra_screen_create()
604 screen->base.resource_create_front = tegra_screen_resource_create_front; in tegra_screen_create()
605 screen->base.resource_from_handle = tegra_screen_resource_from_handle; in tegra_screen_create()
606 screen->base.resource_from_user_memory = tegra_screen_resource_from_user_memory; in tegra_screen_create()
607 screen->base.resource_get_handle = tegra_screen_resource_get_handle; in tegra_screen_create()
608 screen->base.resource_destroy = tegra_screen_resource_destroy; in tegra_screen_create()
610 screen->base.flush_frontbuffer = tegra_screen_flush_frontbuffer; in tegra_screen_create()
611 screen->base.fence_reference = tegra_screen_fence_reference; in tegra_screen_create()
612 screen->base.fence_finish = tegra_screen_fence_finish; in tegra_screen_create()
613 screen->base.fence_get_fd = tegra_screen_fence_get_fd; in tegra_screen_create()
615 screen->base.get_driver_query_info = tegra_screen_get_driver_query_info; in tegra_screen_create()
616 screen->base.get_driver_query_group_info = tegra_screen_get_driver_query_group_info; in tegra_screen_create()
617 screen->base.query_memory_info = tegra_screen_query_memory_info; in tegra_screen_create()
619 screen->base.get_compiler_options = tegra_screen_get_compiler_options; in tegra_screen_create()
620 screen->base.get_disk_shader_cache = tegra_screen_get_disk_shader_cache; in tegra_screen_create()
622 screen->base.resource_create_with_modifiers = tegra_screen_resource_create_with_modifiers; in tegra_screen_create()
623 screen->base.query_dmabuf_modifiers = tegra_screen_query_dmabuf_modifiers; in tegra_screen_create()
624 screen->base.is_dmabuf_modifier_supported = tegra_screen_is_dmabuf_modifier_supported; in tegra_screen_create()
625 screen->base.get_dmabuf_modifier_planes = tegra_screen_get_dmabuf_modifier_planes; in tegra_screen_create()
626 screen->base.memobj_create_from_handle = tegra_screen_memobj_create_from_handle; in tegra_screen_create()
628 return &screen->base; in tegra_screen_create()