Home
last modified time | relevance | path

Searched refs:mipLevels (Results 1 – 25 of 44) sorted by relevance

12

/external/skia/src/gpu/vk/
DGrVkSampler.cpp26 uint32_t mipLevels) { in Create() argument
60 bool useMipMaps = GrSamplerParams::kMipMap_FilterMode == params.filterMode() && mipLevels > 1; in Create()
61 createInfo.maxLod = !useMipMaps ? 0.0f : (float)(mipLevels); in Create()
71 return new GrVkSampler(sampler, GenerateKey(params, mipLevels)); in Create()
79 uint16_t GrVkSampler::GenerateKey(const GrSamplerParams& params, uint32_t mipLevels) { in GenerateKey() argument
92 SkASSERT(mipLevels < 1024); in GenerateKey()
93 key |= (mipLevels << kMipLevelShift); in GenerateKey()
DGrVkTexture.cpp177 bool GrVkTexture::reallocForMipmap(GrVkGpu* gpu, uint32_t mipLevels) { in reallocForMipmap() argument
178 if (mipLevels == 1) { in reallocForMipmap()
203 imageDesc.fLevels = mipLevels; in reallocForMipmap()
218 GrVkImageView::kColor_Type, mipLevels); in reallocForMipmap()
242 this->texturePriv().setMaxMipMapLevel(mipLevels); in reallocForMipmap()
DGrVkSampler.h21 static GrVkSampler* Create(const GrVkGpu* gpu, const GrSamplerParams&, uint32_t mipLevels);
26 static uint16_t GenerateKey(const GrSamplerParams&, uint32_t mipLevels);
DGrVkTexture.h35 bool reallocForMipmap(GrVkGpu* gpu, uint32_t mipLevels);
DGrVkResourceProvider.cpp167 uint32_t mipLevels) { in findOrCreateCompatibleSampler() argument
168 GrVkSampler* sampler = fSamplers.find(GrVkSampler::GenerateKey(params, mipLevels)); in findOrCreateCompatibleSampler()
170 sampler = GrVkSampler::Create(fGpu, params, mipLevels); in findOrCreateCompatibleSampler()
DGrVkImage.h46 uint32_t mipLevels() const { return fInfo.fLevelCount; } in mipLevels() function
DGrVkResourceProvider.h102 GrVkSampler* findOrCreateCompatibleSampler(const GrSamplerParams&, uint32_t mipLevels);
/external/vulkan-validation-layers/layers/
Dimage.h51 uint32_t mipLevels; member
60 : mipLevels(0), arraySize(0), format(VK_FORMAT_UNDEFINED), samples(VK_SAMPLE_COUNT_1_BIT), in IMAGE_STATE()
63 …: mipLevels(pCreateInfo->mipLevels), arraySize(pCreateInfo->arrayLayers), format(pCreateInfo->form… in IMAGE_STATE()
Dimage.cpp356 if (pCreateInfo->mipLevels > ImageFormatProperties.maxMipLevels) { in CreateImage()
359 …ateImage mipLevels=%d exceeds allowable maximum supported by format of %d", pCreateInfo->mipLevels, in CreateImage()
473 if (pCreateInfo->subresourceRange.baseMipLevel >= imageEntry->mipLevels) { in CreateImageView()
476 … << pCreateInfo->image << " that only has " << imageEntry->mipLevels << " mip levels."; in CreateImageView()
841 if (regions[i].srcSubresource.mipLevel >= src_image_entry->mipLevels) { in PreCallValidateCmdCopyImage()
849 if (regions[i].dstSubresource.mipLevel >= dst_image_entry->mipLevels) { in PreCallValidateCmdCopyImage()
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesShaderIntrinsicsStorage.cpp361 pipelines.resize(imageSparseInfo.mipLevels); in recordCommands()
362 descriptorSets.resize(imageSparseInfo.mipLevels); in recordCommands()
363 imageSparseViews.resize(imageSparseInfo.mipLevels); in recordCommands()
364 imageTexelsViews.resize(imageSparseInfo.mipLevels); in recordCommands()
365 imageResidencyViews.resize(imageSparseInfo.mipLevels); in recordCommands()
382 descriptorPoolBuilder.addType(imageSparseDescType(), imageSparseInfo.mipLevels); in recordCommands()
383 descriptorPoolBuilder.addType(VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, imageSparseInfo.mipLevels); in recordCommands()
384 descriptorPoolBuilder.addType(VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, imageSparseInfo.mipLevels); in recordCommands()
386 …erface, getDevice(), VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, imageSparseInfo.mipLevels); in recordCommands()
388 …akeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_BIT, 0u, imageSparseInfo.mipLevels, 0u, imageSparse… in recordCommands()
[all …]
DvktSparseResourcesShaderIntrinsicsBase.cpp265 imageSparseInfo.mipLevels = getImageMaxMipLevels(imageFormatProperties, imageSparseInfo.extent); in iterate()
293 …arseInfo.extent, imageSparseInfo.arrayLayers, m_format, imageSparseInfo.mipLevels, BUFFER_IMAGE_CO… in iterate()
294 …arseInfo.extent, imageSparseInfo.arrayLayers, m_format, imageSparseInfo.mipLevels) / tcu::getPixel… in iterate()
368 if (aspectRequirements.imageMipTailFirstLod < imageSparseInfo.mipLevels) in iterate()
449 imageTexelsInfo.mipLevels = imageSparseInfo.mipLevels; in iterate()
477 std::vector <VkBufferImageCopy> bufferImageSparseCopy(imageSparseInfo.mipLevels); in iterate()
481 for (deUint32 mipLevelNdx = 0u; mipLevelNdx < imageSparseInfo.mipLevels; ++mipLevelNdx) in iterate()
499 for (deUint32 mipLevelNdx = 0u; mipLevelNdx < imageSparseInfo.mipLevels; ++mipLevelNdx) in iterate()
527 …akeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_BIT, 0u, imageSparseInfo.mipLevels, 0u, imageSparse… in iterate()
558 …extent, imageSparseInfo.arrayLayers, m_residencyFormat, imageSparseInfo.mipLevels, BUFFER_IMAGE_CO… in iterate()
[all …]
DvktSparseResourcesImageMemoryAliasing.cpp221 imageSparseInfo.mipLevels = getImageMaxMipLevels(imageFormatProperties, imageSparseInfo.extent); in iterate()
305 …_FORMAT_SINGLE_MIPTAIL_BIT) && aspectRequirements.imageMipTailFirstLod < imageSparseInfo.mipLevels) in iterate()
323 …_FORMAT_SINGLE_MIPTAIL_BIT) && aspectRequirements.imageMipTailFirstLod < imageSparseInfo.mipLevels) in iterate()
395 std::vector<VkBufferImageCopy> bufferImageCopy(imageSparseInfo.mipLevels); in iterate()
399 for (deUint32 mipLevelNdx = 0u; mipLevelNdx < imageSparseInfo.mipLevels; ++mipLevelNdx) in iterate()
409 …arseInfo.extent, imageSparseInfo.arrayLayers, m_format, imageSparseInfo.mipLevels, BUFFER_IMAGE_CO… in iterate()
416 for (deUint32 mipLevelNdx = 0u; mipLevelNdx < imageSparseInfo.mipLevels; ++mipLevelNdx) in iterate()
451 …makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_BIT, 0u, imageSparseInfo.mipLevels, 0u, imageSpars… in iterate()
467 …makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_BIT, 0u, imageSparseInfo.mipLevels, 0u, imageSpars… in iterate()
481 …makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_BIT, 0u, imageSparseInfo.mipLevels, 0u, imageSpars… in iterate()
[all …]
DvktSparseResourcesShaderIntrinsicsSampled.cpp775 …descriptorPoolBuilder.addType(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, imageSparseInfo.mipLevels in recordCommands()
777 …erface, getDevice(), VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, imageSparseInfo.mipLevels); in recordCommands()
832 …akeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_BIT, 0u, imageSparseInfo.mipLevels, 0u, imageSparse… in recordCommands()
869 imageSparseViews.resize(imageSparseInfo.mipLevels); in recordCommands()
870 imageTexelsViews.resize(imageSparseInfo.mipLevels); in recordCommands()
871 imageResidencyViews.resize(imageSparseInfo.mipLevels); in recordCommands()
872 m_framebuffers.resize(imageSparseInfo.mipLevels); in recordCommands()
873 descriptorSets.resize(imageSparseInfo.mipLevels); in recordCommands()
879 for (deUint32 mipLevelNdx = 0u; mipLevelNdx < imageSparseInfo.mipLevels; ++mipLevelNdx) in recordCommands()
989 …akeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_BIT, 0u, imageSparseInfo.mipLevels, 0u, imageSparse… in recordCommands()
[all …]
DvktSparseResourcesMipmapSparseResidency.cpp171 imageSparseInfo.mipLevels = getImageMaxMipLevels(imageFormatProperties, imageSparseInfo.extent); in iterate()
249 …_FORMAT_SINGLE_MIPTAIL_BIT) && aspectRequirements.imageMipTailFirstLod < imageSparseInfo.mipLevels) in iterate()
260 …_FORMAT_SINGLE_MIPTAIL_BIT) && aspectRequirements.imageMipTailFirstLod < imageSparseInfo.mipLevels) in iterate()
317 std::vector <VkBufferImageCopy> bufferImageCopy(imageSparseInfo.mipLevels); in iterate()
321 for (deUint32 mipmapNdx = 0; mipmapNdx < imageSparseInfo.mipLevels; mipmapNdx++) in iterate()
331 …arseInfo.extent, imageSparseInfo.arrayLayers, m_format, imageSparseInfo.mipLevels, BUFFER_IMAGE_CO… in iterate()
372 …makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_BIT, 0u, imageSparseInfo.mipLevels, 0u, imageSpars… in iterate()
388 …makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_BIT, 0u, imageSparseInfo.mipLevels, 0u, imageSpars… in iterate()
429 for (deUint32 mipmapNdx = 0; mipmapNdx < imageSparseInfo.mipLevels; ++mipmapNdx) in iterate()
DvktSparseResourcesImageSparseBinding.cpp172 imageSparseInfo.mipLevels = getImageMaxMipLevels(imageFormatProperties, imageSparseInfo.extent); in iterate()
234 std::vector<VkBufferImageCopy> bufferImageCopy(imageSparseInfo.mipLevels); in iterate()
238 for (deUint32 mipmapNdx = 0; mipmapNdx < imageSparseInfo.mipLevels; mipmapNdx++) in iterate()
248 …arseInfo.extent, imageSparseInfo.arrayLayers, m_format, imageSparseInfo.mipLevels, BUFFER_IMAGE_CO… in iterate()
287 …makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_BIT, 0u, imageSparseInfo.mipLevels, 0u, imageSpars… in iterate()
303 …makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_BIT, 0u, imageSparseInfo.mipLevels, 0u, imageSpars… in iterate()
344 for (deUint32 mipmapNdx = 0; mipmapNdx < imageSparseInfo.mipLevels; ++mipmapNdx) in iterate()
DvktSparseResourcesImageSparseResidency.cpp220 imageCreateInfo.mipLevels = 1u; in iterate()
334 …_FORMAT_SINGLE_MIPTAIL_BIT) && aspectRequirements.imageMipTailFirstLod < imageCreateInfo.mipLevels) in iterate()
345 …_FORMAT_SINGLE_MIPTAIL_BIT) && aspectRequirements.imageMipTailFirstLod < imageCreateInfo.mipLevels) in iterate()
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRender.cpp1025 deUint32 mipLevels, in uploadImage() argument
1143 mipLevels, // deUint32 mipLevels; in uploadImage()
1163 mipLevels, // deUint32 mipLevels; in uploadImage()
1247 deUint32 mipLevels, in clearImage() argument
1316 mipLevels, // deUint32 mipLevels; in clearImage()
1336 mipLevels, // deUint32 mipLevels; in clearImage()
1355 mipLevels, // deUint32 levelCount; in clearImage()
1470 const deUint32 mipLevels, in uploadSparseImage() argument
1769 mipLevels, // deUint32 mipLevels; in uploadSparseImage()
1789 mipLevels, // deUint32 mipLevels; in uploadSparseImage()
[all …]
DvktShaderRender.hpp547 deUint32 mipLevels,
552 deUint32 mipLevels,
561 const deUint32 mipLevels,
574 deUint32 mipLevels,
/external/deqp/external/vulkancts/modules/vulkan/synchronization/
DvktSynchronizationSmokeTests.cpp212 deUint32 mipLevels; member
247 imageCreateParams.mipLevels = imageParameters.mipLevels; in createVulkanImage()
269 subresourceRange.levelCount = imageParameters.mipLevels; in createVulkanImage()
460 deUint32 mipLevels; member
507 renderBarrier.subresourceRange.levelCount = renderInfo.mipLevels; in recordRenderPass()
728 imageParameters.mipLevels = 1; in generateWork()
937 renderInfo.mipLevels = 1; in generateWork()
/external/skia/src/gpu/
DGrGpu.cpp474 void GrGpu::didWriteToSurface(GrSurface* surface, const SkIRect* bounds, uint32_t mipLevels) const { in didWriteToSurface()
482 if (texture && 1 == mipLevels) { in didWriteToSurface()
DGrGpu.h518 void didWriteToSurface(GrSurface* surface, const SkIRect* bounds, uint32_t mipLevels = 1) const;
/external/deqp/external/vulkancts/modules/vulkan/memory/
DvktMemoryRequirementsTests.cpp310 …MAGE_CREATE_CUBE_COMPATIBLE_BIT) || info.tiling != VK_IMAGE_TILING_OPTIMAL || info.mipLevels > 1u)) in isImageSupported()
429 if (info.mipLevels > imageFormatProperties.maxMipLevels) in isImageSupported()
/external/deqp/external/vulkancts/modules/vulkan/texture/
DvktTextureTestUtil.cpp319 const deUint32 mipLevels = textureData->getNumLevels(); in updateTextureData() local
334 if (imageFormatProperties.maxMipLevels < mipLevels) in updateTextureData()
357 mipLevels, // deUint32 mipLevels; in updateTextureData()
372 updateTextureViewMipLevels(0, mipLevels - 1); in updateTextureData()
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineMultisampleInterpolationTests.cpp270 imageMSInfo.mipLevels = 1u; in iterate()
367 … = makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_BIT, 0u, imageMSInfo.mipLevels, 0u, imageMSInfo… in iterate()
693 …mageSizeInBytes(imageRSInfo.extent, imageRSInfo.arrayLayers, m_imageFormat, imageRSInfo.mipLevels); in iterate()
/external/vulkan-validation-layers/tests/
Dlayer_validation_tests.cpp1318 image_create_info.mipLevels = 1; in TEST_F()
1735 image_create_info.mipLevels = 1; in TEST_F()
1806 image_create_info.mipLevels = 1; in TEST_F()
2224 image_create_info.mipLevels = 1; in TEST_F()
2299 image_create_info.mipLevels = 1; in TEST_F()
2365 image_create_info.mipLevels = 1; in TEST_F()
2424 image_create_info.mipLevels = 1; in TEST_F()
2611 image_create_info.mipLevels = 1; in TEST_F()
4093 image_create_info.mipLevels = 1; in TEST_F()
4168 image_ci.mipLevels = 1; in TEST_F()
[all …]

12