Home
last modified time | relevance | path

Searched refs:mipLevel (Results 1 – 25 of 202) sorted by relevance

123456789

/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DDepthStencilLoadOpTests.cpp81 for (uint32_t mipLevel = 0; mipLevel < kMipLevelCount; ++mipLevel) { in SetUp() local
82 textureViewDesc.baseMipLevel = mipLevel; in SetUp()
83 textureViews[mipLevel] = texture.CreateView(&textureViewDesc); in SetUp()
85 utils::ComboRenderPassDescriptor renderPassDescriptor({}, textureViews[mipLevel]); in SetUp()
87 kDepthValues[mipLevel]; in SetUp()
89 kStencilValues[mipLevel]; in SetUp()
94 void CheckMipLevel(uint32_t mipLevel) { in CheckMipLevel() argument
95 uint32_t mipSize = std::max(kRTSize >> mipLevel, 1u); in CheckMipLevel()
99 std::vector<float> expectedDepth(mipSize * mipSize, kDepthValues[mipLevel]); in CheckMipLevel()
100 ExpectSampledDepthData(texture, mipSize, mipSize, 0, mipLevel, in CheckMipLevel()
[all …]
DDepthStencilCopyTests.cpp91 uint32_t mipLevel = 0) { in InitializeDepthTextureRegion() argument
93 viewDesc.baseMipLevel = mipLevel; in InitializeDepthTextureRegion()
122 uint32_t mipLevel = 0) { in InitializeDepthStencilTextureRegion() argument
124 viewDesc.baseMipLevel = mipLevel; in InitializeDepthStencilTextureRegion()
157 uint32_t mipLevel = 0) { in CreateInitializeDepthStencilTextureAndCopyT2T() argument
160 mipLevel + 1); in CreateInitializeDepthStencilTextureAndCopyT2T()
163 width, height, usage | wgpu::TextureUsage::CopyDst, mipLevel + 1); in CreateInitializeDepthStencilTextureAndCopyT2T()
166 regionStencil, mipLevel); in CreateInitializeDepthStencilTextureAndCopyT2T()
172 utils::CreateImageCopyTexture(src, mipLevel, {0, 0, 0}); in CreateInitializeDepthStencilTextureAndCopyT2T()
174 utils::CreateImageCopyTexture(dst, mipLevel, {0, 0, 0}); in CreateInitializeDepthStencilTextureAndCopyT2T()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
DVkImage.cpp244 for(uint32_t mipLevel = subresourceRange.baseMipLevel; mipLevel <= lastMipLevel; ++mipLevel) in getSizeInBytes() local
246 size += getMultiSampledLevelSize(aspect, mipLevel); in getSizeInBytes()
256 for(uint32_t mipLevel = subresourceRange.baseMipLevel; mipLevel <= lastMipLevel; ++mipLevel) in getSizeInBytes() local
258 size += getMultiSampledLevelSize(aspect, mipLevel); in getSizeInBytes()
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, pSubresource->mipLevel); in getSubresourceLayout()
413 VkExtent3D srcExtent = getMipLevelExtent(srcAspect, region.srcSubresource.mipLevel); in copySingleAspectTo()
414 VkExtent3D dstExtent = dstImage->getMipLevelExtent(dstAspect, region.dstSubresource.mipLevel); in copySingleAspectTo()
[all …]
DVkImage.hpp89 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;
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_t mipLevel, uint32_t layer) cons…
176 (subresource.mipLevel == other.subresource.mipLevel) && in operator ==()
183 static_cast<size_t>(other.subresource.mipLevel) ^ in operator ()()
DVkImageView.cpp324 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()
344 VkExtent2D ImageView::getMipLevelExtent(uint32_t mipLevel) const in getMipLevelExtent()
347 subresourceRange.baseMipLevel + mipLevel)); in getMipLevelExtent()
350 VkExtent2D ImageView::getMipLevelExtent(uint32_t mipLevel, VkImageAspectFlagBits aspect) const in getMipLevelExtent() argument
352 return Extent2D(image->getMipLevelExtent(aspect, subresourceRange.baseMipLevel + mipLevel)); in getMipLevelExtent()
[all …]
DVkImageView.hpp106 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;
110 VkExtent2D getMipLevelExtent(uint32_t mipLevel) const;
111 VkExtent2D getMipLevelExtent(uint32_t mipLevel, VkImageAspectFlagBits aspect) const;
112 int getDepthOrLayerCount(uint32_t mipLevel) const;
126 …void *getOffsetPointer(const VkOffset3D &offset, VkImageAspectFlagBits aspect, uint32_t mipLevel, …
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktDrawImageObjectUtil.hpp81 unsigned int mipLevel = 0,
91 unsigned int mipLevel = 0,
100 unsigned int mipLevel = 0,
111 unsigned int mipLevel = 0,
119 unsigned int mipLevel = 0,
129 unsigned int mipLevel,
142 unsigned int mipLevel,
151 unsigned int mipLevel,
162 unsigned int mipLevel = 0,
171 unsigned int mipLevel = 0,
[all …]
DvktDrawImageObjectUtil.cpp174 unsigned int mipLevel, in readSurface() argument
181 …read(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, vk::VK_IM… in readSurface()
186 …readUsingBuffer(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect… in readSurface()
198 unsigned int mipLevel, in readDepth() argument
206 …readUsingBuffer(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect… in readDepth()
218 unsigned int mipLevel, in readVolume() argument
225 …read(queue, allocator, layout, offset, width, height, depth, mipLevel, arrayElement, aspect, vk::V… in readVolume()
230 …readUsingBuffer(queue, allocator, layout, offset, width, height, depth, mipLevel, arrayElement, as… in readVolume()
241 unsigned int mipLevel, in readSurface1D() argument
248 …read(queue, allocator, layout, offset, width, 1, 1, mipLevel, arrayElement, aspect, vk::VK_IMAGE_T… in readSurface1D()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DTextureStorage11.cpp186 int TextureStorage11::getLevelWidth(int mipLevel) const in getLevelWidth()
188 return std::max(static_cast<int>(mTextureWidth) >> mipLevel, 1); in getLevelWidth()
191 int TextureStorage11::getLevelHeight(int mipLevel) const in getLevelHeight()
193 return std::max(static_cast<int>(mTextureHeight) >> mipLevel, 1); in getLevelHeight()
196 int TextureStorage11::getLevelDepth(int mipLevel) const in getLevelDepth()
198 return std::max(static_cast<int>(mTextureDepth) >> mipLevel, 1); in getLevelDepth()
331 int mipLevel, in getSRVLevel() argument
335 ASSERT(mipLevel >= 0 && mipLevel < getLevelCount()); in getSRVLevel()
341 if (!levelSRVs[mipLevel].valid()) in getSRVLevel()
344 if (otherLevelSRVs[mipLevel].valid() && mFormatInfo.srvFormat == mFormatInfo.blitSRVFormat) in getSRVLevel()
[all …]
DResourceManager11.cpp302 for (UINT mipLevel = 0; mipLevel < desc->MipLevels; ++mipLevel) in ClearResource() local
306 dsvDesc.Texture2D.MipSlice = mipLevel; in ClearResource()
476 for (UINT mipLevel = 0; mipLevel < desc->MipLevels; ++mipLevel) in createInitDataIfNeeded() local
480 UINT subresourceIndex = D3D11CalcSubresource(mipLevel, arrayIndex, desc->MipLevels); in createInitDataIfNeeded()
483 UINT levelWidth = std::max(desc->Width >> mipLevel, 1u); in createInitDataIfNeeded()
484 UINT levelHeight = std::max(desc->Height >> mipLevel, 1u); in createInitDataIfNeeded()
526 for (UINT mipLevel = 0; mipLevel < desc->MipLevels; ++mipLevel) in createInitDataIfNeeded() local
528 UINT subresourceIndex = D3D11CalcSubresource(mipLevel, 0, desc->MipLevels); in createInitDataIfNeeded()
531 UINT levelWidth = std::max(desc->Width >> mipLevel, 1u); in createInitDataIfNeeded()
532 UINT levelHeight = std::max(desc->Height >> mipLevel, 1u); in createInitDataIfNeeded()
DTextureStorage11.h86 void markLevelDirty(int mipLevel);
151 int getLevelWidth(int mipLevel) const;
152 int getLevelHeight(int mipLevel) const;
153 int getLevelDepth(int mipLevel) const;
162 int mipLevel,
165 int mipLevel,
327 int mipLevel,
419 int mipLevel,
516 int mipLevel,
589 int mipLevel,
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DResourceManager11.cpp302 for (UINT mipLevel = 0; mipLevel < desc->MipLevels; ++mipLevel) in ClearResource() local
306 dsvDesc.Texture2D.MipSlice = mipLevel; in ClearResource()
472 for (UINT mipLevel = 0; mipLevel < desc->MipLevels; ++mipLevel) in createInitDataIfNeeded() local
476 UINT subresourceIndex = D3D11CalcSubresource(mipLevel, arrayIndex, desc->MipLevels); in createInitDataIfNeeded()
479 UINT levelWidth = std::max(desc->Width >> mipLevel, 1u); in createInitDataIfNeeded()
480 UINT levelHeight = std::max(desc->Height >> mipLevel, 1u); in createInitDataIfNeeded()
518 for (UINT mipLevel = 0; mipLevel < desc->MipLevels; ++mipLevel) in createInitDataIfNeeded() local
520 UINT subresourceIndex = D3D11CalcSubresource(mipLevel, 0, desc->MipLevels); in createInitDataIfNeeded()
523 UINT levelWidth = std::max(desc->Width >> mipLevel, 1u); in createInitDataIfNeeded()
524 UINT levelHeight = std::max(desc->Height >> mipLevel, 1u); in createInitDataIfNeeded()
DTextureStorage11.cpp176 int TextureStorage11::getLevelWidth(int mipLevel) const in getLevelWidth()
178 return std::max(static_cast<int>(mTextureWidth) >> mipLevel, 1); in getLevelWidth()
181 int TextureStorage11::getLevelHeight(int mipLevel) const in getLevelHeight()
183 return std::max(static_cast<int>(mTextureHeight) >> mipLevel, 1); in getLevelHeight()
186 int TextureStorage11::getLevelDepth(int mipLevel) const in getLevelDepth()
188 return std::max(static_cast<int>(mTextureDepth) >> mipLevel, 1); in getLevelDepth()
320 int mipLevel, in getSRVLevel() argument
324 ASSERT(mipLevel >= 0 && mipLevel < getLevelCount()); in getSRVLevel()
329 if (!levelSRVs[mipLevel].valid()) in getSRVLevel()
332 if (otherLevelSRVs[mipLevel].valid() && mFormatInfo.srvFormat == mFormatInfo.blitSRVFormat) in getSRVLevel()
[all …]
DTextureStorage11.h63 void markLevelDirty(int mipLevel);
122 int getLevelWidth(int mipLevel) const;
123 int getLevelHeight(int mipLevel) const;
124 int getLevelDepth(int mipLevel) const;
133 int mipLevel,
136 int mipLevel,
277 int mipLevel,
360 int mipLevel,
449 int mipLevel,
515 int mipLevel,
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/
DTexture.cpp356 uint32_t TextureBase::GetSubresourceIndex(uint32_t mipLevel, uint32_t arraySlice) const { in GetSubresourceIndex() argument
358 ASSERT(mipLevel <= kMaxTexture2DMipLevels); in GetSubresourceIndex()
362 return GetNumMipLevels() * arraySlice + mipLevel; in GetSubresourceIndex()
370 for (uint32_t mipLevel = baseMipLevel; mipLevel < baseMipLevel + levelCount; ++mipLevel) { in IsSubresourceContentInitialized() local
373 uint32_t subresourceIndex = GetSubresourceIndex(mipLevel, arrayLayer); in IsSubresourceContentInitialized()
388 for (uint32_t mipLevel = baseMipLevel; mipLevel < baseMipLevel + levelCount; ++mipLevel) { in SetIsSubresourceContentInitialized() local
391 uint32_t subresourceIndex = GetSubresourceIndex(mipLevel, arrayLayer); in SetIsSubresourceContentInitialized()
DCommandBuffer.cpp42 const uint32_t mipLevel) { in IsCompleteSubresourceCopiedTo() argument
43 Extent3D extent = texture->GetMipLevelPhysicalSize(mipLevel); in IsCompleteSubresourceCopiedTo()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
DvktApiImageClearingTests.cpp140 VkExtent3D getMipLevelExtent (VkExtent3D baseExtent, const deUint32 mipLevel) in getMipLevelExtent() argument
142 baseExtent.width = std::max(baseExtent.width >> mipLevel, 1u); in getMipLevelExtent()
143 baseExtent.height = std::max(baseExtent.height >> mipLevel, 1u); in getMipLevelExtent()
144 baseExtent.depth = std::max(baseExtent.depth >> mipLevel, 1u); in getMipLevelExtent()
179 for (deUint32 mipLevel = 0; mipLevel < numMipLevels; ++mipLevel) in getImageMipLevelSizes() local
181 const VkExtent3D extent = getMipLevelExtent(baseExtent, mipLevel); in getImageMipLevelSizes()
182 …results[mipLevel] = static_cast<deUint32>(extent.width * extent.height * extent.depth * pixelSize); in getImageMipLevelSizes()
183 …results[mipLevel] = ((results[mipLevel] + perLevelAlignment-1) / perLevelAlignment) * perLevelAlig… in getImageMipLevelSizes()
222 inline bool isInInitialClearRange (deUint32 mipLevel, deUint32 arrayLayer, LayerRange imageViewLaye… in isInInitialClearRange() argument
224 if (mipLevel > 0) in isInInitialClearRange()
[all …]
/third_party/mesa3d/src/amd/vulkan/
Dradv_meta_copy.c94 if (!radv_dcc_enabled(image, subres->mipLevel) && !(radv_image_is_tc_compat_htile(image))) in blit_surf_for_image_level_layer()
102 .level = subres->mipLevel, in blit_surf_for_image_level_layer()
184 radv_layout_dcc_compressed(cmd_buffer->device, image, region->imageSubresource.mipLevel, in copy_buffer_to_image()
190 .baseMipLevel = region->imageSubresource.mipLevel, in copy_buffer_to_image()
311 radv_layout_dcc_compressed(cmd_buffer->device, image, region->imageSubresource.mipLevel, in copy_image_to_buffer()
317 .baseMipLevel = region->imageSubresource.mipLevel, in copy_image_to_buffer()
426 .baseMipLevel = region->dstSubresource.mipLevel, in copy_image()
457 region->dstSubresource.mipLevel, in copy_image()
462 region->srcSubresource.mipLevel, in copy_image()
476 .baseMipLevel = region->dstSubresource.mipLevel, in copy_image()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DQueueGL.cpp64 textureCopy.mipLevel = destination.mipLevel; in WriteTextureImpl()
71 destination.mipLevel)) { in WriteTextureImpl()
DCommandBufferGL.cpp459 Extent3D virtualSizeAtLevel = texture->GetMipLevelVirtualSize(textureCopy.mipLevel); in ComputeTextureCopyExtent()
525 src.mipLevel); in CopyTextureToTextureWithBlit()
529 static_cast<GLint>(src.mipLevel), in CopyTextureToTextureWithBlit()
536 dst.mipLevel); in CopyTextureToTextureWithBlit()
540 static_cast<GLint>(dst.mipLevel), in CopyTextureToTextureWithBlit()
657 dst.mipLevel)) { in Execute()
753 texture->GetHandle(), src.mipLevel); in Execute()
766 texture->GetHandle(), src.mipLevel, in Execute()
810 if (IsCompleteSubresourceCopiedTo(dstTexture, copySize, dst.mipLevel)) { in Execute()
817 src.mipLevel, src.origin.x, src.origin.y, src.origin.z, in Execute()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesShaderIntrinsicsStorage.hpp53 const std::string& mipLevel) const = 0;
76 const std::string& mipLevel) const;
99 const std::string& mipLevel) const;
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DCommandBufferVk.cpp53 Extent3D virtualSizeAtLevel = texture->GetMipLevelVirtualSize(textureCopy.mipLevel); in ComputeTextureCopyExtent()
81 region.imageSubresource.mipLevel = textureCopy.mipLevel; in ComputeBufferImageCopyRegion()
106 region.srcSubresource.mipLevel = srcCopy.mipLevel; in ComputeImageCopyRegion()
115 region.dstSubresource.mipLevel = dstCopy.mipLevel; in ComputeImageCopyRegion()
393 subresource.mipLevel)) { in RecordCommands()
396 subresource.mipLevel, 1, subresource.baseArrayLayer, 1); in RecordCommands()
399 ->EnsureSubresourceContentInitialized(commands, subresource.mipLevel, 1, in RecordCommands()
426 ->EnsureSubresourceContentInitialized(commands, subresource.mipLevel, 1, in RecordCommands()
452 ->EnsureSubresourceContentInitialized(commands, srcSubresource.mipLevel, 1, in RecordCommands()
455 dstSubresource.mipLevel)) { in RecordCommands()
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/opengl/
DCommandBufferGL.cpp398 if (IsCompleteSubresourceCopiedTo(texture, copySize, dst.mipLevel)) { in Execute()
399 texture->SetIsSubresourceContentInitialized(dst.mipLevel, 1, dst.arrayLayer, in Execute()
402 texture->EnsureSubresourceContentInitialized(dst.mipLevel, 1, in Execute()
417 target, dst.mipLevel, dst.origin.x, dst.origin.y, in Execute()
423 target, dst.mipLevel, dst.origin.x, dst.origin.y, in Execute()
448 texture->EnsureSubresourceContentInitialized(src.mipLevel, 1, src.arrayLayer, in Execute()
462 src.mipLevel, src.arrayLayer); in Execute()
466 src.mipLevel); in Execute()
497 srcTexture->EnsureSubresourceContentInitialized(src.mipLevel, 1, src.arrayLayer, in Execute()
499 if (IsCompleteSubresourceCopiedTo(dstTexture, copySize, dst.mipLevel)) { in Execute()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
DvktImageTexture.hpp42 …tcu::IVec3 layerSize (const int mipLevel = 0) const; //!< Size of a single layer for mipmap l…
46 …tcu::IVec3 size (const int mipLevel = 0) const; //!< Size including number of layers in addi…
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DTexture.cpp565 uint32_t TextureBase::GetSubresourceIndex(uint32_t mipLevel, in GetSubresourceIndex() argument
569 return mipLevel + in GetSubresourceIndex()
578 for (uint32_t mipLevel = range.baseMipLevel; in IsSubresourceContentInitialized() local
579 mipLevel < range.baseMipLevel + range.levelCount; ++mipLevel) { in IsSubresourceContentInitialized()
580 uint32_t subresourceIndex = GetSubresourceIndex(mipLevel, arrayLayer, aspect); in IsSubresourceContentInitialized()
597 for (uint32_t mipLevel = range.baseMipLevel; in SetIsSubresourceContentInitialized() local
598 mipLevel < range.baseMipLevel + range.levelCount; ++mipLevel) { in SetIsSubresourceContentInitialized()
599 uint32_t subresourceIndex = GetSubresourceIndex(mipLevel, arrayLayer, aspect); in SetIsSubresourceContentInitialized()

123456789