/hardware/interfaces/graphics/mapper/2.0/utils/passthrough/include/mapper-passthrough/2.0/ |
D | GrallocBufferDescriptor.h | 39 BufferDescriptor descriptor; in grallocEncodeBufferDescriptor() local 40 descriptor.resize(grallocBufferDescriptorSize); in grallocEncodeBufferDescriptor() 41 descriptor[0] = grallocBufferDescriptorMagicVersion; in grallocEncodeBufferDescriptor() 42 descriptor[1] = descriptorInfo.width; in grallocEncodeBufferDescriptor() 43 descriptor[2] = descriptorInfo.height; in grallocEncodeBufferDescriptor() 44 descriptor[3] = descriptorInfo.layerCount; in grallocEncodeBufferDescriptor() 45 descriptor[4] = static_cast<uint32_t>(descriptorInfo.format); in grallocEncodeBufferDescriptor() 46 descriptor[5] = static_cast<uint32_t>(descriptorInfo.usage); in grallocEncodeBufferDescriptor() 47 descriptor[6] = static_cast<uint32_t>(descriptorInfo.usage >> 32); in grallocEncodeBufferDescriptor() 49 return descriptor; in grallocEncodeBufferDescriptor() [all …]
|
/hardware/google/gfxstream/guest/magma/ |
D | magma_enc_util.cpp | 21 size_t size_command_descriptor(magma_command_descriptor* descriptor) { in size_command_descriptor() argument 23 size += sizeof(magma_exec_resource) * descriptor->resource_count; in size_command_descriptor() 24 size += sizeof(magma_exec_command_buffer) * descriptor->command_buffer_count; in size_command_descriptor() 26 sizeof(uint64_t) * (descriptor->wait_semaphore_count + descriptor->signal_semaphore_count); in size_command_descriptor() 31 magma_command_descriptor* descriptor) { in pack_command_descriptor() argument 32 magma_exec_resource* resources = descriptor->resources; in pack_command_descriptor() 33 magma_exec_command_buffer* command_buffers = descriptor->command_buffers; in pack_command_descriptor() 34 uint64_t* semaphore_ids = descriptor->semaphore_ids; in pack_command_descriptor() 36 magma_command_descriptor desc_copy = *descriptor; in pack_command_descriptor() 46 memcpy(ptr, resources, sizeof(magma_exec_resource) * descriptor->resource_count); in pack_command_descriptor() [all …]
|
/hardware/google/aemu/base/ |
D | ManagedDescriptor_unittest.cpp | 39 { ManagedDescriptorForTesting descriptor(rawDescriptor, platformTrait); } in TEST() local 44 ManagedDescriptorForTesting descriptor(rawDescriptor, platformTrait); in TEST() local 45 descriptor = ManagedDescriptorForTesting(platformTrait); in TEST() 53 { ManagedDescriptorForTesting descriptor(platformTrait); } in TEST() local 55 ManagedDescriptorForTesting descriptor(42, platformTrait); in TEST() local 56 descriptor.release(); in TEST() 65 ManagedDescriptorForTesting descriptor(rawDescriptor, platformTrait); in TEST() local 66 EXPECT_EQ(descriptor.release(), rawDescriptor); in TEST() 69 ManagedDescriptorForTesting descriptor(rawDescriptor, platformTrait); in TEST() local 70 EXPECT_EQ(descriptor.get(), rawDescriptor); in TEST() [all …]
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/appendices/ |
D | VK_EXT_mutable_descriptor_type.adoc | 19 This extension allows applications to reduce descriptor memory footprint by 20 allowing a descriptor to be able to mutate to a given list of descriptor 21 types depending on which descriptor types are written into, or copied into a 22 descriptor set. 24 The main use case this extension intends to address is descriptor indexing 26 descriptor types are completely generic, as this means applications can 27 allocate one large descriptor set, rather than having one large descriptor 28 set per descriptor type, which significantly bloats descriptor memory usage 31 This extension also adds a mechanism to declare that a descriptor pool, and 32 therefore the descriptor sets that are allocated from it, reside only in
|
D | VK_VALVE_mutable_descriptor_type.adoc | 19 This extension allows applications to reduce descriptor memory footprint by 20 allowing a descriptor to be able to mutate to a given list of descriptor 21 types depending on which descriptor types are written into, or copied into a 22 descriptor set. 24 The main use case this extension intends to address is descriptor indexing 26 descriptor types are completely generic, as this means applications can 27 allocate one large descriptor set, rather than having one large descriptor 28 set per descriptor type, which significantly bloats descriptor memory usage 31 This extension also adds a mechanism to declare that a descriptor pool, and 32 therefore the descriptor sets that are allocated from it, reside only in
|
D | VK_NV_descriptor_pool_overallocation.adoc | 17 many descriptor sets it may need to allocate from a descriptor pool, or how 18 many descriptors of any of the descriptor types it may need to allocate from 19 the descriptor pool. 23 descriptor pool creation time, subject to available resources. 27 slink:VkDescriptorPoolCreateInfo::pname:maxSets descriptor sets, and the 30 slink:VkDescriptorPoolSize::pname:descriptorCount for any descriptor types.
|
D | VK_EXT_descriptor_indexing.adoc | 26 applications to create large descriptor sets containing substantially all of 29 There are feature enables and SPIR-V capabilities for non-uniform descriptor 33 There are descriptor set layout binding creation flags enabling several 46 * The final binding in a descriptor set layout can have a variable size 51 Note that it is valid for multiple descriptor arrays in a shader to use the 53 descriptor type in the pipeline layout. 54 This means a single array binding in the descriptor set can serve multiple 58 There are new descriptor set layout and descriptor pool creation flags that 61 these descriptor set layouts which may: be much higher than the pre-existing 63 The old limits only count descriptors in non-updateAfterBind descriptor set [all …]
|
/hardware/interfaces/audio/effect/all-versions/default/util/ |
D | EffectUtils.cpp | 179 EffectDescriptor* descriptor) { in effectDescriptorFromHal() argument 180 UuidUtils::uuidFromHal(halDescriptor.type, &descriptor->type); in effectDescriptorFromHal() 181 UuidUtils::uuidFromHal(halDescriptor.uuid, &descriptor->uuid); in effectDescriptorFromHal() 182 descriptor->flags = EnumBitfield<EffectFlags>(halDescriptor.flags); in effectDescriptorFromHal() 183 descriptor->cpuLoad = halDescriptor.cpuLoad; in effectDescriptorFromHal() 184 descriptor->memoryUsage = halDescriptor.memoryUsage; in effectDescriptorFromHal() 186 memcpy(descriptor->name.data(), halDescriptor.name, descriptor->name.size()); in effectDescriptorFromHal() 187 memcpy(descriptor->implementor.data(), halDescriptor.implementor, in effectDescriptorFromHal() 188 descriptor->implementor.size()); in effectDescriptorFromHal() 190 descriptor->name = charBufferFromHal(halDescriptor.name); in effectDescriptorFromHal() [all …]
|
/hardware/interfaces/radio/aidl/vts/ |
D | VtsHalRadioTargetTest.cpp | 33 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioConfig::descriptor)), 39 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioData::descriptor)), 45 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioMessaging::descriptor)), 51 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioModem::descriptor)), 57 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioNetwork::descriptor)), 62 testing::ValuesIn(android::getAidlHalInstanceNames(ISap::descriptor)), 67 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioSim::descriptor)), 73 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioVoice::descriptor)), 79 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioIms::descriptor)), 84 testing::ValuesIn(android::getAidlHalInstanceNames(IImsMedia::descriptor)),
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/proposals/ |
D | VK_EXT_mutable_descriptor_type.adoc | 10 This extension enables applications to alias multiple descriptor types onto the same binding, reduc… 17 …g with descriptors due to a mismatch in how the two APIs handle descriptors and descriptor uploads. 22 …system bandwidth to VRAM for discrete GPUs, and can result in improved descriptor upload performan… 24 …o way to store different types of descriptors in a single array - each descriptor type has its own… 26 In Vulkan, this would be covered by 6 different descriptor types: 37 There is also no way to flag a descriptor as being used for host manipulation in Vulkan, so managin… 39 There are other notable differences between the two APIs in terms of descriptor management, but no … 47 . Add the ability to alias descriptors and specify host-only descriptor sets 48 . Replace Vulkan's descriptor management APIs wholesale 52 Adding descriptor aliasing and host-only descriptor pools is a simple point fix that applications a… [all …]
|
D | VK_EXT_descriptor_buffer.adoc | 10 This document outlines a proposal to make the management of descriptor memory more explicit, allowi… 14 …e “bindless” models of descriptor management, applications are ever increasing the number of descr… 20 There is no hint to let an implementation know that a descriptor set will only be used for purposes… 21 If a descriptor set is mapped to device local memory (BAR) or uncached memory, reading from the des… 26 Developers approaching Vulkan are often confused by the way in which descriptor pools work - and se… 31 * Host-only descriptor pools 32 * GPU descriptor updates 38 . Add relevant flags and other information to descriptor pools 39 . Like 1, but enable memory binding for descriptor pools 40 . Bypass descriptor pools, and allow direct creation and memory binding for descriptor sets [all …]
|
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/test/ |
D | HidParserExample2.cpp | 24 void printRawValue(const std::vector<unsigned char> &descriptor) { in printRawValue() argument 25 LOG_D << "Descriptor [" << descriptor.size() << "]: " << std::hex; in printRawValue() 26 hexdumpToStream(LOG_D, descriptor.begin(), descriptor.end()); in printRawValue() 41 std::vector<unsigned char> descriptor(t->data, t->data + t->len); in main() local 47 printRawValue(descriptor); in main() 50 std::vector<HidItem> hidItemVector = HidItem::tokenize(descriptor); in main()
|
/hardware/qcom/display/msm8998/libgralloc1/ |
D | gr_buf_mgr.cpp | 62 auto descriptor = std::make_shared<BufferDescriptor>(); in CreateBufferDescriptor() local 63 descriptors_map_.emplace(descriptor->GetId(), descriptor); in CreateBufferDescriptor() 64 *descriptor_id = descriptor->GetId(); in CreateBufferDescriptor() 71 const auto descriptor = descriptors_map_.find(descriptor_id); in DestroyBufferDescriptor() local 72 if (descriptor == descriptors_map_.end()) { in DestroyBufferDescriptor() 75 descriptors_map_.erase(descriptor); in DestroyBufferDescriptor() 108 for (auto &descriptor : descriptors) { in AllocateBuffers() local 109 descriptor->SetColorFormat(allocator_->GetImplDefinedFormat(descriptor->GetProducerUsage(), in AllocateBuffers() 110 descriptor->GetConsumerUsage(), in AllocateBuffers() 111 descriptor->GetFormat())); in AllocateBuffers() [all …]
|
/hardware/interfaces/graphics/allocator/2.0/utils/gralloc1-adapter/ |
D | Gralloc1On0Adapter.cpp | 95 auto descriptor = in doGetFunction() local 97 switch (descriptor) { in doGetFunction() 215 gralloc1_buffer_descriptor_t descriptor) in destroyDescriptor() argument 217 ALOGV("Destroying descriptor %" PRIu64, descriptor); in destroyDescriptor() 220 if (mDescriptors.count(descriptor) == 0) { in destroyDescriptor() 224 mDescriptors.erase(descriptor); in destroyDescriptor() 229 gralloc1_backing_store_t store, const Descriptor& descriptor, in Buffer() argument 234 mDescriptor(descriptor), in Buffer() 241 const std::shared_ptr<Descriptor>& descriptor, in allocate() argument 251 descriptor->producerUsage, descriptor->consumerUsage); in allocate() [all …]
|
/hardware/google/gchips/gralloc4/src/aidl/ |
D | GrallocAllocator2.cpp | 31 ndk::ScopedAStatus GrallocAllocator::allocate(const std::vector<uint8_t>& descriptor, int32_t count, in allocate() argument 36 if (!arm::mapper::common::grallocDecodeBufferDescriptor(hidl_vec(descriptor), in allocate() 89 const AidlAllocator::BufferDescriptorInfo& descriptor) { in toInternalDescriptor() argument 91 bufferDescriptor.width = descriptor.width; in toInternalDescriptor() 92 bufferDescriptor.height = descriptor.height; in toInternalDescriptor() 93 bufferDescriptor.layer_count = descriptor.layerCount; in toInternalDescriptor() 94 bufferDescriptor.hal_format = static_cast<uint64_t>(descriptor.format); in toInternalDescriptor() 95 bufferDescriptor.producer_usage = static_cast<uint64_t>(descriptor.usage); in toInternalDescriptor() 99 bufferDescriptor.reserved_size = descriptor.reservedSize; in toInternalDescriptor() 100 const char *str = (const char*) descriptor.name.data(); in toInternalDescriptor() [all …]
|
/hardware/qcom/display/msm8996/libgralloc1/ |
D | gr_buf_mgr.cpp | 62 auto descriptor = std::make_shared<BufferDescriptor>(); in CreateBufferDescriptor() local 63 descriptors_map_.emplace(descriptor->GetId(), descriptor); in CreateBufferDescriptor() 64 *descriptor_id = descriptor->GetId(); in CreateBufferDescriptor() 71 const auto descriptor = descriptors_map_.find(descriptor_id); in DestroyBufferDescriptor() local 72 if (descriptor == descriptors_map_.end()) { in DestroyBufferDescriptor() 75 descriptors_map_.erase(descriptor); in DestroyBufferDescriptor() 108 for (auto &descriptor : descriptors) { in AllocateBuffers() local 109 descriptor->SetColorFormat(allocator_->GetImplDefinedFormat(descriptor->GetProducerUsage(), in AllocateBuffers() 110 descriptor->GetConsumerUsage(), in AllocateBuffers() 111 descriptor->GetFormat())); in AllocateBuffers() [all …]
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/chapters/ |
D | descriptorsets.adoc | 13 The arrangement of content in each descriptor set is determined by a 16 The sequence of descriptor set layouts that can: be used by a pipeline is 19 <<limits, Limits>>) descriptor sets. 24 <<descriptorbuffers,descriptor buffers>> which are bound during command 25 recording in a similar way to descriptor sets. 28 Shaders access resources via variables decorated with a descriptor set and 29 binding number that link them to a descriptor in a descriptor set. 30 The shader interface mapping to bound descriptor sets is described in the 43 There are a number of different types of descriptor supported by Vulkan, 45 The following sections describe the API definitions of each descriptor type. [all …]
|
/hardware/qcom/sm7250/display/gralloc/ |
D | gr_device_impl.h | 51 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor); 70 gralloc1_buffer_descriptor_t descriptor); 72 gralloc1_buffer_descriptor_t descriptor, 75 gralloc1_buffer_descriptor_t descriptor, 78 gralloc1_buffer_descriptor_t descriptor, int32_t format); 80 gralloc1_buffer_descriptor_t descriptor, 83 gralloc1_buffer_descriptor_t descriptor, 91 static int32_t GetColorFormat(gralloc1_device_t *device, buffer_handle_t descriptor, 137 const auto descriptor = map_descriptor->second; in CallBufferDescriptorFunction() local 138 (descriptor.get()->*member)(std::forward<Args>(args)...); in CallBufferDescriptorFunction()
|
/hardware/qcom/sm8150/display/gralloc/ |
D | gr_device_impl.h | 51 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor); 70 gralloc1_buffer_descriptor_t descriptor); 72 gralloc1_buffer_descriptor_t descriptor, 75 gralloc1_buffer_descriptor_t descriptor, 78 gralloc1_buffer_descriptor_t descriptor, int32_t format); 80 gralloc1_buffer_descriptor_t descriptor, 83 gralloc1_buffer_descriptor_t descriptor, 91 static gralloc1_error_t GetColorFormat(gralloc1_device_t *device, buffer_handle_t descriptor, 137 const auto descriptor = map_descriptor->second; in CallBufferDescriptorFunction() local 138 (descriptor.get()->*member)(std::forward<Args>(args)...); in CallBufferDescriptorFunction()
|
/hardware/qcom/display/msm8909w_3100/libgralloc1/ |
D | gr_buf_mgr.cpp | 37 static BufferInfo GetBufferInfo(const BufferDescriptor &descriptor) { in GetBufferInfo() argument 38 return BufferInfo(descriptor.GetWidth(), descriptor.GetHeight(), descriptor.GetFormat(), in GetBufferInfo() 39 descriptor.GetProducerUsage(), descriptor.GetConsumerUsage()); in GetBufferInfo() 61 auto descriptor = std::make_shared<BufferDescriptor>(); in CreateBufferDescriptor() local 62 descriptors_map_.emplace(descriptor->GetId(), descriptor); in CreateBufferDescriptor() 63 *descriptor_id = descriptor->GetId(); in CreateBufferDescriptor() 70 const auto descriptor = descriptors_map_.find(descriptor_id); in DestroyBufferDescriptor() local 71 if (descriptor == descriptors_map_.end()) { in DestroyBufferDescriptor() 74 descriptors_map_.erase(descriptor); in DestroyBufferDescriptor() 107 for (auto &descriptor : descriptors) { in AllocateBuffers() local [all …]
|
D | gr_device_impl.h | 51 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor); 70 gralloc1_buffer_descriptor_t descriptor); 72 gralloc1_buffer_descriptor_t descriptor, 75 gralloc1_buffer_descriptor_t descriptor, 78 gralloc1_buffer_descriptor_t descriptor, int32_t format); 80 gralloc1_buffer_descriptor_t descriptor, 83 gralloc1_buffer_descriptor_t descriptor, 91 static gralloc1_error_t GetColorFormat(gralloc1_device_t *device, buffer_handle_t descriptor,
|
/hardware/qcom/display/msm8909/gralloc/ |
D | gr_buf_mgr.cpp | 37 static BufferInfo GetBufferInfo(const BufferDescriptor &descriptor) { in GetBufferInfo() argument 38 return BufferInfo(descriptor.GetWidth(), descriptor.GetHeight(), descriptor.GetFormat(), in GetBufferInfo() 39 descriptor.GetProducerUsage(), descriptor.GetConsumerUsage()); in GetBufferInfo() 61 auto descriptor = std::make_shared<BufferDescriptor>(); in CreateBufferDescriptor() local 62 descriptors_map_.emplace(descriptor->GetId(), descriptor); in CreateBufferDescriptor() 63 *descriptor_id = descriptor->GetId(); in CreateBufferDescriptor() 70 const auto descriptor = descriptors_map_.find(descriptor_id); in DestroyBufferDescriptor() local 71 if (descriptor == descriptors_map_.end()) { in DestroyBufferDescriptor() 74 descriptors_map_.erase(descriptor); in DestroyBufferDescriptor() 107 for (auto &descriptor : descriptors) { in AllocateBuffers() local [all …]
|
D | gr_device_impl.h | 51 struct gralloc1_device *device, int32_t /*gralloc1_function_descriptor_t*/ descriptor); 70 gralloc1_buffer_descriptor_t descriptor); 72 gralloc1_buffer_descriptor_t descriptor, 75 gralloc1_buffer_descriptor_t descriptor, 78 gralloc1_buffer_descriptor_t descriptor, int32_t format); 80 gralloc1_buffer_descriptor_t descriptor, 83 gralloc1_buffer_descriptor_t descriptor, 91 static gralloc1_error_t GetColorFormat(gralloc1_device_t *device, buffer_handle_t descriptor,
|
/hardware/google/gchips/gralloc4/src/hidl_common/ |
D | BufferDescriptor.h | 124 frameworks_vec<vecT> descriptor; in grallocEncodeBufferDescriptor() local 135 descriptor.resize(dynamic_size + static_size); in grallocEncodeBufferDescriptor() 136 push_descriptor_uint32(&descriptor, &pos, HIDL_MAPPER_VERSION_SCALED / 10); in grallocEncodeBufferDescriptor() 137 push_descriptor_uint32(&descriptor, &pos, descriptorInfo.width); in grallocEncodeBufferDescriptor() 138 push_descriptor_uint32(&descriptor, &pos, descriptorInfo.height); in grallocEncodeBufferDescriptor() 139 push_descriptor_uint32(&descriptor, &pos, descriptorInfo.layerCount); in grallocEncodeBufferDescriptor() 140 push_descriptor_uint32(&descriptor, &pos, static_cast<uint32_t>(descriptorInfo.format)); in grallocEncodeBufferDescriptor() 141 push_descriptor_uint64(&descriptor, &pos, static_cast<uint64_t>(descriptorInfo.usage)); in grallocEncodeBufferDescriptor() 143 push_descriptor_uint64(&descriptor, &pos, descriptorInfo.reservedSize); in grallocEncodeBufferDescriptor() 147 push_descriptor_string(&descriptor, &pos, descriptorInfo.name); in grallocEncodeBufferDescriptor() [all …]
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/chapters/commonvalidity/ |
D | pipeline_create_info_common.adoc | 33 shader, a descriptor slot in pname:layout must: match the shader stage 37 shader, a descriptor slot in pname:layout must: match the descriptor 43 shader, and the descriptor type is not 44 ename:VK_DESCRIPTOR_TYPE_MUTABLE_EXT, a descriptor slot in pname:layout 45 must: match the descriptor type 49 as an array, a descriptor slot in pname:layout must: match the 50 descriptor count
|