Lines Matching refs:screen
84 struct d3d12_screen* screen = d3d12_screen(pscreen); in d3d12_get_device_vendor() local
86 switch (screen->vendor_id) { in d3d12_get_device_vendor()
103 struct d3d12_screen* screen = d3d12_screen(pscreen); in d3d12_get_video_mem() local
105 return screen->memory_size_megabytes; in d3d12_get_video_mem()
111 struct d3d12_screen *screen = d3d12_screen(pscreen); in d3d12_get_param() local
136 if (screen->max_feature_level >= D3D_FEATURE_LEVEL_10_0) in d3d12_get_param()
138 else if (screen->max_feature_level == D3D_FEATURE_LEVEL_9_3) in d3d12_get_param()
146 if (screen->max_feature_level >= D3D_FEATURE_LEVEL_11_0) in d3d12_get_param()
148 else if (screen->max_feature_level >= D3D_FEATURE_LEVEL_10_0) in d3d12_get_param()
150 else if (screen->max_feature_level >= D3D_FEATURE_LEVEL_9_3) in d3d12_get_param()
155 if (screen->max_feature_level >= D3D_FEATURE_LEVEL_10_0) in d3d12_get_param()
160 if (screen->max_feature_level >= D3D_FEATURE_LEVEL_11_0) in d3d12_get_param()
162 else if (screen->max_feature_level >= D3D_FEATURE_LEVEL_10_0) in d3d12_get_param()
164 else if (screen->max_feature_level == D3D_FEATURE_LEVEL_9_3) in d3d12_get_param()
184 if (screen->max_feature_level >= D3D_FEATURE_LEVEL_11_0) in d3d12_get_param()
186 else if (screen->max_feature_level >= D3D_FEATURE_LEVEL_10_0) in d3d12_get_param()
217 return screen->max_feature_level >= D3D_FEATURE_LEVEL_10_1; in d3d12_get_param()
254 return screen->architecture.UMA; in d3d12_get_param()
265 return screen->max_feature_level >= D3D_FEATURE_LEVEL_10_0; in d3d12_get_param()
287 return screen->opts.PSSpecifiedStencilRefSupported; in d3d12_get_param()
331 struct d3d12_screen *screen = d3d12_screen(pscreen); in d3d12_get_paramf() local
343 return screen->max_feature_level >= D3D_FEATURE_LEVEL_10_0 ? 16.0f : 2.0f; in d3d12_get_paramf()
365 struct d3d12_screen *screen = d3d12_screen(pscreen); in d3d12_get_shader_param() local
380 return screen->max_feature_level >= D3D_FEATURE_LEVEL_10_1 ? 32 : 16; in d3d12_get_shader_param()
385 if (screen->max_feature_level >= D3D_FEATURE_LEVEL_10_0) in d3d12_get_shader_param()
387 else if (screen->max_feature_level == D3D_FEATURE_LEVEL_9_3) in d3d12_get_shader_param()
391 return screen->max_feature_level >= D3D_FEATURE_LEVEL_10_1 ? 32 : 16; in d3d12_get_shader_param()
394 if (screen->opts.ResourceBindingTier == D3D12_RESOURCE_BINDING_TIER_1) in d3d12_get_shader_param()
428 if (screen->opts.ResourceBindingTier == D3D12_RESOURCE_BINDING_TIER_1) in d3d12_get_shader_param()
477 struct d3d12_screen *screen = d3d12_screen(pscreen); in d3d12_is_format_supported() local
532 if (FAILED(screen->dev->CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT, in d3d12_is_format_supported()
566 if (FAILED(screen->dev->CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT, in d3d12_is_format_supported()
595 if (FAILED(screen->dev->CheckFeatureSupport(D3D12_FEATURE_MULTISAMPLE_QUALITY_LEVELS, in d3d12_is_format_supported()
608 struct d3d12_screen *screen = d3d12_screen(pscreen); in d3d12_destroy_screen() local
609 slab_destroy_parent(&screen->transfer_pool); in d3d12_destroy_screen()
610 d3d12_descriptor_pool_free(screen->rtv_pool); in d3d12_destroy_screen()
611 d3d12_descriptor_pool_free(screen->dsv_pool); in d3d12_destroy_screen()
612 d3d12_descriptor_pool_free(screen->view_pool); in d3d12_destroy_screen()
613 screen->readback_slab_bufmgr->destroy(screen->readback_slab_bufmgr); in d3d12_destroy_screen()
614 screen->slab_bufmgr->destroy(screen->slab_bufmgr); in d3d12_destroy_screen()
615 screen->cache_bufmgr->destroy(screen->cache_bufmgr); in d3d12_destroy_screen()
616 screen->bufmgr->destroy(screen->bufmgr); in d3d12_destroy_screen()
617 mtx_destroy(&screen->descriptor_pool_mutex); in d3d12_destroy_screen()
618 FREE(screen); in d3d12_destroy_screen()
629 struct d3d12_screen *screen = d3d12_screen(pscreen); in d3d12_flush_frontbuffer() local
630 struct sw_winsys *winsys = screen->winsys; in d3d12_flush_frontbuffer()
657 if (SUCCEEDED(screen->cmdqueue->QueryInterface(IID_PPV_ARGS(&sharing_contract)))) { in d3d12_flush_frontbuffer()
759 can_attribute_at_vertex(struct d3d12_screen *screen) in can_attribute_at_vertex() argument
761 switch (screen->vendor_id) { in can_attribute_at_vertex()
765 return screen->opts3.BarycentricsSupported; in can_attribute_at_vertex()
770 d3d12_init_null_srvs(struct d3d12_screen *screen) in d3d12_init_null_srvs() argument
848 d3d12_descriptor_pool_alloc_handle(screen->view_pool, &screen->null_srvs[i]); in d3d12_init_null_srvs()
849 screen->dev->CreateShaderResourceView(NULL, &srv, screen->null_srvs[i].cpu_handle); in d3d12_init_null_srvs()
855 d3d12_init_null_rtv(struct d3d12_screen *screen) in d3d12_init_null_rtv() argument
862 d3d12_descriptor_pool_alloc_handle(screen->rtv_pool, &screen->null_rtv); in d3d12_init_null_rtv()
863 screen->dev->CreateRenderTargetView(NULL, &rtv, screen->null_rtv.cpu_handle); in d3d12_init_null_rtv()
867 d3d12_init_screen(struct d3d12_screen *screen, struct sw_winsys *winsys, IUnknown *adapter) in d3d12_init_screen() argument
871 screen->winsys = winsys; in d3d12_init_screen()
872 mtx_init(&screen->descriptor_pool_mutex, mtx_plain); in d3d12_init_screen()
874 screen->base.get_vendor = d3d12_get_vendor; in d3d12_init_screen()
875 screen->base.get_device_vendor = d3d12_get_device_vendor; in d3d12_init_screen()
876 screen->base.get_param = d3d12_get_param; in d3d12_init_screen()
877 screen->base.get_paramf = d3d12_get_paramf; in d3d12_init_screen()
878 screen->base.get_shader_param = d3d12_get_shader_param; in d3d12_init_screen()
879 screen->base.is_format_supported = d3d12_is_format_supported; in d3d12_init_screen()
880 screen->base.get_compiler_options = d3d12_get_compiler_options; in d3d12_init_screen()
881 screen->base.context_create = d3d12_context_create; in d3d12_init_screen()
882 screen->base.flush_frontbuffer = d3d12_flush_frontbuffer; in d3d12_init_screen()
883 screen->base.destroy = d3d12_destroy_screen; in d3d12_init_screen()
893 screen->dev = create_device(adapter); in d3d12_init_screen()
895 if (!screen->dev) { in d3d12_init_screen()
901 if (SUCCEEDED(screen->dev->QueryInterface(IID_PPV_ARGS(&info_queue)))) { in d3d12_init_screen()
920 if (FAILED(screen->dev->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS, in d3d12_init_screen()
921 &screen->opts, in d3d12_init_screen()
922 sizeof(screen->opts)))) { in d3d12_init_screen()
926 if (FAILED(screen->dev->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS2, in d3d12_init_screen()
927 &screen->opts2, in d3d12_init_screen()
928 sizeof(screen->opts2)))) { in d3d12_init_screen()
932 if (FAILED(screen->dev->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS3, in d3d12_init_screen()
933 &screen->opts3, in d3d12_init_screen()
934 sizeof(screen->opts3)))) { in d3d12_init_screen()
938 if (FAILED(screen->dev->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS4, in d3d12_init_screen()
939 &screen->opts4, in d3d12_init_screen()
940 sizeof(screen->opts4)))) { in d3d12_init_screen()
945 screen->architecture.NodeIndex = 0; in d3d12_init_screen()
946 if (FAILED(screen->dev->CheckFeatureSupport(D3D12_FEATURE_ARCHITECTURE, in d3d12_init_screen()
947 &screen->architecture, in d3d12_init_screen()
948 sizeof(screen->architecture)))) { in d3d12_init_screen()
962 if (FAILED(screen->dev->CheckFeatureSupport(D3D12_FEATURE_FEATURE_LEVELS, in d3d12_init_screen()
968 screen->max_feature_level = feature_levels.MaxSupportedFeatureLevel; in d3d12_init_screen()
977 if (SUCCEEDED(screen->dev->QueryInterface(&device9))) { in d3d12_init_screen()
979 IID_PPV_ARGS(&screen->cmdqueue)))) in d3d12_init_screen()
983 if (FAILED(screen->dev->CreateCommandQueue(&queue_desc, in d3d12_init_screen()
984 IID_PPV_ARGS(&screen->cmdqueue)))) in d3d12_init_screen()
989 if (FAILED(screen->cmdqueue->GetTimestampFrequency(×tamp_freq))) in d3d12_init_screen()
991 screen->timestamp_multiplier = 1000000000.0 / timestamp_freq; in d3d12_init_screen()
993 d3d12_screen_fence_init(&screen->base); in d3d12_init_screen()
994 d3d12_screen_resource_init(&screen->base); in d3d12_init_screen()
995 slab_create_parent(&screen->transfer_pool, sizeof(struct d3d12_transfer), 16); in d3d12_init_screen()
1001 screen->bufmgr = d3d12_bufmgr_create(screen); in d3d12_init_screen()
1002 screen->cache_bufmgr = pb_cache_manager_create(screen->bufmgr, 0xfffff, 2, 0, 64 * 1024 * 1024); in d3d12_init_screen()
1003 screen->slab_bufmgr = pb_slab_range_manager_create(screen->cache_bufmgr, 16, 512, in d3d12_init_screen()
1007 screen->readback_slab_bufmgr = pb_slab_range_manager_create(screen->cache_bufmgr, 16, 512, in d3d12_init_screen()
1011 screen->rtv_pool = d3d12_descriptor_pool_new(screen, in d3d12_init_screen()
1014 screen->dsv_pool = d3d12_descriptor_pool_new(screen, in d3d12_init_screen()
1017 screen->view_pool = d3d12_descriptor_pool_new(screen, in d3d12_init_screen()
1021 d3d12_init_null_srvs(screen); in d3d12_init_screen()
1022 d3d12_init_null_rtv(screen); in d3d12_init_screen()
1024 screen->have_load_at_vertex = can_attribute_at_vertex(screen); in d3d12_init_screen()