Home
last modified time | relevance | path

Searched refs:blockInfo (Results 1 - 25 of 31) sorted by relevance

12

/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
H A DTextureCopySplitter.cpp24 Origin3D ComputeTexelOffsets(const TexelBlockInfo& blockInfo, in ComputeTexelOffsets() argument
31 return {byteOffsetX / blockInfo.byteSize * blockInfo.width, in ComputeTexelOffsets()
32 byteOffsetY / bytesPerRow * blockInfo.height, 0}; in ComputeTexelOffsets()
35 uint64_t OffsetToFirstCopiedTexel(const TexelBlockInfo& blockInfo, in OffsetToFirstCopiedTexel() argument
40 return alignedOffset + bufferOffset.x * blockInfo.byteSize / blockInfo.width + in OffsetToFirstCopiedTexel()
41 bufferOffset.y * bytesPerRow / blockInfo.height; in OffsetToFirstCopiedTexel()
56 const TexelBlockInfo& blockInfo, in Compute2DTextureCopySubresource()
61 ASSERT(bytesPerRow % blockInfo in Compute2DTextureCopySubresource()
54 Compute2DTextureCopySubresource(Origin3D origin, Extent3D copySize, const TexelBlockInfo& blockInfo, uint64_t offset, uint32_t bytesPerRow) Compute2DTextureCopySubresource() argument
[all...]
H A DTextureCopySplitter.h66 // blockInfo.height, 3) its buffer offset on z-axis should be 0.
78 const TexelBlockInfo& blockInfo,
84 const TexelBlockInfo& blockInfo,
91 const TexelBlockInfo& blockInfo,
H A DUtilsD3D12.cpp189 const TexelBlockInfo& blockInfo = texture->GetFormat().GetAspectInfo(aspect).block; in CopyBufferTo2DTextureWithCopySplit() local
191 textureCopy.origin, copySize, blockInfo, offset, bytesPerRow, rowsPerImage); in CopyBufferTo2DTextureWithCopySplit()
234 const TexelBlockInfo& blockInfo = texture->GetFormat().GetAspectInfo(aspect).block; in CopyBufferTo3DTexture() local
236 textureCopy.origin, copySize, blockInfo, offset, bytesPerRow, rowsPerImage); in CopyBufferTo3DTexture()
304 const TexelBlockInfo& blockInfo = in Copy2DTextureToBufferWithCopySplit() local
309 Compute2DTextureCopySplits(textureCopy.origin, copySize, blockInfo, bufferCopy.offset, in Copy2DTextureToBufferWithCopySplit()
348 const TexelBlockInfo& blockInfo = in Copy3DTextureToBuffer() local
353 Compute3DTextureCopySplits(textureCopy.origin, copySize, blockInfo, bufferCopy.offset, in Copy3DTextureToBuffer()
H A DTextureD3D12.cpp1089 const TexelBlockInfo& blockInfo = GetFormat().GetAspectInfo(aspect).block; in ClearTexture() local
1094 Align((largestMipSize.width / blockInfo.width) * blockInfo.byteSize, in ClearTexture()
1096 uint64_t bufferSize = bytesPerRow * (largestMipSize.height / blockInfo.height) * in ClearTexture()
1102 blockInfo.byteSize)); in ClearTexture()
1111 {0, 0, 0}, copySize, blockInfo, uploadHandle.startOffset, bytesPerRow); in ClearTexture()
H A DCommandBufferD3D12.cpp193 const TexelBlockInfo& blockInfo = format.GetAspectInfo(srcCopy.aspect).block; local
194 ASSERT(copySize.width % blockInfo.width == 0);
195 uint32_t widthInBlocks = copySize.width / blockInfo.width;
196 ASSERT(copySize.height % blockInfo.height == 0);
197 uint32_t heightInBlocks = copySize.height / blockInfo.height;
201 Align(blockInfo.byteSize * widthInBlocks, kTextureBytesPerRowAlignment);
207 ComputeRequiredBytesInCopy(blockInfo, copySize, bytesPerRow, rowsPerImage);
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DCommandValidation.cpp113 ResultOrError<uint64_t> ComputeRequiredBytesInCopy(const TexelBlockInfo& blockInfo, in ComputeRequiredBytesInCopy() argument
117 ASSERT(copySize.width % blockInfo.width == 0); in ComputeRequiredBytesInCopy()
118 ASSERT(copySize.height % blockInfo.height == 0); in ComputeRequiredBytesInCopy()
119 uint32_t widthInBlocks = copySize.width / blockInfo.width; in ComputeRequiredBytesInCopy()
120 uint32_t heightInBlocks = copySize.height / blockInfo.height; in ComputeRequiredBytesInCopy()
121 uint64_t bytesInLastRow = Safe32x32(widthInBlocks, blockInfo.byteSize); in ComputeRequiredBytesInCopy()
175 const TexelBlockInfo& blockInfo, in ApplyDefaultTextureDataLayoutOptions()
178 ASSERT(copyExtent.height % blockInfo.height == 0); in ApplyDefaultTextureDataLayoutOptions()
179 uint32_t heightInBlocks = copyExtent.height / blockInfo.height; in ApplyDefaultTextureDataLayoutOptions()
182 ASSERT(copyExtent.width % blockInfo in ApplyDefaultTextureDataLayoutOptions()
174 ApplyDefaultTextureDataLayoutOptions(TextureDataLayout* layout, const TexelBlockInfo& blockInfo, const Extent3D& copyExtent) ApplyDefaultTextureDataLayoutOptions() argument
195 ValidateLinearTextureData(const TextureDataLayout& layout, uint64_t byteSize, const TexelBlockInfo& blockInfo, const Extent3D& copyExtent) ValidateLinearTextureData() argument
329 const TexelBlockInfo& blockInfo = format.GetAspectInfo(textureCopy.aspect).block; ValidateTextureCopyRange() local
[all...]
H A DQueue.cpp84 const TexelBlockInfo& blockInfo, in UploadTextureDataAligningBytesPerRowAndOffset()
89 ComputeRequiredBytesInCopy(blockInfo, writeSizePixel, optimallyAlignedBytesPerRow, in UploadTextureDataAligningBytesPerRowAndOffset()
95 ASSERT(IsPowerOfTwo(blockInfo.byteSize)); in UploadTextureDataAligningBytesPerRowAndOffset()
99 std::max(optimalOffsetAlignment, uint64_t(blockInfo.byteSize)); in UploadTextureDataAligningBytesPerRowAndOffset()
120 dataRowsPerImage = writeSizePixel.height / blockInfo.height; in UploadTextureDataAligningBytesPerRowAndOffset()
315 const TexelBlockInfo& blockInfo = in WriteTextureInternal() local
318 ApplyDefaultTextureDataLayoutOptions(&layout, blockInfo, *writeSize); in WriteTextureInternal()
327 const TexelBlockInfo& blockInfo = format.GetAspectInfo(destination.aspect).block; in WriteTextureImpl() local
332 ASSERT(writeSizePixel.width % blockInfo.width == 0); in WriteTextureImpl()
333 ASSERT(writeSizePixel.height % blockInfo in WriteTextureImpl()
76 UploadTextureDataAligningBytesPerRowAndOffset( DeviceBase* device, const void* data, uint32_t alignedBytesPerRow, uint32_t optimallyAlignedBytesPerRow, uint32_t alignedRowsPerImage, const TextureDataLayout& dataLayout, bool hasDepthOrStencil, const TexelBlockInfo& blockInfo, const Extent3D& writeSizePixel) UploadTextureDataAligningBytesPerRowAndOffset() argument
483 const TexelBlockInfo& blockInfo = ValidateWriteTexture() local
[all...]
H A DCommandValidation.h39 ResultOrError<uint64_t> ComputeRequiredBytesInCopy(const TexelBlockInfo& blockInfo,
45 const TexelBlockInfo& blockInfo,
49 const TexelBlockInfo& blockInfo,
H A DTexture.cpp216 const TexelBlockInfo& blockInfo = in ValidateTextureSize() local
219 descriptor->size.width % blockInfo.width != 0 || in ValidateTextureSize()
220 descriptor->size.height % blockInfo.height != 0, in ValidateTextureSize()
223 &descriptor->size, blockInfo.width, blockInfo.height, format->format); in ValidateTextureSize()
643 const TexelBlockInfo& blockInfo = mFormat.GetAspectInfo(wgpu::TextureAspect::All).block; in GetMipLevelPhysicalSize() local
644 extent.width = (extent.width + blockInfo.width - 1) / blockInfo.width * blockInfo.width; in GetMipLevelPhysicalSize()
646 (extent.height + blockInfo in GetMipLevelPhysicalSize()
[all...]
H A DCommandBuffer.cpp188 const TexelBlockInfo& blockInfo = in IsFullBufferOverwrittenInTextureToBufferCopy() local
190 const uint64_t widthInBlocks = copy->copySize.width / blockInfo.width; in IsFullBufferOverwrittenInTextureToBufferCopy()
191 const uint64_t heightInBlocks = copy->copySize.height / blockInfo.height; in IsFullBufferOverwrittenInTextureToBufferCopy()
200 const uint64_t copyTextureDataSizePerRow = widthInBlocks * blockInfo.byteSize; in IsFullBufferOverwrittenInTextureToBufferCopy()
209 ComputeRequiredBytesInCopy(blockInfo, copy->copySize, copy->destination.bytesPerRow, in IsFullBufferOverwrittenInTextureToBufferCopy()
H A DCommandEncoder.cpp69 const TexelBlockInfo& blockInfo, in ValidateLinearTextureCopyOffset()
77 DAWN_INVALID_IF(layout.offset % blockInfo.byteSize != 0, in ValidateLinearTextureCopyOffset()
79 layout.offset, blockInfo.byteSize); in ValidateLinearTextureCopyOffset()
717 const TexelBlockInfo& blockInfo = in APICopyBufferToTexture()
721 source->layout, blockInfo, in APICopyBufferToTexture()
724 blockInfo, *copySize)); in APICopyBufferToTexture()
731 ApplyDefaultTextureDataLayoutOptions(&srcLayout, blockInfo, *copySize); in APICopyBufferToTexture()
776 const TexelBlockInfo& blockInfo = in APICopyTextureToBuffer()
780 destination->layout, blockInfo, in APICopyTextureToBuffer()
783 destination->layout, destination->buffer->GetSize(), blockInfo, *copySiz in APICopyTextureToBuffer()
68 ValidateLinearTextureCopyOffset(const TextureDataLayout& layout, const TexelBlockInfo& blockInfo, const bool hasDepthOrStencil) ValidateLinearTextureCopyOffset() argument
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DUniform.cpp43 : typeInfo(nullptr), bufferIndex(-1), blockInfo(sh::kDefaultBlockMemberInfo) in LinkedUniform()
55 : typeInfo(&GetUniformTypeInfo(typeIn)), bufferIndex(bufferIndexIn), blockInfo(blockInfoIn) in LinkedUniform()
72 blockInfo(sh::kDefaultBlockMemberInfo) in LinkedUniform()
83 blockInfo(uniform.blockInfo), in LinkedUniform()
93 blockInfo = uniform.blockInfo; in operator =()
101 : bufferIndex(-1), blockInfo(sh::kDefaultBlockMemberInfo), topLevelArraySize(-1) in BufferVariable()
110 : bufferIndex(bufferIndexIn), blockInfo(blockInfoIn), topLevelArraySize(-1) in BufferVariable()
H A DUniform.h59 const sh::BlockMemberInfo &blockInfo);
77 sh::BlockMemberInfo blockInfo; member
89 const sh::BlockMemberInfo &blockInfo);
93 sh::BlockMemberInfo blockInfo; member
H A Dqueryutils.cpp1889 return uniform.blockInfo.offset; in GetUniformResourceProperty()
1892 return uniform.blockInfo.arrayStride; in GetUniformResourceProperty()
1895 return uniform.blockInfo.matrixStride; in GetUniformResourceProperty()
1898 return static_cast<GLint>(uniform.blockInfo.isRowMajorMatrix); in GetUniformResourceProperty()
1941 return bufferVariable.blockInfo.offset; in GetBufferVariableResourceProperty()
1944 return bufferVariable.blockInfo.arrayStride; in GetBufferVariableResourceProperty()
1947 return bufferVariable.blockInfo.matrixStride; in GetBufferVariableResourceProperty()
1950 return static_cast<GLint>(bufferVariable.blockInfo.isRowMajorMatrix); in GetBufferVariableResourceProperty()
1974 return bufferVariable.blockInfo.topLevelArrayStride; in GetBufferVariableResourceProperty()
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
H A DTextureGL.cpp339 const TexelBlockInfo& blockInfo = GetFormat().GetAspectInfo(Aspect::Color).block; in ClearTexture() local
340 ASSERT(blockInfo.byteSize <= MAX_TEXEL_SIZE); in ClearTexture()
451 const TexelBlockInfo& blockInfo = GetFormat().GetAspectInfo(Aspect::Color).block; in ClearTexture() local
452 ASSERT(kTextureBytesPerRowAlignment % blockInfo.byteSize == 0); in ClearTexture()
456 Align((largestMipSize.width / blockInfo.width) * blockInfo.byteSize, 4); in ClearTexture()
459 ASSERT(bytesPerRow % blockInfo.byteSize == 0); in ClearTexture()
460 ASSERT(largestMipSize.height % blockInfo.height == 0); in ClearTexture()
463 (largestMipSize.height / blockInfo.height) * in ClearTexture()
H A DCommandBufferGL.cpp715 const TexelBlockInfo& blockInfo = formatInfo.GetAspectInfo(src.aspect).block; in Execute() local
718 gl.PixelStorei(GL_PACK_ROW_LENGTH, dst.bytesPerRow / blockInfo.byteSize); in Execute()
1370 const TexelBlockInfo& blockInfo = in DoTexSubImage() local
1377 size_t rowSize = copySize.width / blockInfo.width * blockInfo.byteSize; in DoTexSubImage()
1387 if (dataLayout.bytesPerRow % blockInfo.byteSize == 0 && gl.GetVersion().IsDesktop()) { in DoTexSubImage()
1389 rowSize * (copySize.height / blockInfo.height) * copySize.depthOrArrayLayers; in DoTexSubImage()
1394 dataLayout.bytesPerRow / blockInfo.byteSize * blockInfo.width); in DoTexSubImage()
1395 gl.PixelStorei(GL_UNPACK_COMPRESSED_BLOCK_SIZE, blockInfo in DoTexSubImage()
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
H A DUtilsVulkan.cpp124 const TexelBlockInfo& blockInfo = in ComputeBufferImageCopyRegion() local
126 ASSERT(dataLayout.bytesPerRow % blockInfo.byteSize == 0); in ComputeBufferImageCopyRegion()
127 region.bufferRowLength = dataLayout.bytesPerRow / blockInfo.byteSize * blockInfo.width; in ComputeBufferImageCopyRegion()
128 region.bufferImageHeight = dataLayout.rowsPerImage * blockInfo.height; in ComputeBufferImageCopyRegion()
H A DTextureVk.cpp1149 const TexelBlockInfo& blockInfo = GetFormat().GetAspectInfo(range.aspects).block; in ClearTexture() local
1154 Align((largestMipSize.width / blockInfo.width) * blockInfo.byteSize, in ClearTexture()
1156 uint64_t bufferSize = bytesPerRow * (largestMipSize.height / blockInfo.height) * in ClearTexture()
1162 blockInfo.byteSize)); in ClearTexture()
1181 dataLayout.rowsPerImage = copySize.height / blockInfo.height; in ClearTexture()
H A DCommandBufferVk.cpp448 const TexelBlockInfo& blockInfo = format.GetAspectInfo(srcCopy.aspect).block; in RecordCopyImageWithTemporaryBuffer() local
449 ASSERT(copySize.width % blockInfo.width == 0); in RecordCopyImageWithTemporaryBuffer()
450 uint32_t widthInBlocks = copySize.width / blockInfo.width; in RecordCopyImageWithTemporaryBuffer()
451 ASSERT(copySize.height % blockInfo.height == 0); in RecordCopyImageWithTemporaryBuffer()
452 uint32_t heightInBlocks = copySize.height / blockInfo.height; in RecordCopyImageWithTemporaryBuffer()
457 widthInBlocks * heightInBlocks * copySize.depthOrArrayLayers * blockInfo.byteSize; in RecordCopyImageWithTemporaryBuffer()
471 tempBufferCopy.bytesPerRow = copySize.width / blockInfo.width * blockInfo.byteSize; in RecordCopyImageWithTemporaryBuffer()
/third_party/vk-gl-cts/modules/gles31/functional/
H A Des31fBasicComputeShaderTests.cpp177 const InterfaceBlockInfo blockInfo = getProgramInterfaceBlockInfo(gl, program.getProgram(), GL_UNIFORM_BLOCK, blockIndex); in iterate() local
182 gl.bufferData(GL_UNIFORM_BUFFER, (glw::GLsizeiptr)blockInfo.dataSize, DE_NULL, GL_STATIC_DRAW); in iterate()
185 const BufferMemMap bufMap(gl, GL_UNIFORM_BUFFER, 0, (int)blockInfo.dataSize, GL_MAP_WRITE_BIT); in iterate()
299 const InterfaceBlockInfo blockInfo = getProgramInterfaceBlockInfo(gl, program.getProgram(), GL_SHADER_STORAGE_BLOCK, blockIndex); in iterate() local
304 gl.bufferData(GL_SHADER_STORAGE_BUFFER, (glw::GLsizeiptr)blockInfo.dataSize, DE_NULL, GL_STATIC_DRAW); in iterate()
309 const BufferMemMap bufMap(gl, GL_SHADER_STORAGE_BUFFER, 0, (int)blockInfo.dataSize, GL_MAP_WRITE_BIT); in iterate()
315 gl.bindBufferBase(GL_SHADER_STORAGE_BUFFER, blockInfo.bufferBinding, *inputBuffer); in iterate()
322 const InterfaceBlockInfo blockInfo = getProgramInterfaceBlockInfo(gl, program.getProgram(), GL_SHADER_STORAGE_BLOCK, blockIndex); in iterate() local
325 gl.bufferData(GL_SHADER_STORAGE_BUFFER, blockInfo.dataSize, DE_NULL, GL_STREAM_READ); in iterate()
326 gl.bindBufferBase(GL_SHADER_STORAGE_BUFFER, blockInfo in iterate()
[all...]
H A Des31fShaderAtomicOpTests.cpp196 const InterfaceBlockInfo blockInfo = getProgramInterfaceBlockInfo(gl, program, GL_SHADER_STORAGE_BLOCK, blockNdx); in iterate() local
213 vector<deUint8> bufData(blockInfo.dataSize); in iterate()
225 gl.bufferData(GL_SHADER_STORAGE_BUFFER, blockInfo.dataSize, &bufData[0], GL_STATIC_READ); in iterate()
234 const void* resPtr = gl.mapBufferRange(GL_SHADER_STORAGE_BUFFER, 0, blockInfo.dataSize, GL_MAP_READ_BIT); in iterate()
998 const InterfaceBlockInfo blockInfo = getProgramInterfaceBlockInfo(gl, program, GL_SHADER_STORAGE_BLOCK, blockNdx);
1021 vector<deUint8> bufData (blockInfo.dataSize);
1032 gl.bufferData(GL_SHADER_STORAGE_BUFFER, blockInfo.dataSize, &bufData[0], GL_STATIC_READ);
1041 const void* resPtr = gl.mapBufferRange(GL_SHADER_STORAGE_BUFFER, 0, blockInfo.dataSize, GL_MAP_READ_BIT);
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
H A DProgram.cpp49 offset = uniform.blockInfo.offset; in BlockInfo()
50 arrayStride = uniform.blockInfo.arrayStride; in BlockInfo()
51 matrixStride = uniform.blockInfo.matrixStride; in BlockInfo()
52 isRowMajorMatrix = uniform.blockInfo.isRowMajorMatrix; in BlockInfo()
56 Uniform::Uniform(const glsl::Uniform &uniform, const BlockInfo &blockInfo) in Uniform() argument
58 arraySize(uniform.arraySize), blockInfo(blockInfo), fields(uniform.fields) in Uniform()
60 if((blockInfo.index == -1) && uniform.fields.empty()) in Uniform()
1101 if(targetUniform->dirty && (targetUniform->blockInfo.index == -1)) in applyUniforms()
1759 bool Program::defineUniform(GLenum shader, const glsl::Uniform &glslUniform, const Uniform::BlockInfo& blockInfo) in defineUniform() argument
[all...]
H A DProgram.h52 Uniform(const glsl::Uniform &uniform, const BlockInfo &blockInfo);
64 const BlockInfo blockInfo; member
240 bool defineUniform(GLenum shader, const glsl::Uniform &uniform, const Uniform::BlockInfo& blockInfo);
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
H A DProgramVk.cpp183 sh::BlockMemberInfo blockInfo; in load() local
184 gl::LoadBlockMemberInfo(stream, &blockInfo); in load()
185 mDefaultUniformBlocks[shaderType].uniformLayout.push_back(blockInfo); in load()
218 sh::BlockMemberInfo &blockInfo = in save() local
220 gl::WriteBlockMemberInfo(stream, blockInfo); in save()
/third_party/lz4/programs/
H A Dlz4io.c1457 unsigned char blockInfo[LZ4F_BLOCK_HEADER_SIZE]; in LZ4IO_skipBlocksData() local
1460 if (!fread(blockInfo, 1, LZ4F_BLOCK_HEADER_SIZE, finput)) { in LZ4IO_skipBlocksData()
1465 { const unsigned long nextCBlockSize = LZ4IO_readLE32(&blockInfo) & 0x7FFFFFFFU; in LZ4IO_skipBlocksData()
1496 unsigned char blockInfo[LZ4IO_LEGACY_BLOCK_HEADER_SIZE]; in LZ4IO_skipLegacyBlocksData() local
1500 size_t const bhs = fread(blockInfo, 1, LZ4IO_LEGACY_BLOCK_HEADER_SIZE, finput); in LZ4IO_skipLegacyBlocksData()
1508 { const unsigned int nextCBlockSize = LZ4IO_readLE32(&blockInfo); in LZ4IO_skipLegacyBlocksData()

Completed in 35 milliseconds

12