Home
last modified time | relevance | path

Searched refs:adapter (Results 1 - 25 of 134) sorted by relevance

123456

/third_party/mesa3d/src/gallium/drivers/d3d12/
H A Dd3d12_dxcore_screen.cpp65 IDXCoreAdapter *adapter = nullptr; in choose_dxcore_adapter() local
67 if (SUCCEEDED(factory->GetAdapterByLuid(*adapter_luid, &adapter))) in choose_dxcore_adapter()
68 return adapter; in choose_dxcore_adapter()
69 debug_printf("D3D12: requested adapter missing, falling back to auto-detection...\n"); in choose_dxcore_adapter()
76 // Pick the user selected adapter if any in choose_dxcore_adapter()
80 if (SUCCEEDED(list->GetAdapter(i, &adapter))) { in choose_dxcore_adapter()
83 if (!SUCCEEDED(adapter->GetPropertySize(DXCoreAdapterProperty::DriverDescription, &desc_size))) { in choose_dxcore_adapter()
84 adapter->Release(); in choose_dxcore_adapter()
90 adapter->Release(); in choose_dxcore_adapter()
94 if (!SUCCEEDED(adapter in choose_dxcore_adapter()
[all...]
H A Dd3d12_dxgi_screen.cpp74 choose_dxgi_adapter(IDXGIFactory4 *factory, LUID *adapter) in choose_dxgi_adapter() argument
77 if (adapter) { in choose_dxgi_adapter()
78 if (SUCCEEDED(factory->EnumAdapterByLuid(*adapter, in choose_dxgi_adapter()
81 debug_printf("D3D12: requested adapter missing, falling back to auto-detection...\n"); in choose_dxgi_adapter()
88 debug_printf("D3D12: failed to enum warp adapter\n"); in choose_dxgi_adapter()
92 // The first adapter is the default in choose_dxgi_adapter()
121 dxgi_screen->adapter->QueryVideoMemoryInfo(0, DXGI_MEMORY_SEGMENT_GROUP_LOCAL, &local_info); in dxgi_get_memory_info()
122 dxgi_screen->adapter->QueryVideoMemoryInfo(0, DXGI_MEMORY_SEGMENT_GROUP_NON_LOCAL, &nonlocal_info); in dxgi_get_memory_info()
132 if (screen->adapter) { in d3d12_deinit_dxgi_screen()
133 screen->adapter in d3d12_deinit_dxgi_screen()
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
H A DToBackendTests.cpp44 MyAdapter* adapter = new MyAdapter; in TEST() local
45 const AdapterBase* base = adapter; in TEST()
49 ASSERT_EQ(adapter, backendAdapter); in TEST()
51 adapter->Release(); in TEST()
54 MyAdapter* adapter = new MyAdapter; in TEST() local
55 AdapterBase* base = adapter; in TEST()
59 ASSERT_EQ(adapter, backendAdapter); in TEST()
61 adapter->Release(); in TEST()
68 MyAdapter* adapter = new MyAdapter; in TEST() local
69 const Ref<AdapterBase> base(adapter); in TEST()
78 MyAdapter* adapter = new MyAdapter; TEST() local
[all...]
/third_party/python/Modules/_sqlite/
H A Dmicroprotocols.c77 PyObject *adapter, *key, *adapted; in pysqlite_microprotocols_adapt() local
83 /* look for an adapter in the registry */ in pysqlite_microprotocols_adapt()
88 adapter = PyDict_GetItemWithError(state->psyco_adapters, key); in pysqlite_microprotocols_adapt()
90 if (adapter) { in pysqlite_microprotocols_adapt()
91 Py_INCREF(adapter); in pysqlite_microprotocols_adapt()
92 adapted = PyObject_CallOneArg(adapter, obj); in pysqlite_microprotocols_adapt()
93 Py_DECREF(adapter); in pysqlite_microprotocols_adapt()
101 if (_PyObject_LookupAttr(proto, state->str___adapt__, &adapter) < 0) { in pysqlite_microprotocols_adapt()
104 if (adapter) { in pysqlite_microprotocols_adapt()
105 adapted = PyObject_CallOneArg(adapter, ob in pysqlite_microprotocols_adapt()
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
H A DAdapterDiscoveryTests.cpp49 // Test only discovering the SwiftShader adapter
59 for (const auto& adapter : adapters) { in TEST()
61 adapter.GetProperties(&properties); in TEST()
77 for (const auto& adapter : adapters) { in TEST()
79 adapter.GetProperties(&properties); in TEST()
95 for (const auto& adapter : adapters) { in TEST()
97 adapter.GetProperties(&properties); in TEST()
103 // Test discovering a D3D12 adapter from a prexisting DXGI adapter
124 for (const auto& adapter in TEST()
[all...]
H A DDeviceInitializationTests.cpp34 // We want to create a device on a fresh instance and adapter each time. in TEST_F()
39 for (const dawn_native::Adapter& adapter : instance->GetAdapters()) { in TEST_F()
41 adapter.GetProperties(&properties); in TEST_F()
55 for (dawn_native::Adapter& adapter : instance->GetAdapters()) { in TEST_F()
57 adapter.GetProperties(&properties); in TEST_F()
65 device = wgpu::Device::Acquire(adapter.CreateDevice(&deviceDescriptor)); in TEST_F()
/third_party/mesa3d/src/microsoft/vulkan/
H A Ddzn_dxcore.cpp49 mesa_loge("Failed to create DXCore adapter factory\n"); in dzn_enumerate_physical_devices_dxcore()
56 mesa_loge("Failed to create DXCore adapter list\n"); in dzn_enumerate_physical_devices_dxcore()
62 IDXCoreAdapter *adapter; in dzn_enumerate_physical_devices_dxcore() local
65 if (SUCCEEDED(list->GetAdapter(i, IID_PPV_ARGS(&adapter)))) { in dzn_enumerate_physical_devices_dxcore()
69 if (FAILED(adapter->GetProperty(DXCoreAdapterProperty::HardwareID, &hardware_id)) || in dzn_enumerate_physical_devices_dxcore()
70 FAILED(adapter->GetProperty(DXCoreAdapterProperty::DedicatedAdapterMemory, &desc.dedicated_video_memory)) || in dzn_enumerate_physical_devices_dxcore()
71 FAILED(adapter->GetProperty(DXCoreAdapterProperty::SharedSystemMemory, &desc.shared_system_memory)) || in dzn_enumerate_physical_devices_dxcore()
72 FAILED(adapter->GetProperty(DXCoreAdapterProperty::DedicatedSystemMemory, &desc.dedicated_system_memory)) || in dzn_enumerate_physical_devices_dxcore()
73 FAILED(adapter->GetProperty(DXCoreAdapterProperty::InstanceLuid, &desc.adapter_luid)) || in dzn_enumerate_physical_devices_dxcore()
74 FAILED(adapter in dzn_enumerate_physical_devices_dxcore()
[all...]
H A Ddzn_dxgi.c34 IDXGIAdapter1 *adapter = NULL; in dzn_enumerate_physical_devices_dxgi() local
36 for (UINT i = 0; SUCCEEDED(IDXGIFactory4_EnumAdapters1(factory, i, &adapter)); ++i) { in dzn_enumerate_physical_devices_dxgi()
38 IDXGIAdapter1_GetDesc1(adapter, &dxgi_desc); in dzn_enumerate_physical_devices_dxgi()
54 dzn_instance_add_physical_device(instance, (IUnknown *)adapter, &desc); in dzn_enumerate_physical_devices_dxgi()
56 IDXGIAdapter1_Release(adapter); in dzn_enumerate_physical_devices_dxgi()
/third_party/skia/modules/skottie/src/
H A DTransform.cpp117 auto adapter = TransformAdapter2D::Make(*this, in attachMatrix2D() local
125 SkASSERT(adapter); in attachMatrix2D()
127 const auto dispatched = this->dispatchTransformProperty(adapter); in attachMatrix2D()
129 if (adapter->isStatic()) { in attachMatrix2D()
130 if (!dispatched && adapter->totalMatrix().isIdentity()) { in attachMatrix2D()
134 adapter->seek(0); in attachMatrix2D()
136 fCurrentAnimatorScope->push_back(adapter); in attachMatrix2D()
139 return sksg::Transform::MakeConcat(std::move(parent), adapter->node()); in attachMatrix2D()
194 auto adapter = TransformAdapter3D::Make(jtransform, *this); in attachMatrix3D() local
195 SkASSERT(adapter); in attachMatrix3D()
[all...]
H A DCamera.cpp122 auto adapter = sk_make_sp<CameraAdaper>(jlayer, jtransform, *this, viewport_size); in attachCamera() local
124 if (adapter->isStatic()) { in attachCamera()
125 adapter->seek(0); in attachCamera()
127 fCurrentAnimatorScope->push_back(adapter); in attachCamera()
130 return sksg::Transform::MakeConcat(adapter->node(), std::move(parent)); in attachCamera()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
H A DRequestDeviceValidationTests.cpp62 adapter.RequestDevice(&descriptor, ExpectRequestDeviceSuccess, in TEST_F()
76 adapter.RequestDevice(&descriptor, ExpectRequestDeviceSuccess, in TEST_F()
92 EXPECT_TRUE(adapter.GetLimits(reinterpret_cast<WGPUSupportedLimits*>(&supportedLimits))); in TEST_F()
97 adapter.RequestDevice( in TEST_F()
111 adapter.RequestDevice( in TEST_F()
124 adapter.RequestDevice(&descriptor, ExpectRequestDeviceError, nullptr); in TEST_F()
128 adapter.RequestDevice(&descriptor, ExpectRequestDeviceSuccess, in TEST_F()
145 EXPECT_TRUE(adapter.GetLimits(reinterpret_cast<WGPUSupportedLimits*>(&supportedLimits))); in TEST_F()
150 adapter.RequestDevice(&descriptor, ExpectRequestDeviceError, nullptr); in TEST_F()
155 adapter in TEST_F()
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
H A DD3D12Info.cpp25 ResultOrError<D3D12DeviceInfo> GatherDeviceInfo(const Adapter& adapter) { in GatherDeviceInfo() argument
33 DAWN_TRY(CheckHRESULT(adapter.GetDevice()->CheckFeatureSupport(D3D12_FEATURE_ARCHITECTURE, in GatherDeviceInfo()
40 DAWN_TRY(CheckHRESULT(adapter.GetDevice()->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS, in GatherDeviceInfo()
51 if (SUCCEEDED(adapter.GetDevice()->CheckFeatureSupport( in GatherDeviceInfo()
57 !gpu_info::IsIntel(adapter.GetPCIInfo().vendorId)) { in GatherDeviceInfo()
66 if (SUCCEEDED(adapter.GetDevice()->CheckFeatureSupport( in GatherDeviceInfo()
82 if (SUCCEEDED(adapter.GetDevice()->CheckFeatureSupport( in GatherDeviceInfo()
113 if (SUCCEEDED(adapter.GetDevice()->CheckFeatureSupport( in GatherDeviceInfo()
H A DBackendD3D12.cpp74 std::unique_ptr<Adapter> adapter = in CreateAdapterFromIDXGIAdapter() local
76 DAWN_TRY(adapter->Initialize()); in CreateAdapterFromIDXGIAdapter()
78 return {std::move(adapter)}; in CreateAdapterFromIDXGIAdapter()
171 // |dxgiAdapter| was provided. Discover just that adapter. in DiscoverAdapters()
172 std::unique_ptr<AdapterBase> adapter; in DiscoverAdapters() local
173 DAWN_TRY_ASSIGN(adapter, CreateAdapterFromIDXGIAdapter(this, options->dxgiAdapter)); in DiscoverAdapters()
174 adapters.push_back(std::move(adapter)); in DiscoverAdapters()
186 ResultOrError<std::unique_ptr<AdapterBase>> adapter = in DiscoverAdapters() local
188 if (adapter.IsError()) { in DiscoverAdapters()
189 GetInstance()->ConsumedError(adapter in DiscoverAdapters()
[all...]
/third_party/skia/modules/skottie/src/effects/
H A DDropShadowEffect.cpp34 sk_sp<DropShadowAdapter> adapter(new DropShadowAdapter(std::move(layer))); in Make()
36 EffectBinder(jprops, abuilder, adapter.get()) in Make()
37 .bind(kShadowColor_Index, adapter->fColor ) in Make()
38 .bind( kOpacity_Index, adapter->fOpacity ) in Make()
39 .bind( kDirection_Index, adapter->fDirection) in Make()
40 .bind( kDistance_Index, adapter->fDistance ) in Make()
41 .bind( kSoftness_Index, adapter->fSoftness ) in Make()
42 .bind( kShadowOnly_Index, adapter->fShdwOnly ); in Make()
44 return adapter; in Make()
/third_party/glfw/src/
H A Dwin32_monitor.c60 // Create monitor from an adapter and (optionally) a display
62 static _GLFWmonitor* createMonitor(DISPLAY_DEVICEW* adapter, in createMonitor() argument
75 name = _glfwCreateUTF8FromWideStringWin32(adapter->DeviceString); in createMonitor()
81 EnumDisplaySettingsW(adapter->DeviceName, ENUM_CURRENT_SETTINGS, &dm); in createMonitor()
83 dc = CreateDCW(L"DISPLAY", adapter->DeviceName, NULL, NULL); in createMonitor()
101 if (adapter->StateFlags & DISPLAY_DEVICE_MODESPRUNED) in createMonitor()
104 wcscpy(monitor->win32.adapterName, adapter->DeviceName); in createMonitor()
106 adapter->DeviceName, -1, in createMonitor()
142 DISPLAY_DEVICEW adapter, display; in _glfwPollMonitorsWin32() local
158 ZeroMemory(&adapter, sizeo in _glfwPollMonitorsWin32()
[all...]
/third_party/skia/third_party/externals/angle2/src/gpu_info_util/
H A DSystemInfo_win.cpp46 IDXGIAdapter *adapter = nullptr; in GetDevicesFromDXGI() local
47 while (factory->EnumAdapters(i++, &adapter) != DXGI_ERROR_NOT_FOUND) in GetDevicesFromDXGI()
50 adapter->GetDesc(&desc); in GetDevicesFromDXGI()
53 if (adapter->CheckInterfaceSupport(__uuidof(IDXGIDevice), &umdVersion) == in GetDevicesFromDXGI()
56 adapter->Release(); in GetDevicesFromDXGI()
77 adapter->Release(); in GetDevicesFromDXGI()
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DInstance.cpp116 for (std::unique_ptr<AdapterBase>& adapter : backendAdapters) { in DiscoverDefaultAdapters()
117 ASSERT(adapter->GetBackendType() == backend->GetType()); in DiscoverDefaultAdapters()
118 ASSERT(adapter->GetInstance() == this); in DiscoverDefaultAdapters()
119 mAdapters.push_back(std::move(adapter)); in DiscoverDefaultAdapters()
235 for (std::unique_ptr<AdapterBase>& adapter : newAdapters) { in DiscoverAdaptersInternal()
236 ASSERT(adapter->GetBackendType() == backend->GetType()); in DiscoverAdaptersInternal()
237 ASSERT(adapter->GetInstance() == this); in DiscoverAdaptersInternal()
238 mAdapters.push_back(std::move(adapter)); in DiscoverAdaptersInternal()
/third_party/skia/modules/skottie/src/layers/shapelayer/
H A DGradient.cpp209 auto adapter = GradientAdapter::Make(jgrad, *abuilder);
211 return adapter
212 ? AttachFill(jgrad, abuilder, sksg::ShaderPaint::Make(adapter->node()), adapter)
218 auto adapter = GradientAdapter::Make(jgrad, *abuilder);
220 return adapter
221 ? AttachStroke(jgrad, abuilder, sksg::ShaderPaint::Make(adapter->node()), adapter)
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
H A Drenderer9_utils.cpp419 UINT adapter, in GenerateTextureFormatCaps()
432 adapter, deviceType, adapterFormat, 0, D3DRTYPE_TEXTURE, d3dFormatInfo.texFormat)); in GenerateTextureFormatCaps()
437 SUCCEEDED(d3d9->CheckDeviceFormat(adapter, deviceType, adapterFormat, 0, in GenerateTextureFormatCaps()
439 SUCCEEDED(d3d9->CheckDeviceFormat(adapter, deviceType, adapterFormat, 0, in GenerateTextureFormatCaps()
444 SUCCEEDED(d3d9->CheckDeviceFormat(adapter, deviceType, adapterFormat, in GenerateTextureFormatCaps()
447 SUCCEEDED(d3d9->CheckDeviceFormat(adapter, deviceType, adapterFormat, in GenerateTextureFormatCaps()
454 d3d9->CheckDeviceFormat(adapter, deviceType, adapterFormat, D3DUSAGE_QUERY_FILTER, in GenerateTextureFormatCaps()
461 d3d9->CheckDeviceFormat(adapter, deviceType, adapterFormat, D3DUSAGE_RENDERTARGET, in GenerateTextureFormatCaps()
466 adapter, deviceType, adapterFormat, D3DUSAGE_QUERY_SRGBWRITE, D3DRTYPE_TEXTURE, in GenerateTextureFormatCaps()
474 d3d9->CheckDeviceFormat(adapter, deviceTyp in GenerateTextureFormatCaps()
416 GenerateTextureFormatCaps(GLenum internalFormat, IDirect3D9 *d3d9, D3DDEVTYPE deviceType, UINT adapter, D3DFORMAT adapterFormat) GenerateTextureFormatCaps() argument
497 GenerateCaps(IDirect3D9 *d3d9, IDirect3DDevice9 *device, D3DDEVTYPE deviceType, UINT adapter, gl::Caps *caps, gl::TextureCapsMap *textureCapsMap, gl::Extensions *extensions, gl::Limitations *limitations) GenerateCaps() argument
[all...]
/third_party/mbedtls/scripts/
H A Dconfig.py130 def adapt(self, adapter):
131 """Run adapter on each known symbol and (de)activate it accordingly.
133 `adapter` must be a function that returns a boolean. It is called as
134 `adapter(name, active, section)` for each setting, where `active` is
137 `adapter` returns `True`, then set `name` (i.e. make it active),
141 setting.active = adapter(setting.name, setting.active,
247 """Config adapter for "full"."""
285 """Config adapter for "baremetal"."""
322 def crypto_adapter(adapter):
323 """Modify an adapter t
[all...]
/third_party/vulkan-loader/tests/framework/shim/
H A Dwindows_shim.cpp77 [handle](D3DKMT_Adapter const &adapter) { return handle == adapter.hAdapter; }); in ShimQueryAdapterInfo()
81 auto &adapter = *it; in ShimQueryAdapterInfo() local
86 paths = &adapter.driver_paths; in ShimQueryAdapterInfo()
88 paths = &adapter.implicit_layer_paths; in ShimQueryAdapterInfo()
90 paths = &adapter.explicit_layer_paths; in ShimQueryAdapterInfo()
172 for (const auto &[index, adapter] : platform_shim.dxgi_adapters) { in ShimGetDesc1()
173 if (&adapter.adapter_instance == pAdapter) { in ShimGetDesc1()
174 *pDesc = adapter.desc1; in ShimGetDesc1()
184 IDXGIAdapter1 *setup_and_get_IDXGIAdapter1(DXGIAdapter &adapter) { in setup_and_get_IDXGIAdapter1() argument
[all...]
/third_party/skia/modules/skottie/src/text/
H A DTextAdapter.cpp222 auto adapter = sk_sp<TextAdapter>(new TextAdapter(std::move(fontmgr), in Make() local
226 adapter->bind(*abuilder, jd, adapter->fText.fCurrentValue); in Make()
228 adapter->bind(*abuilder, (*jm)["a"], adapter->fGroupingAlignment); in Make()
233 adapter->fAnimators.reserve(janimators->size()); in Make()
236 if (auto animator = TextAnimator::Make(janimator, abuilder, adapter.get())) { in Make()
237 adapter->fHasBlurAnimator |= animator->hasBlur(); in Make()
238 adapter->fRequiresAnchorPoint |= animator->requiresAnchorPoint(); in Make()
240 adapter in Make()
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
H A DVulkanInfo.cpp140 ResultOrError<VulkanDeviceInfo> GatherDeviceInfo(const Adapter& adapter) { in GatherDeviceInfo() argument
142 VkPhysicalDevice physicalDevice = adapter.GetPhysicalDevice(); in GatherDeviceInfo()
143 const VulkanGlobalInfo& globalInfo = adapter.GetVulkanInstance()->GetGlobalInfo(); in GatherDeviceInfo()
144 const VulkanFunctions& vkFunctions = adapter.GetVulkanInstance()->GetFunctions(); in GatherDeviceInfo()
271 ResultOrError<VulkanSurfaceInfo> GatherSurfaceInfo(const Adapter& adapter, in GatherSurfaceInfo() argument
275 VkPhysicalDevice physicalDevice = adapter.GetPhysicalDevice(); in GatherSurfaceInfo()
276 const VulkanFunctions& vkFunctions = adapter.GetVulkanInstance()->GetFunctions(); in GatherSurfaceInfo()
285 size_t nQueueFamilies = adapter.GetDeviceInfo().queueFamilies.size(); in GatherSurfaceInfo()
/third_party/skia/third_party/externals/dawn/src/fuzzers/
H A DDawnWireServerAndVulkanBackendFuzzer.cpp31 for (dawn_native::Adapter adapter : adapters) { in LLVMFuzzerTestOneInput()
33 adapter.GetProperties(&properties); in LLVMFuzzerTestOneInput()
37 device = wgpu::Device::Acquire(adapter.CreateDevice()); in LLVMFuzzerTestOneInput()
H A DDawnWireServerAndD3D12BackendFuzzer.cpp31 for (dawn_native::Adapter adapter : adapters) { in LLVMFuzzerTestOneInput()
33 adapter.GetProperties(&properties); in LLVMFuzzerTestOneInput()
37 device = wgpu::Device::Acquire(adapter.CreateDevice()); in LLVMFuzzerTestOneInput()

Completed in 10 milliseconds

123456