/external/mesa3d/src/gallium/drivers/virgl/ |
D | virgl_screen.c | 83 return vscreen->caps.caps.v1.max_render_targets; in virgl_get_param() 85 return vscreen->caps.caps.v1.max_dual_source_render_targets; in virgl_get_param() 87 return vscreen->caps.caps.v1.bset.occlusion_query; in virgl_get_param() 90 return vscreen->caps.caps.v1.bset.mirror_clamp; in virgl_get_param() 94 if (vscreen->caps.caps.v2.max_texture_2d_size) in virgl_get_param() 95 return vscreen->caps.caps.v2.max_texture_2d_size; in virgl_get_param() 98 if (vscreen->caps.caps.v2.max_texture_3d_size) in virgl_get_param() 99 return 1 + util_logbase2(vscreen->caps.caps.v2.max_texture_3d_size); in virgl_get_param() 102 if (vscreen->caps.caps.v2.max_texture_cube_size) in virgl_get_param() 103 return 1 + util_logbase2(vscreen->caps.caps.v2.max_texture_cube_size); in virgl_get_param() [all …]
|
D | virgl_winsys.h | 38 union virgl_caps caps; member 106 int (*get_caps)(struct virgl_winsys *vws, struct virgl_drm_caps *caps); 135 static inline void virgl_ws_fill_new_caps_defaults(struct virgl_drm_caps *caps) in virgl_ws_fill_new_caps_defaults() argument 137 caps->caps.v2.min_aliased_point_size = 1.f; in virgl_ws_fill_new_caps_defaults() 138 caps->caps.v2.max_aliased_point_size = 255.f; in virgl_ws_fill_new_caps_defaults() 139 caps->caps.v2.min_smooth_point_size = 1.f; in virgl_ws_fill_new_caps_defaults() 140 caps->caps.v2.max_smooth_point_size = 190.f; in virgl_ws_fill_new_caps_defaults() 141 caps->caps.v2.min_aliased_line_width = 1.f; in virgl_ws_fill_new_caps_defaults() 142 caps->caps.v2.max_aliased_line_width = 10.f; in virgl_ws_fill_new_caps_defaults() 143 caps->caps.v2.min_smooth_line_width = 0.f; in virgl_ws_fill_new_caps_defaults() [all …]
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_chipset.c | 37 static void r300_apply_hyperz_blacklist(struct r300_capabilities* caps) in r300_apply_hyperz_blacklist() argument 58 caps->zmask_ram = 0; in r300_apply_hyperz_blacklist() 59 caps->hiz_ram = 0; in r300_apply_hyperz_blacklist() 66 void r300_parse_chipset(uint32_t pci_id, struct r300_capabilities* caps) in r300_parse_chipset() argument 71 caps->family = CHIP_##chipfamily; \ in r300_parse_chipset() 83 caps->high_second_pipe = FALSE; in r300_parse_chipset() 84 caps->num_vert_fpus = 0; in r300_parse_chipset() 85 caps->hiz_ram = 0; in r300_parse_chipset() 86 caps->zmask_ram = 0; in r300_parse_chipset() 87 caps->has_cmask = FALSE; in r300_parse_chipset() [all …]
|
/external/angle/src/libANGLE/ |
D | Compiler.cpp | 78 const gl::Caps &caps = state.getCaps(); in Compiler() local 91 mResources.MaxVertexAttribs = caps.maxVertexAttributes; in Compiler() 92 mResources.MaxVertexUniformVectors = caps.maxVertexUniformVectors; in Compiler() 93 mResources.MaxVaryingVectors = caps.maxVaryingVectors; in Compiler() 94 mResources.MaxVertexTextureImageUnits = caps.maxShaderTextureImageUnits[ShaderType::Vertex]; in Compiler() 95 mResources.MaxCombinedTextureImageUnits = caps.maxCombinedTextureImageUnits; in Compiler() 96 mResources.MaxTextureImageUnits = caps.maxShaderTextureImageUnits[ShaderType::Fragment]; in Compiler() 97 mResources.MaxFragmentUniformVectors = caps.maxFragmentUniformVectors; in Compiler() 98 mResources.MaxDrawBuffers = caps.maxDrawBuffers; in Compiler() 161 mResources.MaxVertexOutputVectors = caps.maxVertexOutputComponents / 4; in Compiler() [all …]
|
D | Caps.cpp | 69 TextureCaps caps; in GenerateMinimumTextureCaps() local 72 caps.texturable = internalFormatInfo.textureSupport(clientVersion, extensions); in GenerateMinimumTextureCaps() 73 caps.filterable = internalFormatInfo.filterSupport(clientVersion, extensions); in GenerateMinimumTextureCaps() 74 caps.textureAttachment = internalFormatInfo.textureAttachmentSupport(clientVersion, extensions); in GenerateMinimumTextureCaps() 75 caps.renderbuffer = internalFormatInfo.renderbufferSupport(clientVersion, extensions); in GenerateMinimumTextureCaps() 76 caps.blendable = internalFormatInfo.blendSupport(clientVersion, extensions); in GenerateMinimumTextureCaps() 78 caps.sampleCounts.insert(0); in GenerateMinimumTextureCaps() 84 caps.sampleCounts.insert(4); in GenerateMinimumTextureCaps() 88 return caps; in GenerateMinimumTextureCaps() 95 void TextureCapsMap::insert(GLenum internalFormat, const TextureCaps &caps) in insert() argument [all …]
|
/external/adhd/cras/src/tests/ |
D | alsa_helpers_unittest.cc | 41 snd_pcm_chmap_query_t** caps; in TEST() local 45 caps = (snd_pcm_chmap_query_t**)calloc(4, sizeof(*caps)); in TEST() 61 caps[0] = c; in TEST() 66 caps[1] = c; in TEST() 71 caps[2] = c; in TEST() 73 caps[3] = NULL; in TEST() 76 c = cras_chmap_caps_match(caps, fmt); in TEST() 79 caps[1]->map.pos[0] = 5; in TEST() 80 caps[1]->map.pos[1] = 7; in TEST() 82 c = cras_chmap_caps_match(caps, fmt); in TEST() [all …]
|
/external/angle/src/libANGLE/renderer/d3d/d3d9/ |
D | renderer9_utils.cpp | 485 gl::Caps *caps, in GenerateCaps() argument 511 caps->compressedTextureFormats.push_back(internalFormat); in GenerateCaps() 516 caps->maxElementIndex = static_cast<GLint64>(std::numeric_limits<unsigned int>::max()); in GenerateCaps() 519 caps->max3DTextureSize = 1; in GenerateCaps() 522 caps->max2DTextureSize = std::min(deviceCaps.MaxTextureWidth, deviceCaps.MaxTextureHeight); in GenerateCaps() 525 caps->maxCubeMapTextureSize = caps->max2DTextureSize; in GenerateCaps() 528 caps->maxArrayTextureLayers = 1; in GenerateCaps() 531 caps->maxLODBias = 0.0f; in GenerateCaps() 534 caps->maxRenderbufferSize = caps->max2DTextureSize; in GenerateCaps() 537 caps->maxDrawBuffers = 1; in GenerateCaps() [all …]
|
/external/tensorflow/tensorflow/core/profiler/utils/ |
D | device_caps_utils.cc | 25 void SetDeviceCaps(const DeviceCapabilities& caps, XPlane* plane) { in SetDeviceCaps() argument 28 static_cast<int>(caps.clock_rate_in_ghz() * 1000000.0); in SetDeviceCaps() 34 caps.num_cores()); in SetDeviceCaps() 37 caps.memory_bandwidth()); in SetDeviceCaps() 40 caps.memory_size_in_bytes()); in SetDeviceCaps() 41 if (caps.has_compute_capability()) { in SetDeviceCaps() 44 caps.compute_capability().major()); in SetDeviceCaps() 47 caps.compute_capability().minor()); in SetDeviceCaps() 52 DeviceCapabilities caps; in GetDeviceCaps() local 58 caps.set_clock_rate_in_ghz(stat.IntOrUintValue() * 1000000.0); in GetDeviceCaps() [all …]
|
/external/python/cpython3/Lib/ |
D | mailcap.py | 29 caps = {} 39 if not key in caps: 40 caps[key] = value 42 caps[key] = caps[key] + value 43 return caps 67 caps, _ = _readmailcapfile(fp, None) 68 return caps 80 caps = {} 106 if key in caps: 107 caps[key].append(fields) [all …]
|
/external/python/cpython2/Lib/ |
D | mailcap.py | 19 caps = {} 28 if not key in caps: 29 caps[key] = value 31 caps[key] = caps[key] + value 32 return caps 62 caps = {} 85 if key in caps: 86 caps[key].append(fields) 88 caps[key] = [fields] 89 return caps [all …]
|
/external/angle/src/libANGLE/renderer/d3d/d3d11/ |
D | renderer11_utils.cpp | 934 void SetUAVRelatedResourceLimits(D3D_FEATURE_LEVEL featureLevel, gl::Caps *caps) in SetUAVRelatedResourceLimits() argument 936 ASSERT(caps); in SetUAVRelatedResourceLimits() 962 caps->maxCombinedAtomicCounterBuffers = reservedUAVsForAtomicCounterBuffers; in SetUAVRelatedResourceLimits() 963 caps->maxShaderAtomicCounterBuffers[gl::ShaderType::Compute] = in SetUAVRelatedResourceLimits() 965 caps->maxShaderAtomicCounterBuffers[gl::ShaderType::Fragment] = in SetUAVRelatedResourceLimits() 967 caps->maxAtomicCounterBufferBindings = reservedUAVsForAtomicCounterBuffers; in SetUAVRelatedResourceLimits() 972 caps->maxCombinedAtomicCounters = reservedUAVsForAtomicCounterBuffers * 1024; in SetUAVRelatedResourceLimits() 973 caps->maxShaderAtomicCounters[gl::ShaderType::Compute] = caps->maxCombinedAtomicCounters; in SetUAVRelatedResourceLimits() 979 caps->maxShaderStorageBlockSize = in SetUAVRelatedResourceLimits() 985 caps->maxCombinedShaderOutputResources = in SetUAVRelatedResourceLimits() [all …]
|
/external/skia/src/gpu/ |
D | GrProgramDesc.cpp | 48 const GrCaps& caps) { in sampler_key() argument 58 const GrCaps& caps) { in add_geomproc_sampler_keys() argument 65 uint32_t samplerKey = sampler_key(backendFormat.textureType(), sampler.swizzle(), caps); in add_geomproc_sampler_keys() 68 caps.addExtraSamplerKey(b, sampler.samplerState(), backendFormat); in add_geomproc_sampler_keys() 83 const GrCaps& caps, in gen_geomproc_key() argument 88 geomProc.getGLSLProcessorKey(*caps.shaderCaps(), b); in gen_geomproc_key() 91 add_geomproc_sampler_keys(b, geomProc, caps); in gen_geomproc_key() 95 const GrCaps& caps, in gen_xp_key() argument 107 xp.getGLSLProcessorKey(*caps.shaderCaps(), b, originIfDstTexture, pipeline.dstSampleType()); in gen_xp_key() 111 const GrCaps& caps, in gen_fp_key() argument [all …]
|
D | GrGpu.cpp | 46 void GrGpu::initCapsAndCompiler(sk_sp<const GrCaps> caps) { in initCapsAndCompiler() argument 47 fCaps = std::move(caps); in initCapsAndCompiler() 56 const GrMipLevel* texels, int mipLevelCount, const GrCaps* caps) { in validate_texel_levels() argument 66 if (caps->writePixelsRowBytesSupport()) { in validate_texel_levels() 108 if (this->caps()->isFormatCompressed(format)) { in createTextureCommon() 114 if (!this->caps()->validateSurfaceParams(dimensions, format, renderable, renderTargetSampleCnt, in createTextureCommon() 121 this->caps()->getRenderTargetSampleCount(renderTargetSampleCnt, format); in createTextureCommon() 137 if (!this->caps()->reuseScratchTextures() && renderable == GrRenderable::kNo) { in createTextureCommon() 141 if (renderTargetSampleCnt > 1 && !this->caps()->msaaResolvesAutomatically()) { in createTextureCommon() 162 this->caps()->shouldInitializeTextures() ? (1 << mipLevelCount) - 1 : 0; in createTexture() [all …]
|
/external/angle/src/libANGLE/renderer/gl/ |
D | renderergl_utils.cpp | 648 gl::Caps *caps, in GenerateCaps() argument 668 caps->compressedTextureFormats.push_back(internalFormat); in GenerateCaps() 677 caps->maxElementIndex = QuerySingleGLInt64(functions, GL_MAX_ELEMENT_INDEX); in GenerateCaps() 680 if (caps->maxElementIndex == 0) in GenerateCaps() 682 caps->maxElementIndex = 0xFFFF; in GenerateCaps() 688 caps->maxElementIndex = static_cast<GLint64>(std::numeric_limits<unsigned int>::max()); in GenerateCaps() 706 caps->max3DTextureSize = std::min({QuerySingleGLInt(functions, GL_MAX_3D_TEXTURE_SIZE), in GenerateCaps() 715 caps->max2DTextureSize = std::min(QuerySingleGLInt(functions, GL_MAX_TEXTURE_SIZE), in GenerateCaps() 717 caps->maxCubeMapTextureSize = in GenerateCaps() 725 caps->maxArrayTextureLayers = in GenerateCaps() [all …]
|
/external/igt-gpu-tools/lib/i915/ |
D | gem_scheduler.c | 52 static int caps = -1; in gem_scheduler_capability() local 54 if (caps < 0) { in gem_scheduler_capability() 59 gp.value = ∩︀ in gem_scheduler_capability() 61 caps = 0; in gem_scheduler_capability() 66 return caps; in gem_scheduler_capability() 129 unsigned caps = gem_scheduler_capability(fd); in gem_scheduler_print_capability() local 131 if (!caps) in gem_scheduler_print_capability() 135 if (caps & I915_SCHEDULER_CAP_PRIORITY) in gem_scheduler_print_capability() 137 if (caps & I915_SCHEDULER_CAP_PREEMPTION) in gem_scheduler_print_capability() 139 if (caps & I915_SCHEDULER_CAP_SEMAPHORES) in gem_scheduler_print_capability()
|
/external/mesa3d/src/gallium/frontends/nine/ |
D | nine_dump.c | 417 if (caps->m & p##_##n) \ 424 nine_dump_D3DCAPS9(unsigned ch, const D3DCAPS9 *caps) in nine_dump_D3DCAPS9() argument 431 DBG_FLAG(ch, "D3DCAPS9(%p): (out of memory)\n", caps); in nine_dump_D3DCAPS9() 435 C2S("DeviceType: %s\n", nine_D3DDEVTYPE_to_str(caps->DeviceType)); in nine_dump_D3DCAPS9() 437 C2S("AdapterOrdinal: %u\nCaps:", caps->AdapterOrdinal); in nine_dump_D3DCAPS9() 438 if (caps->Caps & 0x20000) in nine_dump_D3DCAPS9() 440 if (caps->Caps & ~0x20000) in nine_dump_D3DCAPS9() 441 C2S(" %x", caps->Caps & ~0x20000); in nine_dump_D3DCAPS9() 678 C2S("\nMaxTextureWidth: %u", caps->MaxTextureWidth); in nine_dump_D3DCAPS9() 679 C2S("\nMaxTextureHeight: %u", caps->MaxTextureHeight); in nine_dump_D3DCAPS9() [all …]
|
/external/ltp/testcases/kernel/syscalls/prctl/ |
D | prctl07.c | 120 cap_t caps = cap_init(); in verify_prctl() local 125 cap_set_flag(caps, CAP_EFFECTIVE, numcaps, caplist, CAP_SET); in verify_prctl() 126 cap_set_flag(caps, CAP_INHERITABLE, numcaps, caplist, CAP_SET); in verify_prctl() 127 cap_set_flag(caps, CAP_PERMITTED, numcaps, caplist, CAP_SET); in verify_prctl() 128 cap_set_proc(caps); in verify_prctl() 132 cap_clear_flag(caps, CAP_INHERITABLE); in verify_prctl() 133 cap_set_proc(caps); in verify_prctl() 136 cap_set_flag(caps, CAP_INHERITABLE, numcaps, caplist, CAP_SET); in verify_prctl() 137 cap_clear_flag(caps, CAP_PERMITTED); in verify_prctl() 138 cap_set_proc(caps); in verify_prctl() [all …]
|
/external/libcap/tests/ |
D | exploit.c | 44 cap_t caps = cap_get_proc(); in handler() local 45 working = cap_to_text(caps, &length); in handler() 54 cap_free(caps); in handler() 83 cap_t caps = cap_init(); in main() local 103 if (cap_set_proc(caps)) { in main() 107 cap_free(caps); in main() 111 caps = cap_get_proc(); in main() 112 text = cap_to_text(caps, &greatest_len); in main() 113 cap_free(caps); in main()
|
/external/skia/src/sksl/ |
D | SkSLMain.cpp | 95 const SkSL::ShaderCapsClass** caps) { in detect_shader_settings() argument 117 *caps = s_addAndTrueCaps.get(); in detect_shader_settings() 121 *caps = s_blendZeroCaps.get(); in detect_shader_settings() 125 *caps = s_negativeFractCaps.get(); in detect_shader_settings() 129 *caps = s_noFragCoordCaps.get(); in detect_shader_settings() 133 *caps = s_minAbsCaps.get(); in detect_shader_settings() 137 *caps = s_defaultCaps.get(); in detect_shader_settings() 141 *caps = s_emulateAbsIntCaps.get(); in detect_shader_settings() 145 *caps = s_fragCoordsOld.get(); in detect_shader_settings() 149 *caps = s_fragCoordsNew.get(); in detect_shader_settings() [all …]
|
/external/skqp/src/gpu/ |
D | GrXferProcessor.cpp | 42 void GrXferProcessor::getGLSLProcessorKey(const GrShaderCaps& caps, GrProcessorKeyBuilder* b, in getGLSLProcessorKey() argument 60 this->onGetGLSLProcessorKey(caps, b); in getGLSLProcessorKey() 169 const GrCaps& caps) { in GetAnalysisProperties() argument 172 result = factory->analysisProperties(color, coverage, caps); in GetAnalysisProperties() 174 result = GrPorterDuffXPFactory::SrcOverAnalysisProperties(color, coverage, caps); in GetAnalysisProperties() 178 !caps.shaderCaps()->dstReadInShaderSupport()) { in GetAnalysisProperties() 189 const GrCaps& caps) { in MakeXferProcessor() argument 190 SkASSERT(!hasMixedSamples || caps.shaderCaps()->dualSourceBlendingSupport()); in MakeXferProcessor() 192 return factory->makeXferProcessor(color, coverage, hasMixedSamples, caps); in MakeXferProcessor() 195 caps); in MakeXferProcessor()
|
D | GrGpu.cpp | 48 bool GrGpu::IsACopyNeededForRepeatWrapMode(const GrCaps* caps, GrTextureProxy* texProxy, in IsACopyNeededForRepeatWrapMode() argument 53 if (!caps->npotTextureTileSupport() && in IsACopyNeededForRepeatWrapMode() 88 bool GrGpu::IsACopyNeededForMips(const GrCaps* caps, const GrTextureProxy* texProxy, in IsACopyNeededForMips() argument 92 bool willNeedMips = GrSamplerState::Filter::kMipMap == filter && caps->mipMapSupport(); in IsACopyNeededForMips() 111 if (!this->caps()->validateSurfaceDesc(desc, mipMapped)) { in createTexture() 117 desc.fSampleCnt = this->caps()->getRenderTargetSampleCount(desc.fSampleCnt, desc.fConfig); in createTexture() 133 if (!this->caps()->reuseScratchTextures() && !isRT) { in createTexture() 155 SkASSERT(this->caps()); in wrapBackendTexture() 156 if (!this->caps()->isConfigTexturable(backendTex.config())) { in wrapBackendTexture() 159 if (backendTex.width() > this->caps()->maxTextureSize() || in wrapBackendTexture() [all …]
|
/external/skia/tests/ |
D | AdvancedBlendTest.cpp | 29 const GrCaps& caps = *ctxInfo.directContext()->priv().caps(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 38 GrXPFactory::GetAnalysisProperties(xpf, opaque, coverage, caps, GrClampType::kAuto); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 45 opaque, coverage, nullptr, &GrUserStencilSettings::kUnused, caps, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 48 if (caps.advancedBlendEquationSupport() && in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 49 !caps.isAdvancedBlendEquationDisabled(blendEquation)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 52 if (GrCaps::kAdvancedCoherent_BlendEquationSupport == caps.blendEquationSupport()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 57 == caps.blendEquationSupport()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/external/skqp/tests/ |
D | AdvancedBlendTest.cpp | 18 const GrCaps& caps = *ctxInfo.grContext()->contextPriv().caps(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 27 GrXPFactory::GetAnalysisProperties(xpf, opaque, coverage, caps); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 34 procs.finalize(opaque, coverage, nullptr, false, caps, &overrideColor); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 36 if (caps.advancedBlendEquationSupport() && in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 37 !caps.isAdvancedBlendEquationBlacklisted(blendEquation)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 40 if (GrCaps::kAdvancedCoherent_BlendEquationSupport == caps.blendEquationSupport()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 45 == caps.blendEquationSupport()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/external/skia/src/gpu/ccpr/ |
D | GrCoverageCountingPathRenderer.cpp | 22 const GrCaps& caps = *ctx->priv().caps(); in IsSupported() local 23 const GrShaderCaps& shaderCaps = *caps.shaderCaps(); in IsSupported() 24 GrBackendFormat defaultA8Format = caps.getDefaultBackendFormat(GrColorType::kAlpha_8, in IsSupported() 26 if (caps.driverDisableMSAAClipAtlas() || !shaderCaps.integerSupport() || in IsSupported() 27 !caps.drawInstancedSupport() || !shaderCaps.floatIs32Bits() || in IsSupported() 29 !caps.halfFloatVertexAttributeSupport()) { in IsSupported() 33 if (caps.internalMultisampleCount(defaultA8Format) > 1 && in IsSupported() 34 caps.sampleLocationsSupport() && in IsSupported() 61 const SkPath& deviceSpacePath, const SkIRect& accessRect, const GrCaps& caps) { in makeClipProcessor() argument 83 clipPath = sk_make_sp<GrCCClipPath>(deviceSpacePath, accessRect, caps); in makeClipProcessor() [all …]
|
/external/rust/crates/ring/src/ |
D | cpu.rs | 85 let caps = unsafe { getauxval(AT_HWCAP) }; in setup() localVariable 90 debug_assert!(caps & HWCAP_NEON == HWCAP_NEON); in setup() 94 if caps & HWCAP_NEON == HWCAP_NEON { in setup() 104 let caps = { in setup() localVariable 113 if caps & HWCAP_AES == HWCAP_AES { in setup() 116 if caps & HWCAP_PMULL == HWCAP_PMULL { in setup() 119 if caps & HWCAP_SHA2 == HWCAP_SHA2 { in setup() 143 let mut caps = 0; in setup() localVariable 144 let rc = unsafe { zx_system_get_features(ZX_FEATURE_KIND_CPU, &mut caps) }; in setup() 148 if rc == ZX_OK && (caps & ZX_ARM64_FEATURE_ISA_ASIMD == ZX_ARM64_FEATURE_ISA_ASIMD) { in setup() [all …]
|