Home
last modified time | relevance | path

Searched refs:baseAlignment (Results 1 – 15 of 15) sorted by relevance

/third_party/skia/third_party/externals/angle2/src/compiler/translator/
Dblocklayout.cpp168 size_t baseAlignment = GetStd430BaseAlignment(variable.type, isRowMajor); in visitVariable() local
169 mCurrentAlignment = std::max(mCurrentAlignment, baseAlignment); in visitVariable()
256 void BlockLayoutEncoder::align(size_t baseAlignment) in align() argument
259 checkedOffset += baseAlignment; in align()
262 checkedAlignmentOffset %= baseAlignment; in align()
300 size_t baseAlignment = 0; in getBlockLayoutInfo() local
306 baseAlignment = getTypeBaseAlignment(type, isRowMajorMatrix); in getBlockLayoutInfo()
318 baseAlignment = static_cast<int>(getTypeBaseAlignment(type, false)); in getBlockLayoutInfo()
324 baseAlignment = ComponentAlignment(numComponents); in getBlockLayoutInfo()
327 align(baseAlignment); in getBlockLayoutInfo()
Dblocklayout.h102 void align(size_t baseAlignment);
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/
Dblocklayout.cpp160 size_t baseAlignment = GetStd430BaseAlignment(variable.type, isRowMajor); in visitVariable() local
161 mCurrentAlignment = std::max(mCurrentAlignment, baseAlignment); in visitVariable()
219 void BlockLayoutEncoder::align(size_t baseAlignment) in align() argument
221 mCurrentOffset = rx::roundUp<size_t>(mCurrentOffset, baseAlignment); in align()
257 size_t baseAlignment = 0; in getBlockLayoutInfo() local
263 baseAlignment = getTypeBaseAlignment(type, isRowMajorMatrix); in getBlockLayoutInfo()
275 baseAlignment = static_cast<int>(getTypeBaseAlignment(type, false)); in getBlockLayoutInfo()
281 baseAlignment = ComponentAlignment(numComponents); in getBlockLayoutInfo()
284 mCurrentOffset = rx::roundUp(mCurrentOffset, baseAlignment); in getBlockLayoutInfo()
Dblocklayout.h100 void align(size_t baseAlignment);
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DLayout.cpp249 const size_t baseAlignment) in CommonGlslStructLayoutOf() argument
263 layout.requireAlignment(baseAlignment, true); in CommonGlslStructLayoutOf()
271 const size_t baseAlignment) in CommonGlslLayoutOf() argument
282 layout.requireAlignment(baseAlignment, true); in CommonGlslLayoutOf()
292 matrixPacking, maskArray, baseAlignment); in CommonGlslLayoutOf()
346 layout.requireAlignment(baseAlignment, true); in CommonGlslLayoutOf()
/third_party/spirv-tools/source/val/
Dvalidate_decorations.cpp169 uint32_t baseAlignment = 1; in getBaseAlignment() local
173 baseAlignment = words[2] / 8; in getBaseAlignment()
180 baseAlignment = in getBaseAlignment()
187 baseAlignment = getBaseAlignment(column_type, roundUp, inherited, in getBaseAlignment()
197 baseAlignment = in getBaseAlignment()
203 baseAlignment = in getBaseAlignment()
205 if (roundUp) baseAlignment = align(baseAlignment, 16u); in getBaseAlignment()
214 baseAlignment = std::max( in getBaseAlignment()
215 baseAlignment, in getBaseAlignment()
218 if (roundUp) baseAlignment = align(baseAlignment, 16u); in getBaseAlignment()
[all …]
/third_party/skia/third_party/externals/spirv-tools/source/val/
Dvalidate_decorations.cpp181 uint32_t baseAlignment = 1; in getBaseAlignment() local
185 baseAlignment = words[2] / 8; in getBaseAlignment()
192 baseAlignment = in getBaseAlignment()
199 baseAlignment = getBaseAlignment(column_type, roundUp, inherited, in getBaseAlignment()
209 baseAlignment = in getBaseAlignment()
215 baseAlignment = in getBaseAlignment()
217 if (roundUp) baseAlignment = align(baseAlignment, 16u); in getBaseAlignment()
226 baseAlignment = std::max( in getBaseAlignment()
227 baseAlignment, in getBaseAlignment()
230 if (roundUp) baseAlignment = align(baseAlignment, 16u); in getBaseAlignment()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_decorations.cpp181 uint32_t baseAlignment = 1; in getBaseAlignment() local
185 baseAlignment = words[2] / 8; in getBaseAlignment()
192 baseAlignment = in getBaseAlignment()
199 baseAlignment = getBaseAlignment(column_type, roundUp, inherited, in getBaseAlignment()
209 baseAlignment = in getBaseAlignment()
215 baseAlignment = in getBaseAlignment()
217 if (roundUp) baseAlignment = align(baseAlignment, 16u); in getBaseAlignment()
226 baseAlignment = std::max( in getBaseAlignment()
227 baseAlignment, in getBaseAlignment()
230 if (roundUp) baseAlignment = align(baseAlignment, 16u); in getBaseAlignment()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/transform_feedback/
DvktTransformFeedbackFuzzLayoutCase.cpp531 int baseAlignment = 0; in computeInterfaceBlockAlignment() local
537 baseAlignment = std::max(baseAlignment, computeInterfaceBlockMemberAlignment(member.getType())); in computeInterfaceBlockAlignment()
540 return baseAlignment; in computeInterfaceBlockAlignment()
560 int baseAlignment = computeInterfaceBlockMemberAlignment(type); in computeXfbLayout() local
562 DE_ASSERT(baseAlignment == sizeof(deUint32) || baseAlignment == sizeof(deUint64)); in computeXfbLayout()
564 curOffset = deAlign32(curOffset, baseAlignment); in computeXfbLayout()
683 curOffset = deAlign32(curOffset, baseAlignment); in computeXfbLayout()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ssbo/
DvktSSBOLayoutCase.cpp477 …const int baseAlignment = (layoutFlags & LAYOUT_SCALAR) != 0 ? computeScalarBlockAlignment(type,… in computeReferenceLayout() local
481 int curOffset = deAlign32(baseOffset, baseAlignment); in computeReferenceLayout()
508 …nst int vecStride = (layoutFlags & LAYOUT_SCALAR) ? getDataTypeByteSize(vecType) : baseAlignment; in computeReferenceLayout()
538 …t stride = (layoutFlags & LAYOUT_SCALAR) ? getDataTypeByteSize(elemBasicType) : baseAlignment; in computeReferenceLayout()
565 … int vecStride = (layoutFlags & LAYOUT_SCALAR) ? getDataTypeByteSize(vecType) : baseAlignment; in computeReferenceLayout()
599 curOffset = deAlign32(curOffset, baseAlignment); in computeReferenceLayout()
618 …const int baseAlignment = (blockLayoutFlags & LAYOUT_SCALAR) != 0 ? computeScalarBlockAlignment… in computeReferenceLayout() local
622 int curOffset = deAlign32(baseOffset, baseAlignment); in computeReferenceLayout()
695 …const int size = computeReferenceLayout(layout, curBlockNdx, deAlign32(curOffset, baseAlignment), … in computeReferenceLayout()
696 const int stride = deAlign32(size, baseAlignment); in computeReferenceLayout()
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fSSBOLayoutCase.cpp469 const int baseAlignment = isStd140 ? computeStd140BaseAlignment(type, layoutFlags) in computeReferenceLayout() local
471 int curOffset = deAlign32(baseOffset, baseAlignment); in computeReferenceLayout()
497 entry.matrixStride = baseAlignment; in computeReferenceLayout()
500 curOffset += numVecs*baseAlignment; in computeReferenceLayout()
520 const int stride = baseAlignment; in computeReferenceLayout()
544 const int vecStride = baseAlignment; in computeReferenceLayout()
577 curOffset = deAlign32(curOffset, baseAlignment); in computeReferenceLayout()
596 const int baseAlignment = isStd140 ? computeStd140BaseAlignment(varType, combinedFlags) in computeReferenceLayout() local
598 int curOffset = deAlign32(baseOffset, baseAlignment); in computeReferenceLayout()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ubo/
DvktUniformBlockCase.cpp562 …const int baseAlignment = (layoutFlags & LAYOUT_SCALAR) != 0 ? computeScalarBlockAlignment(type,… in computeReferenceLayout() local
566 int curOffset = deAlign32(baseOffset, baseAlignment); in computeReferenceLayout()
593 …nst int vecStride = (layoutFlags & LAYOUT_SCALAR) ? getDataTypeByteSize(vecType) : baseAlignment; in computeReferenceLayout()
623 …t stride = (layoutFlags & LAYOUT_SCALAR) ? getDataTypeByteSize(elemBasicType) : baseAlignment; in computeReferenceLayout()
650 … int vecStride = (layoutFlags & LAYOUT_SCALAR) ? getDataTypeByteSize(vecType) : baseAlignment; in computeReferenceLayout()
684 curOffset = deAlign32(curOffset, baseAlignment); in computeReferenceLayout()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcUniformBlockCase.cpp436 int baseAlignment = computeStd140BaseAlignment(type); in computeStd140Layout() local
438 curOffset = deAlign32(curOffset, baseAlignment); in computeStd140Layout()
544 curOffset = deAlign32(curOffset, baseAlignment); in computeStd140Layout()
/third_party/vk-gl-cts/modules/glshared/
DglsUniformBlockCase.cpp463 int baseAlignment = computeStd140BaseAlignment(type); in computeStd140Layout() local
465 curOffset = deAlign32(curOffset, baseAlignment); in computeStd140Layout()
574 curOffset = deAlign32(curOffset, baseAlignment); in computeStd140Layout()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DOutputASM.cpp346 size_t baseAlignment = 0; in getBlockLayoutInfo() local
352 baseAlignment = ComponentsPerRegister; in getBlockLayoutInfo()
363 baseAlignment = ComponentsPerRegister; in getBlockLayoutInfo()
369 baseAlignment = (numComponents == 3 ? 4u : numComponents); in getBlockLayoutInfo()
372 mCurrentOffset = sw::align(mCurrentOffset, baseAlignment); in getBlockLayoutInfo()