/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
H A D | Subresource.cpp | 22 Aspect ConvertSingleAspect(const Format& format, wgpu::TextureAspect aspect) { in ConvertSingleAspect() argument 23 Aspect aspectMask = ConvertAspect(format, aspect); in ConvertSingleAspect() 28 Aspect ConvertAspect(const Format& format, wgpu::TextureAspect aspect) { in ConvertAspect() argument 29 Aspect aspectMask = SelectFormatAspects(format, aspect); in ConvertAspect() 34 Aspect ConvertViewAspect(const Format& format, wgpu::TextureAspect aspect) { in ConvertViewAspect() argument 35 // Color view |format| must be treated as the same plane |aspect|. in ConvertViewAspect() 37 switch (aspect) { in ConvertViewAspect() 46 return ConvertAspect(format, aspect); in ConvertViewAspect() 49 Aspect SelectFormatAspects(const Format& format, wgpu::TextureAspect aspect) { in SelectFormatAspects() argument 50 switch (aspect) { in SelectFormatAspects() 65 GetAspectIndex(Aspect aspect) GetAspectIndex() argument 118 MakeSingle(Aspect aspect, uint32_t baseArrayLayer, uint32_t baseMipLevel) MakeSingle() argument [all...] |
H A D | SubresourceStorage.h | 30 // SubresourceStorage<T> acts like a simple map from subresource (aspect, layer, level) to a 55 // SubresourceStorage internally tracks compression state per aspect and then per layer of each 56 // aspect. This means that a 2-aspect texture can have the following compression state: 66 // |-> Nodes 1 deep represent each aspect. If an aspect is compressed, its node doesn't have 86 // SubresourceStorage contains an inline array that contains the per-aspect compressed data 87 // and only allocates a per-subresource on aspect decompression. 121 const T& Get(Aspect aspect, uint32_t arrayLayer, uint32_t mipLevel) const; 175 bool IsAspectCompressedForTesting(Aspect aspect) cons 387 Get(Aspect aspect, uint32_t arrayLayer, uint32_t mipLevel) const Get() argument [all...] |
H A D | Subresource.h | 36 // An aspect for that represents the combination of both the depth and stencil aspects. It 46 // Convert the TextureAspect to an Aspect mask for the format. ASSERTs if the aspect 48 // Also ASSERTs if "All" is selected and results in more than one aspect. 49 Aspect ConvertSingleAspect(const Format& format, wgpu::TextureAspect aspect); 51 // Convert the TextureAspect to an Aspect mask for the format. ASSERTs if the aspect 53 Aspect ConvertAspect(const Format& format, wgpu::TextureAspect aspect); 58 Aspect SelectFormatAspects(const Format& format, wgpu::TextureAspect aspect); 60 // Convert TextureAspect to the aspect which corresponds to the view format. This 62 Aspect ConvertViewAspect(const Format& format, wgpu::TextureAspect aspect); 86 static SubresourceRange MakeSingle(Aspect aspect, [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/ |
H A D | vktDrawImageObjectUtil.cpp | 173 vk::VkImageAspectFlagBits aspect, in readSurface() 179 if (aspect == vk::VK_IMAGE_ASPECT_COLOR_BIT) in readSurface() 181 read(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, vk::VK_IMAGE_TYPE_2D, in readSurface() 184 if (aspect == vk::VK_IMAGE_ASPECT_DEPTH_BIT || aspect == vk::VK_IMAGE_ASPECT_STENCIL_BIT) in readSurface() 186 readUsingBuffer(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, m_pixelAccessData.data()); in readSurface() 197 vk::VkImageAspectFlagBits aspect, in readDepth() 201 DE_ASSERT(aspect == vk::VK_IMAGE_ASPECT_DEPTH_BIT); in readDepth() 206 readUsingBuffer(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, m_pixelAccessData.data()); in readDepth() 217 vk::VkImageAspectFlagBits aspect, in readVolume() 167 readSurface(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readSurface() argument 191 readDepth(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readDepth() argument 210 readVolume(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readVolume() argument 235 readSurface1D(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readSurface1D() argument 259 read(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, vk::VkImageType type, void * data) read() argument 280 readUsingBuffer(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, void * data) readUsingBuffer() argument 414 readSurfaceLinear(vk::VkOffset3D offset, int width, int height, int depth, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readSurfaceLinear() argument 427 readLinear(vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, void * data) readLinear() argument 526 uploadVolume(const tcu::ConstPixelBufferAccess& access, vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) uploadVolume() argument 548 uploadSurface(const tcu::ConstPixelBufferAccess& access, vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) uploadSurface() argument 570 uploadSurface1D(const tcu::ConstPixelBufferAccess& access, vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) uploadSurface1D() argument 592 uploadSurfaceLinear(const tcu::ConstPixelBufferAccess& access, vk::VkOffset3D offset, int width, int height, int depth, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) uploadSurfaceLinear() argument 604 upload(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, vk::VkImageType type, const void * data) upload() argument 682 uploadUsingBuffer(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, const void * data) uploadUsingBuffer() argument 776 uploadLinear(vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, const void * data) uploadLinear() argument [all...] |
H A D | vktDrawImageObjectUtil.hpp | 80 vk::VkImageAspectFlagBits aspect, 90 vk::VkImageAspectFlagBits aspect, 99 vk::VkImageAspectFlagBits aspect, 110 vk::VkImageAspectFlagBits aspect, 118 vk::VkImageAspectFlagBits aspect, 131 vk::VkImageAspectFlagBits aspect, 144 vk::VkImageAspectFlagBits aspect, 153 vk::VkImageAspectFlagBits aspect, 161 vk::VkImageAspectFlagBits aspect, 170 vk::VkImageAspectFlagBits aspect, [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/ |
H A D | vktDrawImageObjectUtil.cpp | 173 vk::VkImageAspectFlagBits aspect, in readSurface() 179 if (aspect == vk::VK_IMAGE_ASPECT_COLOR_BIT) in readSurface() 181 read(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, vk::VK_IMAGE_TYPE_2D, in readSurface() 184 if (aspect == vk::VK_IMAGE_ASPECT_DEPTH_BIT || aspect == vk::VK_IMAGE_ASPECT_STENCIL_BIT) in readSurface() 186 readUsingBuffer(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, m_pixelAccessData.data()); in readSurface() 197 vk::VkImageAspectFlagBits aspect, in readDepth() 201 DE_ASSERT(aspect == vk::VK_IMAGE_ASPECT_DEPTH_BIT); in readDepth() 206 readUsingBuffer(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, m_pixelAccessData.data()); in readDepth() 217 vk::VkImageAspectFlagBits aspect, in readVolume() 167 readSurface(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readSurface() argument 191 readDepth(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readDepth() argument 210 readVolume(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readVolume() argument 235 readSurface1D(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readSurface1D() argument 259 read(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, vk::VkImageType type, void * data) read() argument 280 readUsingBuffer(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, void * data) readUsingBuffer() argument 414 readSurfaceLinear(vk::VkOffset3D offset, int width, int height, int depth, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readSurfaceLinear() argument 427 readLinear(vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, void * data) readLinear() argument 526 uploadVolume(const tcu::ConstPixelBufferAccess& access, vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) uploadVolume() argument 548 uploadSurface(const tcu::ConstPixelBufferAccess& access, vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) uploadSurface() argument 570 uploadSurface1D(const tcu::ConstPixelBufferAccess& access, vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) uploadSurface1D() argument 592 uploadSurfaceLinear(const tcu::ConstPixelBufferAccess& access, vk::VkOffset3D offset, int width, int height, int depth, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) uploadSurfaceLinear() argument 604 upload(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, vk::VkImageType type, const void * data) upload() argument 682 uploadUsingBuffer(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, const void * data) uploadUsingBuffer() argument 776 uploadLinear(vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, const void * data) uploadLinear() argument [all...] |
H A D | vktDrawImageObjectUtil.hpp | 80 vk::VkImageAspectFlagBits aspect, 90 vk::VkImageAspectFlagBits aspect, 99 vk::VkImageAspectFlagBits aspect, 110 vk::VkImageAspectFlagBits aspect, 118 vk::VkImageAspectFlagBits aspect, 131 vk::VkImageAspectFlagBits aspect, 144 vk::VkImageAspectFlagBits aspect, 153 vk::VkImageAspectFlagBits aspect, 161 vk::VkImageAspectFlagBits aspect, 170 vk::VkImageAspectFlagBits aspect, [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
H A D | VkImage.cpp | 237 auto aspect = static_cast<VkImageAspectFlagBits>(subresourceRange.aspectMask); in getSizeInBytes() local 243 size = (layerCount - 1) * getLayerSize(aspect); in getSizeInBytes() 246 size += getMultiSampledLevelSize(aspect, mipLevel); in getSizeInBytes() 251 size = layerCount * getLayerSize(aspect); in getSizeInBytes() 258 size += getMultiSampledLevelSize(aspect, mipLevel); in getSizeInBytes() 350 auto aspect = static_cast<VkImageAspectFlagBits>(pSubresource->aspectMask); in getSubresourceLayout() local 351 pLayout->offset = getMemoryOffset(aspect, pSubresource->mipLevel, pSubresource->arrayLayer); in getSubresourceLayout() 352 pLayout->size = getMultiSampledLevelSize(aspect, pSubresource->mipLevel); in getSubresourceLayout() 353 pLayout->rowPitch = rowPitchBytes(aspect, pSubresource->mipLevel); in getSubresourceLayout() 354 pLayout->depthPitch = slicePitchBytes(aspect, pSubresourc in getSubresourceLayout() 564 auto aspect = static_cast<VkImageAspectFlagBits>(region.imageSubresource.aspectMask); copy() local 690 VkImageAspectFlagBits aspect = static_cast<VkImageAspectFlagBits>(subresource.aspectMask); getTexelPointer() local 733 VkImageAspectFlagBits aspect = static_cast<VkImageAspectFlagBits>(region.imageSubresource.aspectMask); bufferExtentInBlocks() local 771 VkImageAspectFlagBits aspect = static_cast<VkImageAspectFlagBits>(subresource.aspectMask); texelOffsetBytesInStorage() local 779 getMipLevelExtent(VkImageAspectFlagBits aspect, uint32_t mipLevel) const getMipLevelExtent() argument 820 rowPitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel) const rowPitchBytes() argument 842 slicePitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel) const slicePitchBytes() argument 923 getMemoryOffset(VkImageAspectFlagBits aspect, uint32_t mipLevel) const getMemoryOffset() argument 933 getMemoryOffset(VkImageAspectFlagBits aspect, uint32_t mipLevel, uint32_t layer) const getMemoryOffset() argument 938 getMipLevelSize(VkImageAspectFlagBits aspect, uint32_t mipLevel) const getMipLevelSize() argument 943 getMultiSampledLevelSize(VkImageAspectFlagBits aspect, uint32_t mipLevel) const getMultiSampledLevelSize() argument 953 getLayerOffset(VkImageAspectFlagBits aspect, uint32_t mipLevel) const getLayerOffset() argument [all...] |
H A D | VkImage.hpp | 82 Format getFormat(VkImageAspectFlagBits aspect) const; 89 VkExtent3D getMipLevelExtent(VkImageAspectFlagBits aspect, uint32_t mipLevel) const; 90 size_t rowPitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel) const; 91 size_t slicePitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel) const; 96 VkDeviceSize getLayerSize(VkImageAspectFlagBits aspect) const; 97 VkDeviceSize getMipLevelSize(VkImageAspectFlagBits aspect, uint32_t mipLevel) const; 125 VkDeviceSize getMultiSampledLevelSize(VkImageAspectFlagBits aspect, uint32_t mipLevel) const; 126 VkDeviceSize getLayerOffset(VkImageAspectFlagBits aspect, uint32_t mipLevel) const; 127 VkDeviceSize getMemoryOffset(VkImageAspectFlagBits aspect, uint32_t mipLevel) const; 128 VkDeviceSize getMemoryOffset(VkImageAspectFlagBits aspect, uint32_ [all...] |
H A D | VkImageView.hpp | 105 Format getFormat(VkImageAspectFlagBits aspect) const { return image->getFormat(aspect); } in getFormat() 106 int rowPitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel, Usage usage = RAW) const; 107 int slicePitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel, Usage usage = RAW) const; 108 int getMipLevelSize(VkImageAspectFlagBits aspect, uint32_t mipLevel, Usage usage = RAW) const; 109 int layerPitchBytes(VkImageAspectFlagBits aspect, Usage usage = RAW) const; 111 VkExtent2D getMipLevelExtent(uint32_t mipLevel, VkImageAspectFlagBits aspect) const; 126 void *getOffsetPointer(const VkOffset3D &offset, VkImageAspectFlagBits aspect, uint32_t mipLevel, uint32_t layer, Usage usage = RAW) const;
|
H A D | VkImageView.cpp | 324 int ImageView::rowPitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel, Usage usage) const in rowPitchBytes() argument 326 return getImage(usage)->rowPitchBytes(aspect, subresourceRange.baseMipLevel + mipLevel); in rowPitchBytes() 329 int ImageView::slicePitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel, Usage usage) const in slicePitchBytes() argument 331 return getImage(usage)->slicePitchBytes(aspect, subresourceRange.baseMipLevel + mipLevel); in slicePitchBytes() 334 int ImageView::getMipLevelSize(VkImageAspectFlagBits aspect, uint32_t mipLevel, Usage usage) const in getMipLevelSize() argument 336 return getImage(usage)->getMipLevelSize(aspect, subresourceRange.baseMipLevel + mipLevel); in getMipLevelSize() 339 int ImageView::layerPitchBytes(VkImageAspectFlagBits aspect, Usage usage) const in layerPitchBytes() argument 341 return static_cast<int>(getImage(usage)->getLayerSize(aspect)); in layerPitchBytes() 350 VkExtent2D ImageView::getMipLevelExtent(uint32_t mipLevel, VkImageAspectFlagBits aspect) const in getMipLevelExtent() 352 return Extent2D(image->getMipLevelExtent(aspect, subresourceRang in getMipLevelExtent() 372 getOffsetPointer(const VkOffset3D &offset, VkImageAspectFlagBits aspect, uint32_t mipLevel, uint32_t layer, Usage usage) const getOffsetPointer() argument [all...] |
/third_party/mesa3d/src/vulkan/runtime/ |
H A D | vk_image.c | 224 /** Expands the given aspect mask relative to the image 298 const VkImageAspectFlags aspect = region->imageSubresource.aspectMask; in vk_image_buffer_copy_layout() local 299 VkFormat format = vk_format_get_aspect_format(image->format, aspect); in vk_image_buffer_copy_layout() 423 * stencil-only format if only one aspect is chosen and the full in vk_image_view_init() 542 VkImageAspectFlagBits aspect) in vk_image_layout_is_read_only() 544 assert(util_bitcount(aspect) == 1); in vk_image_layout_is_read_only() 582 return aspect == VK_IMAGE_ASPECT_DEPTH_BIT; in vk_image_layout_is_read_only() 585 return aspect == VK_IMAGE_ASPECT_STENCIL_BIT; in vk_image_layout_is_read_only() 617 * "If layout only specifies the layout of the depth aspect of the 618 * attachment, the layout of the stencil aspect i 541 vk_image_layout_is_read_only(VkImageLayout layout, VkImageAspectFlagBits aspect) vk_image_layout_is_read_only() argument 704 vk_image_layout_to_usage_flags(VkImageLayout layout, VkImageAspectFlagBits aspect) vk_image_layout_to_usage_flags() argument [all...] |
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
H A D | UtilsD3D12.cpp | 74 Aspect aspect) { in ComputeTextureCopyLocationForTexture() 78 copyLocation.SubresourceIndex = texture->GetSubresourceIndex(level, layer, aspect); in ComputeTextureCopyLocationForTexture() 89 Aspect aspect) { in ComputeBufferLocationForCopyTextureRegion() 95 texture->GetD3D12CopyableSubresourceFormat(aspect); in ComputeBufferLocationForCopyTextureRegion() 155 Aspect aspect) { in RecordCopyBufferToTextureFromTextureCopySplit() 156 ASSERT(HasOneBit(aspect)); in RecordCopyBufferToTextureFromTextureCopySplit() 158 ComputeTextureCopyLocationForTexture(texture, textureMiplevel, textureLayer, aspect); in RecordCopyBufferToTextureFromTextureCopySplit() 168 offsetBytes, bufferBytesPerRow, aspect); in RecordCopyBufferToTextureFromTextureCopySplit() 186 Aspect aspect) { in CopyBufferTo2DTextureWithCopySplit() 187 ASSERT(HasOneBit(aspect)); in CopyBufferTo2DTextureWithCopySplit() 71 ComputeTextureCopyLocationForTexture(const Texture* texture, uint32_t level, uint32_t layer, Aspect aspect) ComputeTextureCopyLocationForTexture() argument 83 ComputeBufferLocationForCopyTextureRegion( const Texture* texture, ID3D12Resource* bufferResource, const Extent3D& bufferSize, const uint64_t offset, const uint32_t rowPitch, Aspect aspect) ComputeBufferLocationForCopyTextureRegion() argument 147 RecordCopyBufferToTextureFromTextureCopySplit(ID3D12GraphicsCommandList* commandList, const TextureCopySubresource& baseCopySplit, ID3D12Resource* bufferResource, uint64_t baseOffset, uint64_t bufferBytesPerRow, Texture* texture, uint32_t textureMiplevel, uint32_t textureLayer, Aspect aspect) RecordCopyBufferToTextureFromTextureCopySplit() argument 178 CopyBufferTo2DTextureWithCopySplit(CommandRecordingContext* commandContext, const TextureCopy& textureCopy, ID3D12Resource* bufferResource, const uint64_t offset, const uint32_t bytesPerRow, const uint32_t rowsPerImage, const Extent3D& copySize, Texture* texture, Aspect aspect) CopyBufferTo2DTextureWithCopySplit() argument 223 CopyBufferTo3DTexture(CommandRecordingContext* commandContext, const TextureCopy& textureCopy, ID3D12Resource* bufferResource, const uint64_t offset, const uint32_t bytesPerRow, const uint32_t rowsPerImage, const Extent3D& copySize, Texture* texture, Aspect aspect) CopyBufferTo3DTexture() argument 243 RecordCopyBufferToTexture(CommandRecordingContext* commandContext, const TextureCopy& textureCopy, ID3D12Resource* bufferResource, const uint64_t offset, const uint32_t bytesPerRow, const uint32_t rowsPerImage, const Extent3D& copySize, Texture* texture, Aspect aspect) RecordCopyBufferToTexture() argument 266 RecordCopyTextureToBufferFromTextureCopySplit(ID3D12GraphicsCommandList* commandList, const TextureCopySubresource& baseCopySplit, Buffer* buffer, uint64_t baseOffset, uint64_t bufferBytesPerRow, Texture* texture, uint32_t textureMiplevel, uint32_t textureLayer, Aspect aspect) RecordCopyTextureToBufferFromTextureCopySplit() argument [all...] |
H A D | UtilsD3D12.h | 34 Aspect aspect); 42 Aspect aspect); 55 Aspect aspect); 65 Aspect aspect); 75 Aspect aspect);
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
H A D | EnumMaskIteratorTests.cpp | 48 for (TestAspect aspect : IterateEnumMask(static_cast<TestAspect>(0))) { in TEST() 50 DAWN_UNUSED(aspect); in TEST() 58 for (TestAspect aspect : IterateEnumMask(aspects)) { in TEST() 59 EXPECT_EQ(aspect, expected[i++]); in TEST() 67 for (TestAspect aspect : IterateEnumMask(aspects)) { in TEST() 68 EXPECT_EQ(aspect, expected[i++]); in TEST()
|
H A D | SubresourceStorageTests.cpp | 40 for (Aspect aspect : IterateEnumMask(range.aspects)) { in Update() 45 SubresourceRange range = SubresourceRange::MakeSingle(aspect, layer, level); in Update() 46 updateFunc(range, &mData[GetDataIndex(aspect, layer, level)]); in Update() 54 for (Aspect aspect : IterateEnumMask(mAspects)) { in Merge() 57 SubresourceRange range = SubresourceRange::MakeSingle(aspect, layer, level); in Merge() 58 mergeFunc(range, &mData[GetDataIndex(aspect, layer, level)], in Merge() 59 other.Get(aspect, layer, level)); in Merge() 65 const T& Get(Aspect aspect, uint32_t arrayLayer, uint32_t mipLevel) const { in Get() 66 return mData[GetDataIndex(aspect, arrayLayer, mipLevel)]; in Get() 69 size_t GetDataIndex(Aspect aspect, uint32_ 160 CheckAspectCompressed(const SubresourceStorage<T>& s, Aspect aspect, bool expected) CheckAspectCompressed() argument 188 CheckLayerCompressed(const SubresourceStorage<T>& s, Aspect aspect, uint32_t layer, bool expected) CheckLayerCompressed() argument [all...] |
/third_party/vk-gl-cts/external/amber/src/src/vulkan/ |
H A D | transfer_image.cc | 71 VkImageAspectFlags aspect, in TransferImage() 90 aspect_(aspect), in TransferImage() 145 // Combined depth/stencil image used as a descriptor. Only one aspect can be in Initialize() 195 Result TransferImage::CreateVkImageView(VkImageAspectFlags aspect) { in CreateVkImageView() argument 208 aspect, /* aspectMask */ in CreateVkImageView() 225 VkImageAspectFlags aspect, in CreateBufferImageCopy() 228 if (aspect == VK_IMAGE_ASPECT_STENCIL_BIT) { in CreateBufferImageCopy() 240 aspect, /* aspectMask */ in CreateBufferImageCopy() 265 for (auto aspect : aspects) { in CopyToHost() 266 if (aspect_ & aspect) { in CopyToHost() 69 TransferImage(Device* device, const Format& format, VkImageAspectFlags aspect, VkImageType image_type, VkImageUsageFlags image_usage_flags, uint32_t x, uint32_t y, uint32_t z, uint32_t mip_levels, uint32_t base_mip_level, uint32_t used_mip_levels, uint32_t samples) TransferImage() argument 224 CreateBufferImageCopy( VkImageAspectFlags aspect, uint32_t mip_level) CreateBufferImageCopy() argument [all...] |
H A D | image_descriptor.cc | 69 VkImageAspectFlags aspect = 0; in CreateResourceIfNeeded() local 71 aspect = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; in CreateResourceIfNeeded() 73 aspect = VK_IMAGE_ASPECT_DEPTH_BIT; in CreateResourceIfNeeded() 75 aspect = VK_IMAGE_ASPECT_DEPTH_BIT; in CreateResourceIfNeeded() 77 aspect = VK_IMAGE_ASPECT_COLOR_BIT; in CreateResourceIfNeeded() 91 device_, *fmt, aspect, image_type, usage, amber_buffer->GetWidth(), in CreateResourceIfNeeded()
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
H A D | ReadOnlyDepthStencilAttachmentTests.cpp | 63 wgpu::RenderPipeline CreateRenderPipeline(wgpu::TextureAspect aspect, in CreateRenderPipeline() argument 86 if (aspect == wgpu::TextureAspect::DepthOnly) { in CreateRenderPipeline() 100 ASSERT(aspect == wgpu::TextureAspect::StencilOnly); in CreateRenderPipeline() 126 void DoTest(wgpu::TextureAspect aspect, in DoTest() argument 138 if (aspect == wgpu::TextureAspect::DepthOnly) { in DoTest() 141 ASSERT(aspect == wgpu::TextureAspect::StencilOnly); in DoTest() 147 // Note that we can only select one single aspect for texture view used in bind group. in DoTest() 149 viewDesc.aspect = aspect; in DoTest() 156 // it doesn't impact anything if the format has only one aspect in DoTest() [all...] |
H A D | DepthStencilSamplingTests.cpp | 82 for (TestAspect aspect : aspects) { in GenerateSamplingShader() 83 switch (aspect) { in GenerateSamplingShader() 273 void DoSamplingTestImpl(TestAspect aspect, in DoSamplingTestImpl() argument 281 switch (aspect) { in DoSamplingTestImpl() 283 inputViewDesc.aspect = wgpu::TextureAspect::DepthOnly; in DoSamplingTestImpl() 286 inputViewDesc.aspect = wgpu::TextureAspect::StencilOnly; in DoSamplingTestImpl() 299 switch (aspect) { in DoSamplingTestImpl() 328 void DoSamplingTestImpl(TestAspect aspect, in DoSamplingTestImpl() argument 336 switch (aspect) { in DoSamplingTestImpl() 338 inputViewDesc.aspect in DoSamplingTestImpl() 380 DoSamplingTest(TestAspect aspect, wgpu::RenderPipeline pipeline, wgpu::TextureFormat format, std::vector<T> textureValues, T tolerance = {}) DoSamplingTest() argument 393 DoSamplingTest(TestAspect aspect, wgpu::ComputePipeline pipeline, wgpu::TextureFormat format, std::vector<T> textureValues, T tolerance = {}) DoSamplingTest() argument 438 DoSamplingExtraStencilComponentsRenderTest(TestAspect aspect, wgpu::TextureFormat format, std::vector<uint8_t> textureValues) DoSamplingExtraStencilComponentsRenderTest() argument 449 DoSamplingExtraStencilComponentsComputeTest(TestAspect aspect, wgpu::TextureFormat format, std::vector<uint8_t> textureValues) DoSamplingExtraStencilComponentsComputeTest() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/v4l2-core/ |
H A D | v4l2-dv-timings.c | 368 pr_info("%s: picture aspect (hor:vert): %u:%u\n", dev_prefix, in v4l2_print_dv_timings() 697 * @aspect - preferred aspect ratio. GTF has no method of determining the 698 * aspect ratio in order to derive the image width from the 700 * the native screen aspect ratio is used for this. If it 713 struct v4l2_fract aspect, in v4l2_detect_gtf() 746 if (aspect.numerator == 0 || aspect.denominator == 0) { in v4l2_detect_gtf() 747 aspect.numerator = 16; in v4l2_detect_gtf() 748 aspect in v4l2_detect_gtf() 708 v4l2_detect_gtf(unsigned frame_height, unsigned hfreq, unsigned vsync, u32 polarities, bool interlaced, struct v4l2_fract aspect, struct v4l2_dv_timings *fmt) v4l2_detect_gtf() argument 831 struct v4l2_fract aspect = { 16, 9 }; v4l2_calc_aspect_ratio() local [all...] |
/kernel/linux/linux-6.6/drivers/media/v4l2-core/ |
H A D | v4l2-dv-timings.c | 368 pr_info("%s: picture aspect (hor:vert): %u:%u\n", dev_prefix, in v4l2_print_dv_timings() 697 * @aspect - preferred aspect ratio. GTF has no method of determining the 698 * aspect ratio in order to derive the image width from the 700 * the native screen aspect ratio is used for this. If it 713 struct v4l2_fract aspect, in v4l2_detect_gtf() 746 if (aspect.numerator == 0 || aspect.denominator == 0) { in v4l2_detect_gtf() 747 aspect.numerator = 16; in v4l2_detect_gtf() 748 aspect in v4l2_detect_gtf() 708 v4l2_detect_gtf(unsigned frame_height, unsigned hfreq, unsigned vsync, u32 polarities, bool interlaced, struct v4l2_fract aspect, struct v4l2_dv_timings *fmt) v4l2_detect_gtf() argument 831 struct v4l2_fract aspect = { 16, 9 }; v4l2_calc_aspect_ratio() local [all...] |
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
H A D | VideoViewsValidationTests.cpp | 50 viewDesc.aspect = wgpu::TextureAspect::Plane0Only; in TEST_F() 55 viewDesc.aspect = wgpu::TextureAspect::Plane1Only; in TEST_F() 58 // Compatible view format but wrong aspect. in TEST_F() 60 viewDesc.aspect = wgpu::TextureAspect::All; in TEST_F() 72 // Plane aspect specified with non-planar texture. in TEST_F() 73 viewDesc.aspect = wgpu::TextureAspect::Plane0Only; in TEST_F() 76 viewDesc.aspect = wgpu::TextureAspect::Plane1Only; in TEST_F() 80 viewDesc.aspect = wgpu::TextureAspect::Plane0Only; in TEST_F() 84 viewDesc.aspect = wgpu::TextureAspect::Plane1Only; in TEST_F() 96 planeViewDesc.aspect in TEST_F() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/dexcr/ |
H A D | lsdexcr.c | 87 static void print_aspect(const struct dexcr_aspect *aspect) in print_aspect() argument 93 mask = DEXCR_PR_BIT(aspect->index); in print_aspect() 101 printf("%12s %c (%d): ", aspect->name, effective & mask ? '*' : ' ', aspect->index); in print_aspect() 103 printf(" \t(%s)\n", aspect->desc); in print_aspect()
|
/drivers/hdf_core/framework/support/platform/src/hdmi/ |
H A D | hdmi_common.c | 15 * vic, pixel clk, vfreq, hactive, vactive, hblank, vblank, hfront, hsync, hback, vfront, vsync, vback, aspect, 238 enum HdmiPictureAspectRatio aspect, bool enable3d) in HdmiCommonGetVic() 246 if (timing == g_ceaVideoDefInfoMap[i].timing && aspect == g_ceaVideoDefInfoMap[i].aspect) { in HdmiCommonGetVic() 292 enum HdmiPictureAspectRatio aspect, bool enable3d) in HdmiCommonGetVideoDefInfo() 298 vic = HdmiCommonGetVic(timing, aspect, enable3d); in HdmiCommonGetVideoDefInfo() 306 enum HdmiVideoTiming HdmiCommonGetVideoTiming(enum HdmiVic vic, enum HdmiPictureAspectRatio aspect) in HdmiCommonGetVideoTiming() argument 314 if (vic == g_ceaVideoDefInfoMap[i].vic && aspect == g_ceaVideoDefInfoMap[i].aspect) { in HdmiCommonGetVideoTiming() 237 HdmiCommonGetVic(enum HdmiVideoTiming timing, enum HdmiPictureAspectRatio aspect, bool enable3d) HdmiCommonGetVic() argument 291 HdmiCommonGetVideoDefInfo(enum HdmiVideoTiming timing, enum HdmiPictureAspectRatio aspect, bool enable3d) HdmiCommonGetVideoDefInfo() argument
|