/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | TextureCopySplitter.cpp | 24 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() argument 61 ASSERT(bytesPerRow % blockInfo.byteSize == 0); in Compute2DTextureCopySubresource() 105 blockInfo, static_cast<uint32_t>(offset - alignedOffset), bytesPerRow); in Compute2DTextureCopySubresource() 107 ASSERT(texelOffset.y <= blockInfo.height); in Compute2DTextureCopySubresource() [all …]
|
D | UtilsD3D12.cpp | 189 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()
|
D | TextureCopySplitter.h | 78 const TexelBlockInfo& blockInfo, 84 const TexelBlockInfo& blockInfo, 91 const TexelBlockInfo& blockInfo,
|
D | TextureD3D12.cpp | 1089 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()
|
D | CommandBufferD3D12.cpp | 193 const TexelBlockInfo& blockInfo = format.GetAspectInfo(srcCopy.aspect).block; in RecordCopyTextureWithTemporaryBuffer() local 194 ASSERT(copySize.width % blockInfo.width == 0); in RecordCopyTextureWithTemporaryBuffer() 195 uint32_t widthInBlocks = copySize.width / blockInfo.width; in RecordCopyTextureWithTemporaryBuffer() 196 ASSERT(copySize.height % blockInfo.height == 0); in RecordCopyTextureWithTemporaryBuffer() 197 uint32_t heightInBlocks = copySize.height / blockInfo.height; in RecordCopyTextureWithTemporaryBuffer() 201 Align(blockInfo.byteSize * widthInBlocks, kTextureBytesPerRowAlignment); in RecordCopyTextureWithTemporaryBuffer() 207 ComputeRequiredBytesInCopy(blockInfo, copySize, bytesPerRow, rowsPerImage); in RecordCopyTextureWithTemporaryBuffer()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | CommandValidation.cpp | 113 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() argument 178 ASSERT(copyExtent.height % blockInfo.height == 0); in ApplyDefaultTextureDataLayoutOptions() 179 uint32_t heightInBlocks = copyExtent.height / blockInfo.height; in ApplyDefaultTextureDataLayoutOptions() 182 ASSERT(copyExtent.width % blockInfo.width == 0); in ApplyDefaultTextureDataLayoutOptions() [all …]
|
D | Queue.cpp | 84 const TexelBlockInfo& blockInfo, in UploadTextureDataAligningBytesPerRowAndOffset() argument 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.height == 0); in WriteTextureImpl() [all …]
|
D | Texture.cpp | 216 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.height - 1) / blockInfo.height * blockInfo.height; in GetMipLevelPhysicalSize()
|
D | CommandBuffer.cpp | 188 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()
|
D | CommandValidation.h | 39 ResultOrError<uint64_t> ComputeRequiredBytesInCopy(const TexelBlockInfo& blockInfo, 45 const TexelBlockInfo& blockInfo, 49 const TexelBlockInfo& blockInfo,
|
D | CommandEncoder.cpp | 69 const TexelBlockInfo& blockInfo, in ValidateLinearTextureCopyOffset() argument 77 DAWN_INVALID_IF(layout.offset % blockInfo.byteSize != 0, in ValidateLinearTextureCopyOffset() 79 layout.offset, blockInfo.byteSize); in ValidateLinearTextureCopyOffset() 717 const TexelBlockInfo& blockInfo = in APICopyBufferToTexture() local 721 source->layout, blockInfo, in APICopyBufferToTexture() 724 blockInfo, *copySize)); in APICopyBufferToTexture() 731 ApplyDefaultTextureDataLayoutOptions(&srcLayout, blockInfo, *copySize); in APICopyBufferToTexture() 776 const TexelBlockInfo& blockInfo = in APICopyTextureToBuffer() local 780 destination->layout, blockInfo, in APICopyTextureToBuffer() 783 destination->layout, destination->buffer->GetSize(), blockInfo, *copySize)); in APICopyTextureToBuffer() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
D | Uniform.cpp | 43 : 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()
|
D | Uniform.h | 59 const sh::BlockMemberInfo &blockInfo); 77 sh::BlockMemberInfo blockInfo; member 89 const sh::BlockMemberInfo &blockInfo); 93 sh::BlockMemberInfo blockInfo; member
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/ |
D | UtilsMetal.mm | 59 const TexelBlockInfo& blockInfo = textureFormat.GetAspectInfo(aspect).block; 121 uint32_t copyBlockRowCount = copyExtent.height / blockInfo.height; 129 ASSERT(copyExtent.height - blockInfo.height < 132 copyExtent.height - blockInfo.height, 1}; 142 uint32_t lastRowDataSize = (copyExtent.width / blockInfo.width) * blockInfo.byteSize; 144 blockInfo.height + clampedCopyExtent.height - copyExtent.height; 145 ASSERT(lastRowCopyExtentHeight <= blockInfo.height); 151 origin.y + copyExtent.height - blockInfo.height,
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | TextureGL.cpp | 339 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()
|
D | CommandBufferGL.cpp | 715 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.byteSize); in DoTexSubImage() 1396 gl.PixelStorei(GL_UNPACK_COMPRESSED_BLOCK_WIDTH, blockInfo.width); in DoTexSubImage() 1397 gl.PixelStorei(GL_UNPACK_COMPRESSED_BLOCK_HEIGHT, blockInfo.height); in DoTexSubImage() [all …]
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | UtilsVulkan.cpp | 124 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()
|
D | CommandBufferVk.cpp | 448 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()
|
D | TextureVk.cpp | 1149 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()
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fBasicComputeShaderTests.cpp | 177 …const InterfaceBlockInfo blockInfo = getProgramInterfaceBlockInfo(gl, program.getProgram(), GL_UNI… 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_SHA… in iterate() local 304 …gl.bufferData(GL_SHADER_STORAGE_BUFFER, (glw::GLsizeiptr)blockInfo.dataSize, DE_NULL, GL_STATIC_DR… in iterate() 309 …const BufferMemMap bufMap(gl, GL_SHADER_STORAGE_BUFFER, 0, (int)blockInfo.dataSize, GL_MAP_WRITE_B… in iterate() 315 gl.bindBufferBase(GL_SHADER_STORAGE_BUFFER, blockInfo.bufferBinding, *inputBuffer); in iterate() 322 …const InterfaceBlockInfo blockInfo = getProgramInterfaceBlockInfo(gl, program.getProgram(), GL_SHA… 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.bufferBinding, *outputBuffer); in iterate() [all …]
|
D | es31fShaderAtomicOpTests.cpp | 196 …const InterfaceBlockInfo blockInfo = getProgramInterfaceBlockInfo(gl, program, GL_SHADER_STORAGE_… 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_R… in iterate() 998 …const InterfaceBlockInfo blockInfo = getProgramInterfaceBlockInfo(gl, program, GL_SHADER_STORAGE_… in iterate() local 1021 vector<deUint8> bufData (blockInfo.dataSize); in iterate() 1032 gl.bufferData(GL_SHADER_STORAGE_BUFFER, blockInfo.dataSize, &bufData[0], GL_STATIC_READ); in iterate() 1041 …const void* resPtr = gl.mapBufferRange(GL_SHADER_STORAGE_BUFFER, 0, blockInfo.dataSize, GL_MAP_… in iterate()
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/ |
D | Program.cpp | 49 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 …defineUniform(GLenum shader, const glsl::Uniform &glslUniform, const Uniform::BlockInfo& blockInfo) in defineUniform() argument 1850 uniform = new Uniform(glslUniform, blockInfo); in defineUniform() [all …]
|
D | Program.h | 52 Uniform(const glsl::Uniform &uniform, const BlockInfo &blockInfo); 64 const BlockInfo blockInfo; member 240 …ol defineUniform(GLenum shader, const glsl::Uniform &uniform, const Uniform::BlockInfo& blockInfo);
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | ProgramVk.cpp | 183 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/ |
D | lz4io.c | 1457 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()
|