Lines Matching refs:screen

88 llvmpipe_get_vendor(struct pipe_screen *screen)  in llvmpipe_get_vendor()  argument
95 llvmpipe_get_name(struct pipe_screen *screen) in llvmpipe_get_name() argument
104 llvmpipe_get_param(struct pipe_screen *screen, enum pipe_cap param) in llvmpipe_get_param() argument
219 llvmpipe_get_shader_param(struct pipe_screen *screen, unsigned shader, enum pipe_shader_cap param) in llvmpipe_get_shader_param() argument
249 llvmpipe_get_paramf(struct pipe_screen *screen, enum pipe_capf param) in llvmpipe_get_paramf() argument
288 struct llvmpipe_screen *screen = llvmpipe_screen(_screen); in llvmpipe_is_format_supported() local
289 struct sw_winsys *winsys = screen->winsys; in llvmpipe_is_format_supported()
365 struct llvmpipe_screen *screen = llvmpipe_screen(_screen); in llvmpipe_flush_frontbuffer() local
366 struct sw_winsys *winsys = screen->winsys; in llvmpipe_flush_frontbuffer()
378 struct llvmpipe_screen *screen = llvmpipe_screen(_screen); in llvmpipe_destroy_screen() local
379 struct sw_winsys *winsys = screen->winsys; in llvmpipe_destroy_screen()
381 if (screen->rast) in llvmpipe_destroy_screen()
382 lp_rast_destroy(screen->rast); in llvmpipe_destroy_screen()
384 lp_jit_screen_cleanup(screen); in llvmpipe_destroy_screen()
389 pipe_mutex_destroy(screen->rast_mutex); in llvmpipe_destroy_screen()
391 FREE(screen); in llvmpipe_destroy_screen()
401 llvmpipe_fence_reference(struct pipe_screen *screen, in llvmpipe_fence_reference() argument
416 llvmpipe_fence_signalled(struct pipe_screen *screen, in llvmpipe_fence_signalled() argument
428 llvmpipe_fence_finish(struct pipe_screen *screen, in llvmpipe_fence_finish() argument
447 struct llvmpipe_screen *screen; in llvmpipe_create_screen() local
462 screen = CALLOC_STRUCT(llvmpipe_screen); in llvmpipe_create_screen()
463 if (!screen) in llvmpipe_create_screen()
466 screen->winsys = winsys; in llvmpipe_create_screen()
468 screen->base.destroy = llvmpipe_destroy_screen; in llvmpipe_create_screen()
470 screen->base.get_name = llvmpipe_get_name; in llvmpipe_create_screen()
471 screen->base.get_vendor = llvmpipe_get_vendor; in llvmpipe_create_screen()
472 screen->base.get_param = llvmpipe_get_param; in llvmpipe_create_screen()
473 screen->base.get_shader_param = llvmpipe_get_shader_param; in llvmpipe_create_screen()
474 screen->base.get_paramf = llvmpipe_get_paramf; in llvmpipe_create_screen()
475 screen->base.is_format_supported = llvmpipe_is_format_supported; in llvmpipe_create_screen()
477 screen->base.context_create = llvmpipe_create_context; in llvmpipe_create_screen()
478 screen->base.flush_frontbuffer = llvmpipe_flush_frontbuffer; in llvmpipe_create_screen()
479 screen->base.fence_reference = llvmpipe_fence_reference; in llvmpipe_create_screen()
480 screen->base.fence_signalled = llvmpipe_fence_signalled; in llvmpipe_create_screen()
481 screen->base.fence_finish = llvmpipe_fence_finish; in llvmpipe_create_screen()
483 llvmpipe_init_screen_resource_funcs(&screen->base); in llvmpipe_create_screen()
485 lp_jit_screen_init(screen); in llvmpipe_create_screen()
487 screen->num_threads = util_cpu_caps.nr_cpus > 1 ? util_cpu_caps.nr_cpus : 0; in llvmpipe_create_screen()
489 screen->num_threads = 0; in llvmpipe_create_screen()
491 screen->num_threads = debug_get_num_option("LP_NUM_THREADS", screen->num_threads); in llvmpipe_create_screen()
492 screen->num_threads = MIN2(screen->num_threads, LP_MAX_THREADS); in llvmpipe_create_screen()
494 screen->rast = lp_rast_create(screen->num_threads); in llvmpipe_create_screen()
495 if (!screen->rast) { in llvmpipe_create_screen()
496 lp_jit_screen_cleanup(screen); in llvmpipe_create_screen()
497 FREE(screen); in llvmpipe_create_screen()
500 pipe_mutex_init(screen->rast_mutex); in llvmpipe_create_screen()
504 return &screen->base; in llvmpipe_create_screen()