Home
last modified time | relevance | path

Searched refs:offsetDiff (Results 1 – 10 of 10) sorted by relevance

/external/skia/src/gpu/
DGrSPIRVUniformHandler.cpp193 uint32_t offsetDiff = *currentOffset & alignmentMask; in get_ubo_offset() local
194 if (offsetDiff != 0) { in get_ubo_offset()
195 offsetDiff = alignmentMask - offsetDiff + 1; in get_ubo_offset()
197 uint32_t uniformOffset = *currentOffset + offsetDiff; in get_ubo_offset()
/external/skqp/src/gpu/vk/
DGrVkUniformHandler.cpp188 uint32_t offsetDiff = *currentOffset & alignmentMask; in get_ubo_aligned_offset() local
189 if (offsetDiff != 0) { in get_ubo_aligned_offset()
190 offsetDiff = alignmentMask - offsetDiff + 1; in get_ubo_aligned_offset()
192 *uniformOffset = *currentOffset + offsetDiff; in get_ubo_aligned_offset()
DGrVkMemory.cpp171 VkDeviceSize offsetDiff = offset & (alignment -1); in GetNonCoherentMappedMemoryRange() local
172 offset = offset - offsetDiff; in GetNonCoherentMappedMemoryRange()
/external/skia/src/gpu/vk/
DGrVkUniformHandler.cpp200 uint32_t offsetDiff = *currentOffset & alignmentMask; in get_aligned_offset() local
201 if (offsetDiff != 0) { in get_aligned_offset()
202 offsetDiff = alignmentMask - offsetDiff + 1; in get_aligned_offset()
204 int32_t uniformOffset = *currentOffset + offsetDiff; in get_aligned_offset()
DGrVkMemory.cpp133 VkDeviceSize offsetDiff = offset & (alignment -1); in GetNonCoherentMappedMemoryRange() local
134 offset = offset - offsetDiff; in GetNonCoherentMappedMemoryRange()
/external/skia/src/gpu/mtl/
DGrMtlUniformHandler.mm197 uint32_t offsetDiff = *currentOffset & alignmentMask;
198 if (offsetDiff != 0) {
199 offsetDiff = alignmentMask - offsetDiff + 1;
201 uint32_t uniformOffset = *currentOffset + offsetDiff;
DGrMtlPipelineStateBuilder.mm393 uint32_t offsetDiff = offset & maxAlignment;
394 if (offsetDiff != 0) {
395 offsetDiff = maxAlignment - offsetDiff + 1;
397 return offset + offsetDiff;
/external/skqp/src/gpu/mtl/
DGrMtlUniformHandler.mm180 uint32_t offsetDiff = *currentOffset & alignmentMask;
181 if (offsetDiff != 0) {
182 offsetDiff = alignmentMask - offsetDiff + 1;
184 *uniformOffset = *currentOffset + offsetDiff;
/external/angle/src/libANGLE/renderer/vulkan/
DProgramExecutableVk.cpp775 VkDeviceSize offsetDiff = offset - alignedOffset; in WriteBufferDescriptorSetBinding() local
778 size += offsetDiff; in WriteBufferDescriptorSetBinding()
DContextVk.cpp4667 uint32_t offsetDiff = 0; in writeAtomicCounterBufferDriverUniformOffsets() local
4678 offsetDiff = static_cast<uint32_t>((offset - alignedOffset) / sizeof(uint32_t)); in writeAtomicCounterBufferDriverUniformOffsets()
4683 ASSERT(offsetDiff < (1 << 8)); in writeAtomicCounterBufferDriverUniformOffsets()
4689 offsetsOut[bufferIndex / 4] |= static_cast<uint8_t>(offsetDiff) << ((bufferIndex % 4) * 8); in writeAtomicCounterBufferDriverUniformOffsets()