Home
last modified time | relevance | path

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

12345678

/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/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.c55 if (!radv_dcc_enabled(image, subres->mipLevel) && !(radv_image_is_tc_compat_htile(image))) in blit_surf_for_image_level_layer()
63 .level = subres->mipLevel, in blit_surf_for_image_level_layer()
138 radv_layout_dcc_compressed(cmd_buffer->device, image, region->imageSubresource.mipLevel, in copy_buffer_to_image()
144 .baseMipLevel = region->imageSubresource.mipLevel, in copy_buffer_to_image()
287 radv_layout_dcc_compressed(cmd_buffer->device, image, region->imageSubresource.mipLevel, in copy_image_to_buffer()
293 .baseMipLevel = region->imageSubresource.mipLevel, in copy_image_to_buffer()
396 .baseMipLevel = region->dstSubresource.mipLevel, in copy_image()
435 region->dstSubresource.mipLevel, in copy_image()
440 region->srcSubresource.mipLevel, in copy_image()
455 .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/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()
DCommandBuffer.cpp76 const uint32_t mipLevel) { in IsCompleteSubresourceCopiedTo() argument
77 Extent3D extent = texture->GetMipLevelPhysicalSize(mipLevel); in IsCompleteSubresourceCopiedTo()
96 copy.aspect, {copy.origin.z, copySize.depthOrArrayLayers}, {copy.mipLevel, 1}}; in GetSubresourcesAffectedByCopy()
98 return {copy.aspect, {0, 1}, {copy.mipLevel, 1}}; in GetSubresourcesAffectedByCopy()
DCommandValidation.cpp270 DAWN_INVALID_IF(textureCopy.mipLevel >= texture->GetNumMipLevels(), in ValidateImageCopyTexture()
272 textureCopy.mipLevel, texture->GetNumMipLevels(), texture); in ValidateImageCopyTexture()
281 Extent3D subresourceSize = texture->GetMipLevelPhysicalSize(textureCopy.mipLevel); in ValidateImageCopyTexture()
305 Extent3D mipSize = texture->GetMipLevelPhysicalSize(textureCopy.mipLevel); in ValidateTextureCopyRange()
324 &textureCopy.origin, &copySize, texture, textureCopy.mipLevel, &mipSize); in ValidateTextureCopyRange()
416 if (src.texture == dst.texture && src.mipLevel == dst.mipLevel) { in ValidateTextureToTextureCopyCommonRestrictions()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineRenderToImageTests.cpp1286 const int mipLevel, in drawToMipLevel() argument
1320 makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_BIT, mipLevel, 1u, subpassNdx, 1u)))); in drawToMipLevel()
1337 makeImageSubresourceRange(depthStencilAspect, mipLevel, 1u, subpassNdx, 1u)))); in drawToMipLevel()
1517 for (int mipLevel = 0; mipLevel < numMipLevels; ++mipLevel) in testRenderToMipMaps() local
1519 const IVec4& mipSize = mipLevelSizes[mipLevel]; in testRenderToMipMaps()
1522 …drawToMipLevel (context, caseDef, mipLevel, mipSize, levelSlices, *colorImage, *depthStencilImage,… in testRenderToMipMaps()
1572 for (int mipLevel = 0; mipLevel < numMipLevels; ++mipLevel) in testRenderToMipMaps() local
1575 workRegion.imageSubresource.mipLevel = static_cast<deUint32>(mipLevel); in testRenderToMipMaps()
1576 workRegion.imageExtent = makeExtent3D(mipLevelSizes[mipLevel].swizzle(0, 1, 2)); in testRenderToMipMaps()
1580 levelOffset += mipLevelStorageSizes[mipLevel]; in testRenderToMipMaps()
[all …]
DvktPipelineMultisampleTestsUtil.cpp40 …getShaderGridSize (const ImageType imageType, const tcu::UVec3& imageSize, const deUint32 mipLevel) in getShaderGridSize() argument
42 const deUint32 mipLevelX = std::max(imageSize.x() >> mipLevel, 1u); in getShaderGridSize()
43 const deUint32 mipLevelY = std::max(imageSize.y() >> mipLevel, 1u); in getShaderGridSize()
44 const deUint32 mipLevelZ = std::max(imageSize.z() >> mipLevel, 1u); in getShaderGridSize()
/third_party/skia/third_party/externals/dawn/src/tests/
DDawnTest.h425 uint32_t mipLevel,
434 uint32_t mipLevel,
441 uint32_t mipLevel,
454 uint32_t mipLevel,
463 uint32_t mipLevel, in ExpectAttachmentDepthTestData() argument
466 mipLevel, std::move(expectedDepth), nullptr); in ExpectAttachmentDepthTestData()
474 uint32_t mipLevel, in ExpectAttachmentStencilTestData() argument
477 mipLevel, {}, &expectedStencil); in ExpectAttachmentStencilTestData()
/third_party/skia/src/gpu/dawn/
DGrDawnGpu.cpp375 dstTexture.mipLevel = i; in uploadTextureData()
431 dstTexture.mipLevel = i; in onClearBackendTexture()
752 for (uint32_t mipLevel = 0; mipLevel < texDesc.mipLevelCount; mipLevel++) { in onRegenerateMipMapLevels() local
758 dstViewDesc.baseMipLevel = mipLevel; in onRegenerateMipMapLevels()
789 srcCopyView.mipLevel = mipLevel; in onRegenerateMipMapLevels()
791 dstCopyView.mipLevel = mipLevel + 1; in onRegenerateMipMapLevels()
/third_party/skia/third_party/externals/swiftshader/src/Device/
DBlitter.cpp107 for(; subres.mipLevel <= lastMipLevel; subres.mipLevel++) in clear()
109 VkExtent3D extent = dest->getMipLevelExtent(aspect, subres.mipLevel); in clear()
120 assert_cast<uint32_t>(dest->rowPitchBytes(aspect, subres.mipLevel)), // dPitchB in clear()
122 assert_cast<uint32_t>(dest->slicePitchBytes(aspect, subres.mipLevel)), // dSliceB in clear()
252 for(; subres.mipLevel <= lastMipLevel; subres.mipLevel++) in fastClear()
254 int rowPitchBytes = dest->rowPitchBytes(aspect, subres.mipLevel); in fastClear()
255 int slicePitchBytes = dest->slicePitchBytes(aspect, subres.mipLevel); in fastClear()
256 VkExtent3D extent = dest->getMipLevelExtent(aspect, subres.mipLevel); in fastClear()
1866 VkExtent3D srcExtent = src->getMipLevelExtent(srcAspect, region.srcSubresource.mipLevel); in blit()
1906 …assert_cast<uint32_t>(src->rowPitchBytes(srcAspect, region.srcSubresource.mipLevel)), // sPitchB in blit()
[all …]

12345678