/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | UtilsVulkan.cpp | 87 Extent3D ComputeTextureCopyExtent(const TextureCopy& textureCopy, const Extent3D& copySize) { in ComputeTextureCopyExtent() argument 89 const TextureBase* texture = textureCopy.texture.Get(); in ComputeTextureCopyExtent() 90 Extent3D virtualSizeAtLevel = texture->GetMipLevelVirtualSize(textureCopy.mipLevel); in ComputeTextureCopyExtent() 91 ASSERT(textureCopy.origin.x <= virtualSizeAtLevel.width); in ComputeTextureCopyExtent() 92 ASSERT(textureCopy.origin.y <= virtualSizeAtLevel.height); in ComputeTextureCopyExtent() 93 if (copySize.width > virtualSizeAtLevel.width - textureCopy.origin.x) { in ComputeTextureCopyExtent() 95 validTextureCopyExtent.width = virtualSizeAtLevel.width - textureCopy.origin.x; in ComputeTextureCopyExtent() 97 if (copySize.height > virtualSizeAtLevel.height - textureCopy.origin.y) { in ComputeTextureCopyExtent() 99 validTextureCopyExtent.height = virtualSizeAtLevel.height - textureCopy.origin.y; in ComputeTextureCopyExtent() 106 const TextureCopy& textureCopy, in ComputeBufferImageCopyRegion() argument [all …]
|
D | UtilsVulkan.h | 100 Extent3D ComputeTextureCopyExtent(const TextureCopy& textureCopy, const Extent3D& copySize); 103 const TextureCopy& textureCopy, 106 const TextureCopy& textureCopy,
|
D | TextureVk.cpp | 1183 TextureCopy textureCopy; in ClearTexture() local 1184 textureCopy.aspect = range.aspects; in ClearTexture() 1185 textureCopy.mipLevel = level; in ClearTexture() 1186 textureCopy.origin = {0, 0, layer}; in ClearTexture() 1187 textureCopy.texture = this; in ClearTexture() 1190 ComputeBufferImageCopyRegion(dataLayout, textureCopy, copySize)); in ClearTexture()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | UtilsD3D12.cpp | 179 const TextureCopy& textureCopy, in CopyBufferTo2DTextureWithCopySplit() argument 191 textureCopy.origin, copySize, blockInfo, offset, bytesPerRow, rowsPerImage); in CopyBufferTo2DTextureWithCopySplit() 211 const uint32_t copyTextureLayer = copyLayer + textureCopy.origin.z; in CopyBufferTo2DTextureWithCopySplit() 215 bufferOffsetForNextLayer, bytesPerRow, texture, textureCopy.mipLevel, in CopyBufferTo2DTextureWithCopySplit() 224 const TextureCopy& textureCopy, in CopyBufferTo3DTexture() argument 236 textureCopy.origin, copySize, blockInfo, offset, bytesPerRow, rowsPerImage); in CopyBufferTo3DTexture() 240 textureCopy.mipLevel, 0, aspect); in CopyBufferTo3DTexture() 244 const TextureCopy& textureCopy, in RecordCopyBufferToTexture() argument 255 CopyBufferTo3DTexture(commandContext, textureCopy, bufferResource, offset, bytesPerRow, in RecordCopyBufferToTexture() 260 CopyBufferTo2DTextureWithCopySplit(commandContext, textureCopy, bufferResource, offset, in RecordCopyBufferToTexture() [all …]
|
D | UtilsD3D12.h | 58 const TextureCopy& textureCopy, 78 const TextureCopy& textureCopy,
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | CommandValidation.cpp | 266 const ImageCopyTexture& textureCopy, in ValidateImageCopyTexture() argument 268 const TextureBase* texture = textureCopy.texture; in ValidateImageCopyTexture() 270 DAWN_INVALID_IF(textureCopy.mipLevel >= texture->GetNumMipLevels(), in ValidateImageCopyTexture() 272 textureCopy.mipLevel, texture->GetNumMipLevels(), texture); in ValidateImageCopyTexture() 274 DAWN_TRY(ValidateTextureAspect(textureCopy.aspect)); in ValidateImageCopyTexture() 276 SelectFormatAspects(texture->GetFormat(), textureCopy.aspect) == Aspect::None, in ValidateImageCopyTexture() 278 texture->GetFormat().format, textureCopy.aspect); in ValidateImageCopyTexture() 281 Extent3D subresourceSize = texture->GetMipLevelPhysicalSize(textureCopy.mipLevel); in ValidateImageCopyTexture() 284 textureCopy.origin.x != 0 || textureCopy.origin.y != 0 || in ValidateImageCopyTexture() 290 &textureCopy.origin, ©Size, &subresourceSize, texture, in ValidateImageCopyTexture() [all …]
|
D | Queue.cpp | 353 TextureCopy textureCopy; in WriteTextureImpl() local 354 textureCopy.texture = destination.texture; in WriteTextureImpl() 355 textureCopy.mipLevel = destination.mipLevel; in WriteTextureImpl() 356 textureCopy.origin = destination.origin; in WriteTextureImpl() 357 textureCopy.aspect = ConvertAspect(format, destination.aspect); in WriteTextureImpl() 364 &textureCopy, writeSizePixel); in WriteTextureImpl()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | QueueGL.cpp | 62 TextureCopy textureCopy; in WriteTextureImpl() local 63 textureCopy.texture = destination.texture; in WriteTextureImpl() 64 textureCopy.mipLevel = destination.mipLevel; in WriteTextureImpl() 65 textureCopy.origin = destination.origin; in WriteTextureImpl() 66 textureCopy.aspect = in WriteTextureImpl() 69 SubresourceRange range = GetSubresourcesAffectedByCopy(textureCopy, writeSizePixel); in WriteTextureImpl() 76 DoTexSubImage(ToBackend(GetDevice())->gl, textureCopy, data, dataLayout, writeSizePixel); in WriteTextureImpl()
|
D | TextureGL.cpp | 487 TextureCopy textureCopy; in ClearTexture() local 488 textureCopy.texture = this; in ClearTexture() 489 textureCopy.mipLevel = level; in ClearTexture() 490 textureCopy.origin = {}; in ClearTexture() 491 textureCopy.aspect = Aspect::Color; in ClearTexture() 509 textureCopy.origin.z = layer; in ClearTexture() 510 DoTexSubImage(ToBackend(GetDevice())->gl, textureCopy, 0, dataLayout, mipSize); in ClearTexture()
|
D | CommandBufferGL.cpp | 455 Extent3D ComputeTextureCopyExtent(const TextureCopy& textureCopy, in ComputeTextureCopyExtent() argument 458 const TextureBase* texture = textureCopy.texture.Get(); in ComputeTextureCopyExtent() 459 Extent3D virtualSizeAtLevel = texture->GetMipLevelVirtualSize(textureCopy.mipLevel); in ComputeTextureCopyExtent() 460 ASSERT(textureCopy.origin.x <= virtualSizeAtLevel.width); in ComputeTextureCopyExtent() 461 ASSERT(textureCopy.origin.y <= virtualSizeAtLevel.height); in ComputeTextureCopyExtent() 462 if (copySize.width > virtualSizeAtLevel.width - textureCopy.origin.x) { in ComputeTextureCopyExtent() 464 validTextureCopyExtent.width = virtualSizeAtLevel.width - textureCopy.origin.x; in ComputeTextureCopyExtent() 466 if (copySize.height > virtualSizeAtLevel.height - textureCopy.origin.y) { in ComputeTextureCopyExtent() 468 validTextureCopyExtent.height = virtualSizeAtLevel.height - textureCopy.origin.y; in ComputeTextureCopyExtent()
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | CommandBufferVk.cpp | 49 Extent3D ComputeTextureCopyExtent(const TextureCopy& textureCopy, in ComputeTextureCopyExtent() argument 52 const TextureBase* texture = textureCopy.texture.Get(); in ComputeTextureCopyExtent() 53 Extent3D virtualSizeAtLevel = texture->GetMipLevelVirtualSize(textureCopy.mipLevel); in ComputeTextureCopyExtent() 54 if (textureCopy.origin.x + copySize.width > virtualSizeAtLevel.width) { in ComputeTextureCopyExtent() 56 validTextureCopyExtent.width = virtualSizeAtLevel.width - textureCopy.origin.x; in ComputeTextureCopyExtent() 58 if (textureCopy.origin.y + copySize.height > virtualSizeAtLevel.height) { in ComputeTextureCopyExtent() 60 validTextureCopyExtent.height = virtualSizeAtLevel.height - textureCopy.origin.y; in ComputeTextureCopyExtent() 67 const TextureCopy& textureCopy, in ComputeBufferImageCopyRegion() argument 69 const Texture* texture = ToBackend(textureCopy.texture.Get()); in ComputeBufferImageCopyRegion() 81 region.imageSubresource.mipLevel = textureCopy.mipLevel; in ComputeBufferImageCopyRegion() [all …]
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/ |
D | CommandEncoder.cpp | 35 MaybeError ValidateCopySizeFitsInTexture(const TextureCopy& textureCopy, in ValidateCopySizeFitsInTexture() argument 37 const TextureBase* texture = textureCopy.texture.Get(); in ValidateCopySizeFitsInTexture() 38 if (textureCopy.mipLevel >= texture->GetNumMipLevels()) { in ValidateCopySizeFitsInTexture() 42 if (textureCopy.arrayLayer >= texture->GetArrayLayers()) { in ValidateCopySizeFitsInTexture() 46 Extent3D extent = texture->GetMipLevelPhysicalSize(textureCopy.mipLevel); in ValidateCopySizeFitsInTexture() 50 if (uint64_t(textureCopy.origin.x) + uint64_t(copySize.width) > in ValidateCopySizeFitsInTexture() 52 uint64_t(textureCopy.origin.y) + uint64_t(copySize.height) > in ValidateCopySizeFitsInTexture() 59 if (textureCopy.origin.z != 0 || copySize.depth > 1) { in ValidateCopySizeFitsInTexture()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineImageSamplingInstance.cpp | 1500 de::MovePtr<TestTexture> textureCopy; in verifyImage() local 1525 textureCopy = m_texture->copy(tcu::TextureFormat(tcu::TextureFormat::D, depthChannelType)); in verifyImage() 1526 texture = textureCopy.get(); in verifyImage()
|