Home
last modified time | relevance | path

Searched refs:BufferUsage (Results 1 – 25 of 79) sorted by relevance

1234

/external/minigbm/cros_gralloc/gralloc3/
DCrosGralloc3Utils.cc22 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/
DCrosGralloc4Utils.cc26 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/
DGrDawnBuffer.cpp13 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()
DGrDawnRingBuffer.cpp17 GrDawnRingBuffer::GrDawnRingBuffer(GrDawnGpu* gpu, wgpu::BufferUsage usage) in GrDawnRingBuffer()
27 desc.usage = fUsage | wgpu::BufferUsage::CopyDst; in allocate()
DGrDawnRingBuffer.h17 GrDawnRingBuffer(GrDawnGpu* gpu, wgpu::BufferUsage usage);
39 wgpu::BufferUsage fUsage;
/external/angle/src/libANGLE/renderer/d3d/
DBufferD3D.cpp50 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/
DGrVkBuffer.cpp82 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()
DGrVkAMDMemoryAllocator.cpp137 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()
DGrVkMemory.cpp14 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/
DBuffer11.h32 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);
DBuffer11.cpp70 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/
DGrVkMemory.cpp15 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()
DGrVkAMDMemoryAllocator.cpp92 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/
DPackedGLEnums_autogen.cpp228 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/
DBufferVk.cpp41 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/
DBuffer.h40 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,
DBuffer.cpp26 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/
DGrVkMemoryAllocator.h37 enum class BufferUsage { enum
73 virtual bool allocateMemoryForBuffer(VkBuffer, BufferUsage, AllocationPropertyFlags, in allocateMemoryForBuffer() argument
81 BufferUsage usage, in allocateBufferMemory()
/external/webrtc/modules/video_coding/
Dframe_dependencies_calculator.h41 struct BufferUsage { struct
46 absl::InlinedVector<BufferUsage, 4> buffers_; argument
Dframe_dependencies_calculator.cc45 const BufferUsage& buffer = buffers_[buffer_usage.id]; in FromBuffersUsage()
69 BufferUsage& buffer = buffers_[buffer_usage.id]; in FromBuffersUsage()
/external/skqp/include/gpu/vk/
DGrVkMemoryAllocator.h35 enum class BufferUsage { enum
54 virtual bool allocateMemoryForBuffer(VkBuffer buffer, BufferUsage usage,
/external/llvm-project/llvm/tools/llvm-mca/Views/
DSchedulerStatistics.h59 struct BufferUsage { struct
68 std::vector<BufferUsage> Usage; argument
DSchedulerStatistics.cpp93 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/
Dengine_dawn.cc316 ::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/
DBufferNULL.h31 gl::BufferUsage usage,
37 gl::BufferUsage usage) override;

1234