Lines Matching refs:dscreen
136 struct dd_screen *dscreen = dd_screen(_screen); in dd_screen_context_create() local
137 struct pipe_screen *screen = dscreen->screen; in dd_screen_context_create()
141 return dd_context_create(dscreen, in dd_screen_context_create()
378 struct dd_screen *dscreen = dd_screen(_screen); in dd_screen_destroy() local
379 struct pipe_screen *screen = dscreen->screen; in dd_screen_destroy()
382 FREE(dscreen); in dd_screen_destroy()
427 struct dd_screen *dscreen; in ddebug_screen_create() local
516 dscreen = CALLOC_STRUCT(dd_screen); in ddebug_screen_create()
517 if (!dscreen) in ddebug_screen_create()
521 dscreen->base._member = screen->_member ? dd_screen_##_member : NULL in ddebug_screen_create()
523 dscreen->base.destroy = dd_screen_destroy; in ddebug_screen_create()
524 dscreen->base.get_name = dd_screen_get_name; in ddebug_screen_create()
525 dscreen->base.get_vendor = dd_screen_get_vendor; in ddebug_screen_create()
526 dscreen->base.get_device_vendor = dd_screen_get_device_vendor; in ddebug_screen_create()
528 dscreen->base.get_param = dd_screen_get_param; in ddebug_screen_create()
529 dscreen->base.get_paramf = dd_screen_get_paramf; in ddebug_screen_create()
530 dscreen->base.get_compute_param = dd_screen_get_compute_param; in ddebug_screen_create()
531 dscreen->base.get_shader_param = dd_screen_get_shader_param; in ddebug_screen_create()
532 dscreen->base.query_memory_info = dd_screen_query_memory_info; in ddebug_screen_create()
536 dscreen->base.context_create = dd_screen_context_create; in ddebug_screen_create()
537 dscreen->base.is_format_supported = dd_screen_is_format_supported; in ddebug_screen_create()
540 dscreen->base.resource_create = dd_screen_resource_create; in ddebug_screen_create()
541 dscreen->base.resource_from_handle = dd_screen_resource_from_handle; in ddebug_screen_create()
545 dscreen->base.resource_get_handle = dd_screen_resource_get_handle; in ddebug_screen_create()
547 dscreen->base.resource_destroy = dd_screen_resource_destroy; in ddebug_screen_create()
561 dscreen->screen = screen; in ddebug_screen_create()
562 dscreen->timeout_ms = timeout; in ddebug_screen_create()
563 dscreen->dump_mode = mode; in ddebug_screen_create()
564 dscreen->flush_always = flush; in ddebug_screen_create()
565 dscreen->transfers = transfers; in ddebug_screen_create()
566 dscreen->verbose = verbose; in ddebug_screen_create()
567 dscreen->apitrace_dump_call = apitrace_dump_call; in ddebug_screen_create()
569 switch (dscreen->dump_mode) { in ddebug_screen_create()
581 if (dscreen->timeout_ms > 0) in ddebug_screen_create()
582 fprintf(stderr, "Hang detection timeout is %ums.\n", dscreen->timeout_ms); in ddebug_screen_create()
586 dscreen->skip_count = debug_get_num_option("GALLIUM_DDEBUG_SKIP", 0); in ddebug_screen_create()
587 if (dscreen->skip_count > 0) { in ddebug_screen_create()
589 dscreen->skip_count); in ddebug_screen_create()
592 return &dscreen->base; in ddebug_screen_create()