/external/minigbm/cros_gralloc/gralloc3/ |
D | CrosGralloc3Utils.cc | 22 using android::hardware::graphics::common::V1_2::BufferUsage; 90 std::string getUsageString(hidl_bitfield<BufferUsage> bufferUsage) { in getUsageString() 91 using Underlying = typename std::underlying_type<BufferUsage>::type; in getUsageString() 96 if (usage & BufferUsage::CAMERA_INPUT) { in getUsageString() 97 usage &= ~static_cast<Underlying>(BufferUsage::CAMERA_INPUT); in getUsageString() 100 if (usage & BufferUsage::CAMERA_OUTPUT) { in getUsageString() 101 usage &= ~static_cast<Underlying>(BufferUsage::CAMERA_OUTPUT); in getUsageString() 104 if (usage & BufferUsage::COMPOSER_CURSOR) { in getUsageString() 105 usage &= ~static_cast<Underlying>(BufferUsage::COMPOSER_CURSOR); in getUsageString() 108 if (usage & BufferUsage::COMPOSER_OVERLAY) { in getUsageString() [all …]
|
/external/minigbm/cros_gralloc/gralloc4/ |
D | CrosGralloc4Utils.cc | 26 using android::hardware::graphics::common::V1_2::BufferUsage; 94 std::string getUsageString(hidl_bitfield<BufferUsage> bufferUsage) { in getUsageString() 95 using Underlying = typename std::underlying_type<BufferUsage>::type; in getUsageString() 100 if (usage & BufferUsage::CAMERA_INPUT) { in getUsageString() 101 usage &= ~static_cast<Underlying>(BufferUsage::CAMERA_INPUT); in getUsageString() 104 if (usage & BufferUsage::CAMERA_OUTPUT) { in getUsageString() 105 usage &= ~static_cast<Underlying>(BufferUsage::CAMERA_OUTPUT); in getUsageString() 108 if (usage & BufferUsage::COMPOSER_CURSOR) { in getUsageString() 109 usage &= ~static_cast<Underlying>(BufferUsage::COMPOSER_CURSOR); in getUsageString() 112 if (usage & BufferUsage::COMPOSER_OVERLAY) { in getUsageString() [all …]
|
/external/skia/src/gpu/dawn/ |
D | GrDawnBuffer.cpp | 13 wgpu::BufferUsage GrGpuBufferTypeToDawnUsageBit(GrGpuBufferType type) { in GrGpuBufferTypeToDawnUsageBit() 16 return wgpu::BufferUsage::Vertex | wgpu::BufferUsage::CopyDst; in GrGpuBufferTypeToDawnUsageBit() 18 return wgpu::BufferUsage::Index | wgpu::BufferUsage::CopyDst; in GrGpuBufferTypeToDawnUsageBit() 20 return wgpu::BufferUsage::MapWrite | wgpu::BufferUsage::CopySrc; in GrGpuBufferTypeToDawnUsageBit() 22 return wgpu::BufferUsage::MapRead | wgpu::BufferUsage::CopyDst; in GrGpuBufferTypeToDawnUsageBit() 25 return wgpu::BufferUsage::Vertex; in GrGpuBufferTypeToDawnUsageBit() 37 if (bufferDesc.usage & wgpu::BufferUsage::MapRead) { in GrDawnBuffer() 38 SkASSERT(!SkToBool(bufferDesc.usage & wgpu::BufferUsage::MapWrite)); in GrDawnBuffer() 40 } else if (bufferDesc.usage & wgpu::BufferUsage::MapWrite) { in GrDawnBuffer()
|
D | GrDawnRingBuffer.cpp | 17 GrDawnRingBuffer::GrDawnRingBuffer(GrDawnGpu* gpu, wgpu::BufferUsage usage) in GrDawnRingBuffer() 27 desc.usage = fUsage | wgpu::BufferUsage::CopyDst; in allocate()
|
D | GrDawnRingBuffer.h | 17 GrDawnRingBuffer(GrDawnGpu* gpu, wgpu::BufferUsage usage); 39 wgpu::BufferUsage fUsage;
|
/external/angle/src/libANGLE/renderer/d3d/ |
D | BufferD3D.cpp | 50 void BufferD3D::updateD3DBufferUsage(const gl::Context *context, gl::BufferUsage usage) in updateD3DBufferUsage() 54 case gl::BufferUsage::StaticCopy: in updateD3DBufferUsage() 55 case gl::BufferUsage::StaticDraw: in updateD3DBufferUsage() 56 case gl::BufferUsage::StaticRead: in updateD3DBufferUsage() 57 case gl::BufferUsage::DynamicCopy: in updateD3DBufferUsage() 58 case gl::BufferUsage::DynamicRead: in updateD3DBufferUsage() 59 case gl::BufferUsage::StreamCopy: in updateD3DBufferUsage() 60 case gl::BufferUsage::StreamRead: in updateD3DBufferUsage() 65 case gl::BufferUsage::DynamicDraw: in updateD3DBufferUsage() 66 case gl::BufferUsage::StreamDraw: in updateD3DBufferUsage() [all …]
|
/external/skia/src/gpu/vk/ |
D | GrVkBuffer.cpp | 82 using BufferUsage = GrVkMemoryAllocator::BufferUsage; in Make() typedef 83 BufferUsage allocUsage; in Make() 94 allocUsage = requiresMappable ? BufferUsage::kCpuWritesGpuReads : BufferUsage::kGpuOnly; in Make() 98 allocUsage = requiresMappable ? BufferUsage::kCpuWritesGpuReads : BufferUsage::kGpuOnly; in Make() 102 allocUsage = requiresMappable ? BufferUsage::kCpuWritesGpuReads : BufferUsage::kGpuOnly; in Make() 106 allocUsage = BufferUsage::kCpuWritesGpuReads; in Make() 110 allocUsage = BufferUsage::kTransfersFromCpuToGpu; in Make() 114 allocUsage = BufferUsage::kTransfersFromGpuToCpu; in Make()
|
D | GrVkAMDMemoryAllocator.cpp | 137 VkResult GrVkAMDMemoryAllocator::allocateBufferMemory(VkBuffer buffer, BufferUsage usage, in allocateBufferMemory() 149 case BufferUsage::kGpuOnly: in allocateBufferMemory() 153 case BufferUsage::kCpuWritesGpuReads: in allocateBufferMemory() 170 case BufferUsage::kTransfersFromCpuToGpu: in allocateBufferMemory() 174 case BufferUsage::kTransfersFromGpuToCpu: in allocateBufferMemory() 189 if ((AllocationPropertyFlags::kLazyAllocation & flags) && BufferUsage::kGpuOnly == usage) { in allocateBufferMemory() 194 SkASSERT(BufferUsage::kGpuOnly != usage); in allocateBufferMemory()
|
D | GrVkMemory.cpp | 14 using BufferUsage = GrVkMemoryAllocator::BufferUsage; typedef 18 BufferUsage usage, in AllocAndBindBufferMemory() 25 if (usage == BufferUsage::kTransfersFromCpuToGpu || in AllocAndBindBufferMemory() 26 (usage == BufferUsage::kCpuWritesGpuReads && shouldPersistentlyMapCpuToGpu)) { in AllocAndBindBufferMemory()
|
/external/angle/src/libANGLE/renderer/d3d/d3d11/ |
D | Buffer11.h | 32 enum BufferUsage enum 58 BufferUsage usage, 103 gl::BufferUsage usage) override; 153 void markBufferUsage(BufferUsage usage); 154 angle::Result markBufferUsage(const gl::Context *context, BufferUsage usage); 155 angle::Result garbageCollection(const gl::Context *context, BufferUsage currentUsage); 167 BufferUsage usage, 181 BufferStorage *allocateStorage(BufferUsage usage); 182 void updateDeallocThreshold(BufferUsage usage); 185 angle::Result checkForDeallocation(const gl::Context *context, BufferUsage usage);
|
D | Buffer11.cpp | 70 D3D11_MAP GetD3DMapTypeFromBits(BufferUsage usage, GLbitfield access) in GetD3DMapTypeFromBits() 114 BufferUsage getUsage() const { return mUsage; } in getUsage() 145 BufferStorage(Renderer11 *renderer, BufferUsage usage); 149 const BufferUsage mUsage; 158 NativeStorage(Renderer11 *renderer, BufferUsage usage, const angle::Subject *onStorageChanged); 196 BufferUsage usage, 209 BufferUsage usage, 380 gl::BufferUsage usage) in setData() 606 void Buffer11::updateDeallocThreshold(BufferUsage usage) in updateDeallocThreshold() 628 angle::Result Buffer11::checkForDeallocation(const gl::Context *context, BufferUsage usage) in checkForDeallocation() [all …]
|
/external/skqp/src/gpu/vk/ |
D | GrVkMemory.cpp | 15 using BufferUsage = GrVkMemoryAllocator::BufferUsage; typedef 17 static BufferUsage get_buffer_usage(GrVkBuffer::Type type, bool dynamic) { in get_buffer_usage() 22 return dynamic ? BufferUsage::kCpuWritesGpuReads : BufferUsage::kGpuOnly; in get_buffer_usage() 25 return BufferUsage::kCpuWritesGpuReads; in get_buffer_usage() 28 return BufferUsage::kCpuOnly; in get_buffer_usage() 31 return BufferUsage::kCpuOnly; // Just returning an arbitrary value. in get_buffer_usage() 42 GrVkMemoryAllocator::BufferUsage usage = get_buffer_usage(type, dynamic); in AllocAndBindBufferMemory() 45 if (usage == GrVkMemoryAllocator::BufferUsage::kCpuWritesGpuReads) { in AllocAndBindBufferMemory()
|
D | GrVkAMDMemoryAllocator.cpp | 92 bool GrVkAMDMemoryAllocator::allocateMemoryForBuffer(VkBuffer buffer, BufferUsage usage, in allocateMemoryForBuffer() 103 case BufferUsage::kGpuOnly: in allocateMemoryForBuffer() 107 case BufferUsage::kCpuOnly: in allocateMemoryForBuffer() 112 case BufferUsage::kCpuWritesGpuReads: in allocateMemoryForBuffer() 118 case BufferUsage::kGpuWritesCpuReads: in allocateMemoryForBuffer() 129 if ((AllocationPropertyFlags::kLazyAllocation & flags) && BufferUsage::kGpuOnly == usage) { in allocateMemoryForBuffer() 134 SkASSERT(BufferUsage::kGpuOnly != usage); in allocateMemoryForBuffer() 141 if (usage == BufferUsage::kCpuWritesGpuReads) { in allocateMemoryForBuffer()
|
/external/angle/src/common/ |
D | PackedGLEnums_autogen.cpp | 228 BufferUsage FromGLenum<BufferUsage>(GLenum from) in FromGLenum() 233 return BufferUsage::DynamicCopy; in FromGLenum() 235 return BufferUsage::DynamicDraw; in FromGLenum() 237 return BufferUsage::DynamicRead; in FromGLenum() 239 return BufferUsage::StaticCopy; in FromGLenum() 241 return BufferUsage::StaticDraw; in FromGLenum() 243 return BufferUsage::StaticRead; in FromGLenum() 245 return BufferUsage::StreamCopy; in FromGLenum() 247 return BufferUsage::StreamDraw; in FromGLenum() 249 return BufferUsage::StreamRead; in FromGLenum() [all …]
|
/external/angle/src/libANGLE/renderer/vulkan/ |
D | BufferVk.cpp | 41 gl::BufferUsage usage) in GetPreferredMemoryType() 59 case gl::BufferUsage::StaticCopy: in GetPreferredMemoryType() 60 case gl::BufferUsage::StaticDraw: in GetPreferredMemoryType() 61 case gl::BufferUsage::StaticRead: in GetPreferredMemoryType() 64 case gl::BufferUsage::DynamicDraw: in GetPreferredMemoryType() 65 case gl::BufferUsage::StreamDraw: in GetPreferredMemoryType() 69 case gl::BufferUsage::DynamicCopy: in GetPreferredMemoryType() 70 case gl::BufferUsage::DynamicRead: in GetPreferredMemoryType() 71 case gl::BufferUsage::StreamCopy: in GetPreferredMemoryType() 72 case gl::BufferUsage::StreamRead: in GetPreferredMemoryType() [all …]
|
/external/angle/src/libANGLE/ |
D | Buffer.h | 40 BufferUsage getUsage() const { return mUsage; } in getUsage() 56 BufferUsage mUsage; 99 BufferUsage usage); 127 BufferUsage getUsage() const { return mState.mUsage; } in getUsage() 173 BufferUsage usage,
|
D | Buffer.cpp | 26 mUsage(BufferUsage::StaticDraw), in BufferState() 89 return bufferDataImpl(context, target, data, size, BufferUsage::InvalidEnum, flags); in bufferStorage() 96 BufferUsage usage) in bufferData() 106 BufferUsage usage, in bufferDataImpl() 151 mState.mImmutable = (usage == BufferUsage::InvalidEnum); in bufferDataImpl() 180 BufferUsage::InvalidEnum, flags) == angle::Result::Stop) in bufferExternalDataImpl() 193 mState.mUsage = BufferUsage::InvalidEnum; in bufferExternalDataImpl()
|
/external/skia/include/gpu/vk/ |
D | GrVkMemoryAllocator.h | 37 enum class BufferUsage { enum 73 virtual bool allocateMemoryForBuffer(VkBuffer, BufferUsage, AllocationPropertyFlags, in allocateMemoryForBuffer() argument 81 BufferUsage usage, in allocateBufferMemory()
|
/external/webrtc/modules/video_coding/ |
D | frame_dependencies_calculator.h | 41 struct BufferUsage { struct 46 absl::InlinedVector<BufferUsage, 4> buffers_; argument
|
D | frame_dependencies_calculator.cc | 45 const BufferUsage& buffer = buffers_[buffer_usage.id]; in FromBuffersUsage() 69 BufferUsage& buffer = buffers_[buffer_usage.id]; in FromBuffersUsage()
|
/external/skqp/include/gpu/vk/ |
D | GrVkMemoryAllocator.h | 35 enum class BufferUsage { enum 54 virtual bool allocateMemoryForBuffer(VkBuffer buffer, BufferUsage usage,
|
/external/llvm-project/llvm/tools/llvm-mca/Views/ |
D | SchedulerStatistics.h | 59 struct BufferUsage { struct 68 std::vector<BufferUsage> Usage; argument
|
D | SchedulerStatistics.cpp | 93 for (BufferUsage &BU : Usage) { in updateHistograms() 127 if (all_of(Usage, [](const BufferUsage &BU) { return !BU.MaxUsedSlots; })) { in printSchedulerUsage() 145 const BufferUsage &BU = Usage[I]; in printSchedulerUsage()
|
/external/deqp-deps/amber/src/dawn/ |
D | engine_dawn.cc | 316 ::dawn::BufferUsage::CopyDst | ::dawn::BufferUsage::MapRead; in MapDeviceTextureToHostBuffer() 378 ::dawn::BufferUsage::CopyDst | ::dawn::BufferUsage::MapRead; in MapDeviceBufferToHostBuffer() 410 ::dawn::BufferUsage usage) { in CreateBufferFromData() 413 descriptor.usage = usage | ::dawn::BufferUsage::CopyDst; in CreateBufferFromData() 1269 *device_, indexData, sizeof(indexData), ::dawn::BufferUsage::Index); in DoDrawRect() 1295 *device_, vertexData, sizeof(vertexData), ::dawn::BufferUsage::Vertex); in DoDrawRect() 1353 ::dawn::BufferUsage::Index); in DoDrawArrays() 1585 ::dawn::BufferUsage::Index); in AttachBuffersAndTextures() 1592 vertex_info.buffer->GetSizeInBytes(), ::dawn::BufferUsage::Vertex)); in AttachBuffersAndTextures() 1621 ::dawn::BufferUsage bufferUsage; in AttachBuffersAndTextures() [all …]
|
/external/angle/src/libANGLE/renderer/null/ |
D | BufferNULL.h | 31 gl::BufferUsage usage, 37 gl::BufferUsage usage) override;
|