| /third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
| D | LimitsTests.cpp | 17 #include "dawn_native/Limits.h" 20 TEST(Limits, GetDefaultLimits) { in TEST() argument 21 dawn_native::Limits limits = {}; in TEST() local 22 EXPECT_NE(limits.maxBindGroups, 4u); in TEST() 24 dawn_native::GetDefaultLimits(&limits); in TEST() 26 EXPECT_EQ(limits.maxBindGroups, 4u); in TEST() 31 TEST(Limits, ReifyDefaultLimits_PopulatesDefault) { in TEST() argument 32 dawn_native::Limits limits; in TEST() local 33 limits.maxComputeWorkgroupStorageSize = wgpu::kLimitU32Undefined; in TEST() 34 limits.maxStorageBufferBindingSize = wgpu::kLimitU64Undefined; in TEST() [all …]
|
| /third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
| D | RequestDeviceValidationTests.cpp | 59 // Test that requesting a device without specifying limits is valid. 64 // Check one of the default limits. in TEST_F() 65 wgpu::SupportedLimits limits; in TEST_F() local 66 device.GetLimits(&limits); in TEST_F() 67 EXPECT_EQ(limits.limits.maxBindGroups, 4u); in TEST_F() 71 // Test that requesting a device with the default limits is valid. 73 wgpu::RequiredLimits limits = {}; in TEST_F() local 75 descriptor.requiredLimits = reinterpret_cast<const WGPURequiredLimits*>(&limits); in TEST_F() 78 // Check one of the default limits. in TEST_F() 79 wgpu::SupportedLimits limits; in TEST_F() local [all …]
|
| /third_party/skia/third_party/externals/dawn/src/dawn_node/binding/ |
| D | GPUSupportedLimits.cpp | 23 GPUSupportedLimits::GPUSupportedLimits(wgpu::SupportedLimits limits) in GPUSupportedLimits() argument 24 : limits_(std::move(limits)) { in GPUSupportedLimits() 28 return limits_.limits.maxTextureDimension1D; in getMaxTextureDimension1D() 32 return limits_.limits.maxTextureDimension2D; in getMaxTextureDimension2D() 36 return limits_.limits.maxTextureDimension3D; in getMaxTextureDimension3D() 40 return limits_.limits.maxTextureArrayLayers; in getMaxTextureArrayLayers() 44 return limits_.limits.maxBindGroups; in getMaxBindGroups() 48 return limits_.limits.maxDynamicUniformBuffersPerPipelineLayout; in getMaxDynamicUniformBuffersPerPipelineLayout() 52 return limits_.limits.maxDynamicStorageBuffersPerPipelineLayout; in getMaxDynamicStorageBuffersPerPipelineLayout() 56 return limits_.limits.maxSampledTexturesPerShaderStage; in getMaxSampledTexturesPerShaderStage() [all …]
|
| /third_party/skia/third_party/externals/dawn/src/dawn_native/ |
| D | Limits.h | 24 Limits v1; 27 // Populate |limits| with the default limits. 28 void GetDefaultLimits(Limits* limits); 30 // Returns a copy of |limits| where all undefined values are replaced 31 // with their defaults. Also clamps to the defaults if the provided limits 33 Limits ReifyDefaultLimits(const Limits& limits); 36 MaybeError ValidateLimits(const Limits& supportedLimits, const Limits& requiredLimits); 38 // Returns a copy of |limits| where limit tiers are applied. 39 Limits ApplyLimitTiers(Limits limits);
|
| D | Limits.cpp | 15 #include "dawn_native/Limits.h" 31 // These limits don't have tiers yet. Define two tiers with the same values since the macros 65 #define LIMITS(X) \ macro 142 void GetDefaultLimits(Limits* limits) { in GetDefaultLimits() argument 143 ASSERT(limits != nullptr); in GetDefaultLimits() 144 #define X(Better, limitName, base, ...) limits->limitName = base; in GetDefaultLimits() 145 LIMITS(X) in GetDefaultLimits() 149 Limits ReifyDefaultLimits(const Limits& limits) { in ReifyDefaultLimits() argument 150 Limits out; in ReifyDefaultLimits() 152 if (IsLimitUndefined(limits.limitName) || \ in ReifyDefaultLimits() [all …]
|
| /third_party/gstreamer/gstplugins_bad/gst-libs/gst/vulkan/ |
| D | gstvkphysicaldevice.c | 533 VkPhysicalDeviceLimits *limits = &device->properties.limits; in dump_limits() local 536 DEBUG_UINT32 ("limit", limits, maxImageDimension1D); in dump_limits() 537 DEBUG_UINT32 ("limit", limits, maxImageDimension2D); in dump_limits() 538 DEBUG_UINT32 ("limit", limits, maxImageDimension3D); in dump_limits() 539 DEBUG_UINT32 ("limit", limits, maxImageDimensionCube); in dump_limits() 540 DEBUG_UINT32 ("limit", limits, maxImageArrayLayers); in dump_limits() 541 DEBUG_UINT32 ("limit", limits, maxTexelBufferElements); in dump_limits() 542 DEBUG_UINT32 ("limit", limits, maxUniformBufferRange); in dump_limits() 543 DEBUG_UINT32 ("limit", limits, maxStorageBufferRange); in dump_limits() 544 DEBUG_UINT32 ("limit", limits, maxPushConstantsSize); in dump_limits() [all …]
|
| /third_party/boost/boost/detail/ |
| D | lcast_precision.hpp | 13 #include <limits> 48 typedef std::numeric_limits<T> limits; // No fix for SF:1358600. typedef 54 >::type limits; 58 !limits::is_specialized || limits::is_exact 63 limits::radix == 2 && limits::digits > 0 68 limits::radix == 10 && limits::digits10 > 0 75 BOOST_STATIC_CONSTANT(unsigned int, precision_dec = limits::digits10 + 1U); 82 2UL + limits::digits * 30103UL / 100000UL 86 (limits::digits + 0UL < ULONG_MAX / 30103UL && 87 precision_bin > limits::digits10 + 0UL && [all …]
|
| /third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
| D | vkNullDriver.cpp | 996 props->limits.maxImageDimension1D = 4096; in getPhysicalDeviceProperties() 997 props->limits.maxImageDimension2D = 4096; in getPhysicalDeviceProperties() 998 props->limits.maxImageDimension3D = 256; in getPhysicalDeviceProperties() 999 props->limits.maxImageDimensionCube = 4096; in getPhysicalDeviceProperties() 1000 props->limits.maxImageArrayLayers = 256; in getPhysicalDeviceProperties() 1001 props->limits.maxTexelBufferElements = 65536; in getPhysicalDeviceProperties() 1002 props->limits.maxUniformBufferRange = 16384; in getPhysicalDeviceProperties() 1003 props->limits.maxStorageBufferRange = 1u<<27; in getPhysicalDeviceProperties() 1004 props->limits.maxPushConstantsSize = 128; in getPhysicalDeviceProperties() 1005 props->limits.maxMemoryAllocationCount = 4096; in getPhysicalDeviceProperties() [all …]
|
| /third_party/boost/libs/container_hash/test/ |
| D | hash_float_test.hpp | 17 #include <boost/container_hash/detail/limits.hpp> 50 << "boost::hash_detail::limits<T>::digits = " in float_tests() 51 << boost::hash_detail::limits<T>::digits<< "\n" in float_tests() 52 << "boost::hash_detail::limits<int>::digits = " in float_tests() 53 << boost::hash_detail::limits<int>::digits<< "\n" in float_tests() 54 << "boost::hash_detail::limits<std::size_t>::digits = " in float_tests() 55 << boost::hash_detail::limits<std::size_t>::digits in float_tests() 99 if(boost::hash_detail::limits<T>::has_infinity) { in float_tests() 103 T infinity4 = boost::hash_detail::limits<T>::infinity(); in float_tests() 135 if(boost::hash_detail::limits<T>::has_denorm) { in float_tests() [all …]
|
| D | hash_number_test.cpp | 17 #include <boost/container_hash/detail/limits.hpp> 35 boost::enable_if_c<boost::hash_detail::limits<T>::is_integer, in numeric_extra_tests() 38 typedef boost::hash_detail::limits<T> limits; in numeric_extra_tests() typedef 40 if(limits::is_signed || in numeric_extra_tests() 41 limits::digits <= boost::hash_detail::limits<std::size_t>::digits) in numeric_extra_tests() 52 boost::disable_if_c<boost::hash_detail::limits<T>::is_integer, in numeric_extra_tests() 87 typedef boost::hash_detail::limits<T> limits; in limits_test() typedef 89 if(limits::is_specialized) in limits_test() 94 T min_value = (limits::min)(); in limits_test() 95 T max_value = (limits::max)(); in limits_test() [all …]
|
| /third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
| D | AdapterD3D12.cpp | 141 MaybeError Adapter::InitializeSupportedLimitsImpl(CombinedLimits* limits) { in InitializeSupportedLimitsImpl() argument 166 GetDefaultLimits(&limits->v1); in InitializeSupportedLimitsImpl() 170 // Limits that are the same across D3D feature levels in InitializeSupportedLimitsImpl() 171 limits->v1.maxTextureDimension1D = D3D12_REQ_TEXTURE1D_U_DIMENSION; in InitializeSupportedLimitsImpl() 172 limits->v1.maxTextureDimension2D = D3D12_REQ_TEXTURE2D_U_OR_V_DIMENSION; in InitializeSupportedLimitsImpl() 173 limits->v1.maxTextureDimension3D = D3D12_REQ_TEXTURE3D_U_V_OR_W_DIMENSION; in InitializeSupportedLimitsImpl() 174 limits->v1.maxTextureArrayLayers = D3D12_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION; in InitializeSupportedLimitsImpl() 177 limits->v1.maxVertexBuffers = 16; in InitializeSupportedLimitsImpl() 178 limits->v1.maxVertexAttributes = D3D12_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT; in InitializeSupportedLimitsImpl() 219 ASSERT(maxUAVsAllStages / 4 > limits->v1.maxStorageTexturesPerShaderStage); in InitializeSupportedLimitsImpl() [all …]
|
| /third_party/grpc/src/core/ext/filters/message_size/ |
| D | message_size_filter.cc | 21 #include <limits.h> 140 grpc_core::MessageSizeParsedConfig::message_size_limits limits; member 146 : call_combiner(args.call_combiner), limits(chand.limits) { in call_data() 156 const grpc_core::MessageSizeParsedConfig* limits = in call_data() local 158 if (limits != nullptr) { in call_data() 159 if (limits->limits().max_send_size >= 0 && in call_data() 160 (limits->limits().max_send_size < this->limits.max_send_size || in call_data() 161 this->limits.max_send_size < 0)) { in call_data() 162 this->limits.max_send_size = limits->limits().max_send_size; in call_data() 164 if (limits->limits().max_recv_size >= 0 && in call_data() [all …]
|
| /third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
| D | AdapterVk.cpp | 17 #include "dawn_native/Limits.h" 150 if (mDeviceInfo.properties.limits.timestampComputeAndGraphics == VK_TRUE) { in InitializeSupportedFeaturesImpl() 157 MaybeError Adapter::InitializeSupportedLimitsImpl(CombinedLimits* limits) { in InitializeSupportedLimitsImpl() argument 158 GetDefaultLimits(&limits->v1); in InitializeSupportedLimitsImpl() 159 CombinedLimits baseLimits = *limits; in InitializeSupportedLimitsImpl() 161 const VkPhysicalDeviceLimits& vkLimits = mDeviceInfo.properties.limits; in InitializeSupportedLimitsImpl() 166 return DAWN_INTERNAL_ERROR("Insufficient Vulkan limits for " #webgpuName \ in InitializeSupportedLimitsImpl() 172 limits->v1.webgpuName = vkLimits.vulkanName; \ in InitializeSupportedLimitsImpl() 189 limits->v1.maxTextureDimension2D = std::min({ in InitializeSupportedLimitsImpl() 229 return DAWN_INTERNAL_ERROR("Insufficient Vulkan limits for maxVertexBufferArrayStride"); in InitializeSupportedLimitsImpl() [all …]
|
| /third_party/pulseaudio/src/modules/alsa/mixer/samples/ |
| D | HDA Intel--Realtek ALC889A | 4 Limits: Playback 0 - 64 15 Limits: Playback 0 - 255 22 Limits: Playback 0 - 64 29 Limits: Playback 0 - 31 37 Limits: 0 - 3 43 Limits: Playback 0 - 64 50 Limits: Playback 0 - 64 55 Limits: Playback 0 - 64 60 Limits: Playback 0 - 64 67 Limits: Playback 0 - 31 [all …]
|
| D | VIA 8237--Analog Devices AD1888 | 4 Limits: Playback 0 - 31 11 Limits: Playback 0 - 31 16 Limits: Playback 0 - 31 27 Limits: Playback 0 - 31 34 Limits: Playback 0 - 31 45 Limits: Playback 0 - 31 50 Limits: Playback 0 - 31 57 Limits: Playback 0 - 31 69 Limits: Playback 0 - 31 77 Limits: Playback 0 - 31 [all …]
|
| D | Ensoniq AudioPCI--Cirrus Logic CS4297A rev 3 | 4 Limits: Playback 0 - 63 11 Limits: Playback 0 - 31 16 Limits: Playback 0 - 31 24 Limits: 0 - 15 30 Limits: 0 - 15 39 Limits: Playback 0 - 31 48 Limits: Playback 0 - 31 56 Limits: Playback 0 - 31 64 Limits: Playback 0 - 31 81 Limits: Playback 0 - 31 [all …]
|
| D | ATI IXP--Realtek ALC655 rev 0 | 4 Limits: Playback 0 - 31 11 Limits: Playback 0 - 31 16 Limits: Playback 0 - 31 23 Limits: Playback 0 - 31 34 Limits: Playback 0 - 31 39 Limits: Playback 0 - 31 46 Limits: Playback 0 - 31 54 Limits: Playback 0 - 31 62 Limits: Playback 0 - 31 85 Limits: Playback 0 - 31 [all …]
|
| D | Intel 82801CA-ICH3--Analog Devices AD1881A | 4 Limits: Playback 0 - 63 11 Limits: Playback 0 - 31 17 Limits: 0 - 15 23 Limits: 0 - 15 32 Limits: Playback 0 - 31 45 Limits: Playback 0 - 31 53 Limits: Playback 0 - 31 61 Limits: Playback 0 - 31 78 Limits: Playback 0 - 31 86 Limits: Playback 0 - 31 [all …]
|
| /third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
| D | vktPipelineMultisampleBase.cpp | 48 isImageSizeValid = imageSize.x() <= deviceProperties.limits.maxImageDimension1D; in validateImageSize() 51 isImageSizeValid = imageSize.x() <= deviceProperties.limits.maxImageDimension1D && in validateImageSize() 52 imageSize.z() <= deviceProperties.limits.maxImageArrayLayers; in validateImageSize() 55 isImageSizeValid = imageSize.x() <= deviceProperties.limits.maxImageDimension2D && in validateImageSize() 56 imageSize.y() <= deviceProperties.limits.maxImageDimension2D; in validateImageSize() 59 isImageSizeValid = imageSize.x() <= deviceProperties.limits.maxImageDimension2D && in validateImageSize() 60 imageSize.y() <= deviceProperties.limits.maxImageDimension2D && in validateImageSize() 61 imageSize.z() <= deviceProperties.limits.maxImageArrayLayers; in validateImageSize() 64 isImageSizeValid = imageSize.x() <= deviceProperties.limits.maxImageDimensionCube && in validateImageSize() 65 imageSize.y() <= deviceProperties.limits.maxImageDimensionCube; in validateImageSize() [all …]
|
| /third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/ |
| D | vktApiFeatureInfo.cpp | 55 #include <limits> 109 VkPhysicalDeviceLimits* limits = &properties->limits; in validateFeatureLimits() local 111 deUint32 maxPerStageResourcesMin = deMin32(128, limits->maxPerStageDescriptorUniformBuffers + in validateFeatureLimits() 112 limits->maxPerStageDescriptorStorageBuffers + in validateFeatureLimits() 113 limits->maxPerStageDescriptorSampledImages + in validateFeatureLimits() 114 limits->maxPerStageDescriptorStorageImages + in validateFeatureLimits() 115 limits->maxPerStageDescriptorInputAttachments + in validateFeatureLimits() 116 limits->maxColorAttachments); in validateFeatureLimits() 227 …{ LIMIT(maxInterpolationOffset), 0, 0, 0, 0.5f - (1.0f/deFloatPow(2.0f, (float)limits->subPi… in validateFeatureLimits() 251 …{ LIMIT(pointSizeRange[1]), 0, 0, 0, 64.0f - limits->pointSizeGranularity , LIMIT_FORMAT_F… in validateFeatureLimits() [all …]
|
| D | vktApiMaintenance3Check.cpp | 32 #include <limits> 72 // descriptor types. Note a type may be involved in several limits, and a limit may affect several … 87 // by the type. Once at least one of the limits is reached, no more descriptors can be assigned to … 128 // given limits. 129 void distributeCounts (LimitsVector& limits, TypeCounts& typeCounts) in distributeCounts() argument 136 …culate the maximum increment per alive descriptor type. This involves iterating over the limits and in distributeCounts() 145 for (const auto& limit : limits) in distributeCounts() 175 // Find the lowest possible increment taking into account all limits. in distributeCounts() 196 for (auto& limit : limits) in distributeCounts() 198 // Decrease remaining descriptors for affected limits. in distributeCounts() [all …]
|
| /third_party/skia/third_party/externals/dawn/src/dawn_native/metal/ |
| D | BackendMTL.mm | 411 MaybeError InitializeSupportedLimitsImpl(CombinedLimits* limits) override { 460 GetDefaultLimits(&limits->v1); 462 limits->v1.maxTextureDimension1D = mtlLimits.max1DTextureSize; 463 limits->v1.maxTextureDimension2D = mtlLimits.max2DTextureSize; 464 limits->v1.maxTextureDimension3D = mtlLimits.max3DTextureSize; 465 limits->v1.maxTextureArrayLayers = mtlLimits.maxTextureArrayLayers; 470 uint32_t baseMaxBuffersPerStage = limits->v1.maxStorageBuffersPerShaderStage + 471 limits->v1.maxUniformBuffersPerShaderStage + 472 limits->v1.maxVertexBuffers; 477 limits->v1.maxStorageBuffersPerShaderStage += additional / 3; [all …]
|
| /third_party/mesa3d/src/mesa/drivers/dri/i965/ |
| D | brw_urb.c | 91 } limits[CS+1] = { variable 121 if (csize < limits[CS].min_entry_size) in brw_calculate_urb_fence() 122 csize = limits[CS].min_entry_size; in brw_calculate_urb_fence() 124 if (vsize < limits[VS].min_entry_size) in brw_calculate_urb_fence() 125 vsize = limits[VS].min_entry_size; in brw_calculate_urb_fence() 127 if (sfsize < limits[SF].min_entry_size) in brw_calculate_urb_fence() 128 sfsize = limits[SF].min_entry_size; in brw_calculate_urb_fence() 142 brw->urb.nr_vs_entries = limits[VS].preferred_nr_entries; in brw_calculate_urb_fence() 143 brw->urb.nr_gs_entries = limits[GS].preferred_nr_entries; in brw_calculate_urb_fence() 144 brw->urb.nr_clip_entries = limits[CLP].preferred_nr_entries; in brw_calculate_urb_fence() [all …]
|
| /third_party/python/Modules/clinic/ |
| D | resource.c.h | 60 "setrlimit($module, resource, limits, /)\n" 68 resource_setrlimit_impl(PyObject *module, int resource, PyObject *limits); 75 PyObject *limits; in resource_setrlimit() local 84 limits = args[1]; in resource_setrlimit() 85 return_value = resource_setrlimit_impl(module, resource, limits); in resource_setrlimit() 94 "prlimit(pid, resource, [limits])"); 101 int group_right_1, PyObject *limits); 110 PyObject *limits = NULL; in resource_prlimit() local 119 if (!PyArg_ParseTuple(args, "" _Py_PARSE_PID "iO:prlimit", &pid, &resource, &limits)) { in resource_prlimit() 128 return_value = resource_prlimit_impl(module, pid, resource, group_right_1, limits); in resource_prlimit()
|
| /third_party/boost/boost/numeric/conversion/detail/ |
| D | bounds.hpp | 13 #include "boost/limits.hpp" 22 typedef std::numeric_limits<N> limits ; typedef in boost::numeric::boundsdetail::Integral 26 static N lowest () { return limits::min BOOST_PREVENT_MACRO_SUBSTITUTION (); } in lowest() 27 static N highest () { return limits::max BOOST_PREVENT_MACRO_SUBSTITUTION (); } in highest() 34 typedef std::numeric_limits<N> limits ; typedef in boost::numeric::boundsdetail::Float 38 … static N lowest () { return static_cast<N>(-limits::max BOOST_PREVENT_MACRO_SUBSTITUTION ()) ; } in lowest() 39 static N highest () { return limits::max BOOST_PREVENT_MACRO_SUBSTITUTION (); } in highest() 40 static N smallest() { return limits::min BOOST_PREVENT_MACRO_SUBSTITUTION (); } in smallest()
|