Home
last modified time | relevance | path

Searched refs:SizeInBytes (Results 1 – 25 of 60) sorted by relevance

123

/third_party/vk-gl-cts/external/amber/src/src/
Dformat_test.cc38 EXPECT_EQ(16U, fmt.SizeInBytes()); in TEST_F()
49 EXPECT_EQ(48U, fmt.SizeInBytes()); in TEST_F()
60 EXPECT_EQ(32U, fmt.SizeInBytes()); in TEST_F()
84 EXPECT_EQ(test_data.size_in_bytes, fmt.SizeInBytes()) << test_data.name; in TEST_P()
266 EXPECT_EQ(4u, fmt.SizeInBytes()); in TEST_F()
272 EXPECT_EQ(4u, segs[0].SizeInBytes()); in TEST_F()
281 EXPECT_EQ(8u, fmt.SizeInBytes()); in TEST_F()
286 EXPECT_EQ(4u, segs[0].SizeInBytes()); in TEST_F()
288 EXPECT_EQ(4u, segs[1].SizeInBytes()); in TEST_F()
297 EXPECT_EQ(16u, fmt.SizeInBytes()); in TEST_F()
[all …]
Dformat.cc70 uint32_t Format::SizeInBytes() const { in SizeInBytes() function in amber::Format
77 size += static_cast<uint32_t>(seg.SizeInBytes()); in SizeInBytes()
116 Segment{size + segments_.back().SizeInBytes()}; in AddPaddedSegment()
132 last.SizeInBytes() >= seg.SizeInBytes()) { in AddSegment()
134 auto pad = last.SizeInBytes() - seg.SizeInBytes(); in AddSegment()
156 return 4 * n->SizeInBytes(); in CalcVecBaseAlignmentInBytes()
159 return n->RowCount() * n->SizeInBytes(); in CalcVecBaseAlignmentInBytes()
173 align = t->SizeInBytes(); in CalcArrayBaseAlignmentInBytes()
199 align = 4 * m->SizeInBytes(); in CalcMatrixBaseAlignmentInBytes()
201 align = m->RowCount() * m->SizeInBytes(); in CalcMatrixBaseAlignmentInBytes()
[all …]
Dbuffer.cc138 buf_1_ptr += seg.SizeInBytes(); in CalculateDiffs()
139 buf_2_ptr += seg.SizeInBytes(); in CalculateDiffs()
200 buf_ptr += seg.SizeInBytes(); in GetHistogramForChannel()
275 ((offset / format_->SizeInBytes()) * format_->InputNeededPerElement()) + in RecalculateMaxSizeInBytes()
285 if (GetMaxSizeInBytes() < element_count * format_->SizeInBytes()) in RecalculateMaxSizeInBytes()
286 SetMaxSizeInBytes(element_count * format_->SizeInBytes()); in RecalculateMaxSizeInBytes()
295 ((offset / format_->SizeInBytes()) * format_->InputNeededPerElement()) + in SetDataWithOffset()
311 format_->SizeInBytes(); in SetDataWithOffset()
395 bytes_.resize(element_count * format_->SizeInBytes()); in SetSizeInElements()
399 assert(size_in_bytes % format_->SizeInBytes() == 0); in SetSizeInBytes()
[all …]
Dtype_test.cc88 uint32_t bytes = i.SizeInBytes(); in TEST_F()
91 EXPECT_EQ(bytes, i.SizeInBytes()); in TEST_F()
96 uint32_t bytes = i.SizeInBytes(); in TEST_F()
100 EXPECT_EQ(bytes, i.SizeInBytes()); in TEST_F()
105 uint32_t bytes = i.SizeInBytes(); in TEST_F()
108 EXPECT_EQ(bytes, i.SizeInBytes()); in TEST_F()
208 EXPECT_EQ(4u, Number(FormatMode::kUNorm).SizeInBytes()); in TEST_F()
212 EXPECT_EQ(1u, Number(FormatMode::kSInt, 8).SizeInBytes()); in TEST_F()
213 EXPECT_EQ(2u, Number(FormatMode::kSInt, 16).SizeInBytes()); in TEST_F()
214 EXPECT_EQ(4u, Number(FormatMode::kSInt, 32).SizeInBytes()); in TEST_F()
[all …]
Dtype.cc79 uint32_t List::SizeInBytes() const { in SizeInBytes() function in amber::type::List
85 size += member.SizeInBytes(); in SizeInBytes()
95 uint32_t Struct::SizeInBytes() const { in SizeInBytes() function in amber::type::Struct
Dtype.h94 virtual uint32_t SizeInBytes() const = 0;
154 uint32_t SizeInBytes() const override { return bits_ / 8; } in SizeInBytes() function
178 uint32_t SizeInBytes() const { return num_bits / 8; } in SizeInBytes() function
223 uint32_t SizeInBytes() const override;
247 uint32_t SizeInBytes() const override;
Dverifier.cc531 size_t size_in_bytes = buffer_element_count * fmt->SizeInBytes(); in ProbeSSBO()
532 if ((elem_count * fmt->SizeInBytes()) + offset > size_in_bytes) { in ProbeSSBO()
535 std::to_string((elem_count * fmt->SizeInBytes()) + offset) + in ProbeSSBO()
540 if (offset % fmt->SizeInBytes() != 0) { in ProbeSSBO()
545 std::to_string(fmt->SizeInBytes()) + ")"); in ProbeSSBO()
603 ptr += segment.SizeInBytes(); in ProbeSSBO()
Dbuffer.h165 return ElementCount() * format_->SizeInBytes(); in GetSizeInBytes()
169 uint32_t GetElementStride() { return format_->SizeInBytes(); } in GetElementStride()
Dformat.h58 uint32_t SizeInBytes() const { return num_bits_ / 8; } in SizeInBytes() function
114 uint32_t SizeInBytes() const;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/MCTargetDesc/
DAVRMCELFStreamer.cpp24 const MCSymbol *Sym, unsigned SizeInBytes, SMLoc Loc, in EmitValueForModiferKind() argument
29 if (SizeInBytes == SIZE_LONG) in EmitValueForModiferKind()
31 else if (SizeInBytes == SIZE_WORD) in EmitValueForModiferKind()
40 SizeInBytes, Loc); in EmitValueForModiferKind()
DAVRMCELFStreamer.h45 const MCSymbol *Sym, unsigned SizeInBytes, SMLoc Loc = SMLoc(),
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DUser.cpp89 intptr_t SizeInBytes; member
102 assert(DI->SizeInBytes != 0 && "Should not have had a descriptor otherwise!"); in getDescriptor()
105 reinterpret_cast<uint8_t *>(DI) - DI->SizeInBytes, DI->SizeInBytes); in getDescriptor()
135 DescInfo->SizeInBytes = DescBytes; in allocateFixedOperandUser()
184 uint8_t *Storage = reinterpret_cast<uint8_t *>(DI) - DI->SizeInBytes; in operator delete()
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DResourceAllocatorManagerD3D12.cpp300 if (resourceInfo.SizeInBytes == 0 || in CreatePlacedResource()
301 resourceInfo.SizeInBytes == std::numeric_limits<uint64_t>::max()) { in CreatePlacedResource()
310 allocator->Allocate(resourceInfo.SizeInBytes, resourceInfo.Alignment)); in CreatePlacedResource()
361 if (resourceInfo.SizeInBytes == 0 || in CreateCommittedResource()
362 resourceInfo.SizeInBytes == std::numeric_limits<uint64_t>::max()) { in CreateCommittedResource()
366 if (resourceInfo.SizeInBytes > kMaxHeapSize) { in CreateCommittedResource()
374 resourceInfo.SizeInBytes, GetMemorySegment(mDevice, heapType))); in CreateCommittedResource()
391 resourceInfo.SizeInBytes); in CreateCommittedResource()
DHeapAllocatorD3D12.cpp36 heapDesc.SizeInBytes = size; in AllocateResourceHeap()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DAlignment.h146 inline bool isAligned(Align Lhs, uint64_t SizeInBytes) { in isAligned() argument
147 return SizeInBytes % Lhs.value() == 0; in isAligned()
152 inline bool isAligned(MaybeAlign Lhs, uint64_t SizeInBytes) { in isAligned() argument
154 return SizeInBytes % (*Lhs).value() == 0; in isAligned()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/AsmParser/
DAVRAsmParser.cpp86 bool parseLiteralValues(unsigned SizeInBytes, SMLoc L);
643 bool AVRAsmParser::parseLiteralValues(unsigned SizeInBytes, SMLoc L) { in parseLiteralValues() argument
653 AVRStreamer.EmitValueForModiferKind(Symbol, SizeInBytes, L, in parseLiteralValues()
671 AVRStreamer.EmitValueForModiferKind(Symbol, SizeInBytes, L, ModifierKind); in parseLiteralValues()
679 Parser.getStreamer().EmitValue(Value, SizeInBytes, L); in parseLiteralValues()
/third_party/skia/third_party/externals/d3d12allocator/src/
DD3D12MemAlloc.cpp3327 heapDesc.SizeInBytes = m_Size; in Init()
4221 D3D12MA_ASSERT(resAllocInfo.SizeInBytes > 0); in CreateResource()
4233 resAllocInfo.SizeInBytes, in CreateResource()
4268 resAllocInfo.SizeInBytes > preferredBlockSize / 2; in CreateResource()
4290 resAllocInfo.SizeInBytes, in CreateResource()
4329 pAllocInfo->SizeInBytes, in AllocateMemory()
4358 pAllocInfo->SizeInBytes > preferredBlockSize / 2; in AllocateMemory()
4372 pAllocInfo->SizeInBytes, in AllocateMemory()
4402 D3D12MA_ASSERT(resAllocInfo.SizeInBytes > 0); in CreateAliasingResource()
4410 AllocationLocalOffset + resAllocInfo.SizeInBytes > existingSize || in CreateAliasingResource()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DHWAddressSanitizer.cpp767 uint64_t SizeInBytes = AI.getModule()->getDataLayout().getTypeAllocSize(Ty); in getAllocaSizeInBytes() local
768 return SizeInBytes * ArraySize; in getAllocaSizeInBytes()
1230 uint64_t SizeInBytes = in instrumentGlobal() local
1232 uint64_t NewSize = alignTo(SizeInBytes, Mapping.getObjectAlignment()); in instrumentGlobal()
1233 if (SizeInBytes != NewSize) { in instrumentGlobal()
1236 std::vector<uint8_t> Init(NewSize - SizeInBytes, 0); in instrumentGlobal()
1269 for (uint64_t DescriptorPos = 0; DescriptorPos < SizeInBytes; in instrumentGlobal()
1281 uint32_t Size = std::min(SizeInBytes - DescriptorPos, MaxDescriptorSize); in instrumentGlobal()
/third_party/vk-gl-cts/external/amber/src/src/vulkan/
Dbuffer_backed_descriptor.cc84 buffer->SetElementCount(size_in_bytes / buffer->GetFormat()->SizeInBytes()); in MoveTransferResourceToBufferOutput()
/third_party/skia/src/gpu/d3d/
DGrD3DCommandList.cpp389 views[numViews].SizeInBytes = vertexBuffer->size(); in setVertexBuffers()
396 views[numViews].SizeInBytes = instanceBuffer->size(); in setVertexBuffers()
410 view.SizeInBytes = indexBuffer->size(); in setIndexBuffer()
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DBindGroupD3D12.cpp52 desc.SizeInBytes = Align(binding.size, 256); in AllocateDescriptors()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Bitstream/
DBitstreamReader.h298 size_t SizeInBytes() const { return BitcodeBytes.size(); } in SizeInBytes() function
381 using SimpleBitstreamCursor::SizeInBytes;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopIdiomRecognize.cpp767 uint64_t SizeInBytes = cast<ConstantInt>(MSI->getLength())->getZExtValue(); in processLoopMemSet() local
768 if ((SizeInBytes >> 32) != 0) in processLoopMemSet()
778 if (SizeInBytes != Stride && SizeInBytes != -Stride) in processLoopMemSet()
789 bool NegStride = SizeInBytes == -Stride; in processLoopMemSet()
791 Pointer, (unsigned)SizeInBytes, MaybeAlign(MSI->getDestAlignment()), in processLoopMemSet()
/third_party/mesa3d/src/microsoft/vulkan/
Ddzn_pipeline.c50 (__stream)->SizeInBytes = ALIGN_POT((__stream)->SizeInBytes, alignof(void *)); \
51 …apper = (void *)((uint8_t *)(__stream)->pPipelineStateSubobjectStream + (__stream)->SizeInBytes); \
52 (__stream)->SizeInBytes += sizeof(*__wrapper); \
53 assert((__stream)->SizeInBytes <= __maxstreamsz); \
1812 .SizeInBytes = pipeline->templates.stream_desc.SizeInBytes, in dzn_graphics_pipeline_get_state()
1816 memcpy(stream_buf, pipeline->templates.stream_buf, stream_desc.SizeInBytes); in dzn_graphics_pipeline_get_state()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/
DInstrProfReader.h251 inline uint8_t getNumPaddingBytes(uint64_t SizeInBytes) { in getNumPaddingBytes() argument
252 return 7 & (sizeof(uint64_t) - SizeInBytes % sizeof(uint64_t)); in getNumPaddingBytes()

123