Home
last modified time | relevance | path

Searched refs:baseMipLevel (Results 1 – 25 of 126) sorted by relevance

123456

/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
DVkImageView.cpp75 range.baseMipLevel, in ResolveRemainingLevelsLayers()
76 …(range.levelCount == VK_REMAINING_MIP_LEVELS) ? (image->getMipLevels() - range.baseMipLevel) : ran… in ResolveRemainingLevelsLayers()
203 sr.baseMipLevel = subresourceRange.baseMipLevel; in clear()
235 subresourceRange.baseMipLevel, in resolve()
242 resolveAttachment->subresourceRange.baseMipLevel, in resolve()
248 subresourceRange.baseMipLevel); in resolve()
265 subresourceRange.baseMipLevel, in resolve()
272 resolveAttachment->subresourceRange.baseMipLevel, in resolve()
278 subresourceRange.baseMipLevel); in resolve()
326 return getImage(usage)->rowPitchBytes(aspect, subresourceRange.baseMipLevel + mipLevel); in rowPitchBytes()
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DTextureD3D12.cpp423 D3D12_RENDER_TARGET_VIEW_DESC Texture::GetRTVDescriptor(uint32_t baseMipLevel, in GetRTVDescriptor() argument
433 ASSERT(baseMipLevel == 0); in GetRTVDescriptor()
445 rtvDesc.Texture2DArray.MipSlice = baseMipLevel; in GetRTVDescriptor()
451 D3D12_DEPTH_STENCIL_VIEW_DESC Texture::GetDSVDescriptor(uint32_t baseMipLevel) const { in GetDSVDescriptor()
455 ASSERT(baseMipLevel == 0); in GetDSVDescriptor()
461 dsvDesc.Texture2D.MipSlice = baseMipLevel; in GetDSVDescriptor()
468 uint32_t baseMipLevel, in ClearTexture() argument
474 SetIsSubresourceContentInitialized(baseMipLevel, levelCount, baseArrayLayer, in ClearTexture()
487 D3D12_DEPTH_STENCIL_VIEW_DESC dsvDesc = GetDSVDescriptor(baseMipLevel); in ClearTexture()
507 for (uint32_t i = baseMipLevel; i < baseMipLevel + levelCount; i++) { in ClearTexture()
[all …]
DTextureD3D12.h44 D3D12_RENDER_TARGET_VIEW_DESC GetRTVDescriptor(uint32_t baseMipLevel,
47 D3D12_DEPTH_STENCIL_VIEW_DESC GetDSVDescriptor(uint32_t baseMipLevel) const;
49 uint32_t baseMipLevel,
58 uint32_t baseMipLevel,
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DSubresourceRenderAttachmentTests.cpp33 uint32_t baseMipLevel) { in DoSingleTest() argument
37 renderTargetViewDesc.baseMipLevel = baseMipLevel; in DoSingleTest()
78 const uint32_t renderTargetSize = textureSize >> baseMipLevel; in DoSingleTest()
83 {renderTargetSize, renderTargetSize}, baseMipLevel); in DoSingleTest()
89 {renderTargetSize, renderTargetSize}, baseMipLevel); in DoSingleTest()
95 {renderTargetSize, renderTargetSize}, baseMipLevel, in DoSingleTest()
DTextureSubresourceTests.cpp39 uint32_t baseMipLevel, in CreateTextureView() argument
45 viewDesc.baseMipLevel = baseMipLevel; in CreateTextureView()
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DSubresource.cpp102 baseMipLevel(mipLevelParams.first), in SubresourceRange()
107 : aspects(Aspect::None), baseArrayLayer(0), layerCount(0), baseMipLevel(0), levelCount(0) { in SubresourceRange()
111 SubresourceRange SubresourceRange::SingleMipAndLayer(uint32_t baseMipLevel, in SingleMipAndLayer() argument
114 return {aspects, {baseArrayLayer, 1}, {baseMipLevel, 1}}; in SingleMipAndLayer()
120 uint32_t baseMipLevel) { in MakeSingle() argument
122 return {aspect, {baseArrayLayer, 1}, {baseMipLevel, 1}}; in MakeSingle()
DSubresource.h80 uint32_t baseMipLevel;
83 static SubresourceRange SingleMipAndLayer(uint32_t baseMipLevel,
88 uint32_t baseMipLevel);
DTexture.cpp365 uint64_t(descriptor->baseMipLevel) + uint64_t(descriptor->mipLevelCount) > in ValidateTextureViewDescriptor()
369 descriptor->baseMipLevel, descriptor->mipLevelCount, texture->GetNumMipLevels()); in ValidateTextureViewDescriptor()
431 desc.mipLevelCount = texture->GetNumMipLevels() - desc.baseMipLevel; in GetTextureViewDescriptorWithDefaults()
578 for (uint32_t mipLevel = range.baseMipLevel; in IsSubresourceContentInitialized()
579 mipLevel < range.baseMipLevel + range.levelCount; ++mipLevel) { in IsSubresourceContentInitialized()
597 for (uint32_t mipLevel = range.baseMipLevel; in SetIsSubresourceContentInitialized()
598 mipLevel < range.baseMipLevel + range.levelCount; ++mipLevel) { in SetIsSubresourceContentInitialized()
700 {descriptor->baseMipLevel, descriptor->mipLevelCount}}) { in TextureViewBase()
754 return mRange.baseMipLevel; in GetBaseMipLevel()
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/opengl/
DTextureGL.cpp215 void Texture::ClearTexture(GLint baseMipLevel, in ClearTexture() argument
247 for (GLint level = baseMipLevel; level < baseMipLevel + levelCount; ++level) { in ClearTexture()
253 SetIsSubresourceContentInitialized(baseMipLevel, levelCount, baseArrayLayer, layerCount); in ClearTexture()
256 void Texture::EnsureSubresourceContentInitialized(uint32_t baseMipLevel, in EnsureSubresourceContentInitialized() argument
263 if (!IsSubresourceContentInitialized(baseMipLevel, levelCount, baseArrayLayer, in EnsureSubresourceContentInitialized()
265 ClearTexture(baseMipLevel, levelCount, baseArrayLayer, layerCount); in EnsureSubresourceContentInitialized()
287 textureViewFormat.internalFormat, descriptor->baseMipLevel, in TextureView()
DTextureGL.h45 void EnsureSubresourceContentInitialized(uint32_t baseMipLevel,
52 void ClearTexture(GLint baseMipLevel,
/third_party/mesa3d/src/amd/vulkan/
Dradv_meta_fast_clear.c558 width = radv_minify(image->info.width, range->baseMipLevel + level); in radv_process_color_image_layer()
559 height = radv_minify(image->info.height, range->baseMipLevel + level); in radv_process_color_image_layer()
570 .baseMipLevel = range->baseMipLevel + level, in radv_process_color_image_layer()
661 if (radv_dcc_enabled(image, subresourceRange->baseMipLevel) && in radv_process_color_image()
684 pred_offset += 8 * subresourceRange->baseMipLevel; in radv_process_color_image()
699 if (op == DCC_DECOMPRESS && !radv_dcc_enabled(image, subresourceRange->baseMipLevel + l)) in radv_process_color_image()
702 width = radv_minify(image->info.width, subresourceRange->baseMipLevel + l); in radv_process_color_image()
703 height = radv_minify(image->info.height, subresourceRange->baseMipLevel + l); in radv_process_color_image()
728 pred_offset += 8 * subresourceRange->baseMipLevel; in radv_process_color_image()
830 if (!radv_dcc_enabled(image, subresourceRange->baseMipLevel + l)) in radv_decompress_dcc_compute()
[all …]
Dradv_meta_decompress.c489 width = radv_minify(image->info.width, range->baseMipLevel + level); in radv_process_depth_image_layer()
490 height = radv_minify(image->info.height, range->baseMipLevel + level); in radv_process_depth_image_layer()
501 .baseMipLevel = range->baseMipLevel + level, in radv_process_depth_image_layer()
585 if (!radv_htile_enabled(image, subresourceRange->baseMipLevel + l)) in radv_process_depth_stencil()
588 uint32_t width = radv_minify(image->info.width, subresourceRange->baseMipLevel + l); in radv_process_depth_stencil()
589 uint32_t height = radv_minify(image->info.height, subresourceRange->baseMipLevel + l); in radv_process_depth_stencil()
637 if (!radv_htile_enabled(image, subresourceRange->baseMipLevel + l)) in radv_expand_depth_stencil_compute()
640 width = radv_minify(image->info.width, subresourceRange->baseMipLevel + l); in radv_expand_depth_stencil_compute()
641 height = radv_minify(image->info.height, subresourceRange->baseMipLevel + l); in radv_expand_depth_stencil_compute()
652 .baseMipLevel = subresourceRange->baseMipLevel + l, in radv_expand_depth_stencil_compute()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DTextureViewValidationTests.cpp71 descriptor.baseMipLevel = 0; in CreateDefaultViewDescriptor()
135 descriptor.baseMipLevel = 0; in TEST_F()
137 descriptor.baseMipLevel = 1; in TEST_F()
139 descriptor.baseMipLevel = kDefaultMipLevels - 1; in TEST_F()
141 descriptor.baseMipLevel = kDefaultMipLevels; in TEST_F()
148 descriptor.baseMipLevel = 0; in TEST_F()
151 descriptor.baseMipLevel = 1; in TEST_F()
154 descriptor.baseMipLevel = kDefaultMipLevels - 1; in TEST_F()
157 descriptor.baseMipLevel = kDefaultMipLevels; in TEST_F()
297 descriptor.baseMipLevel = 0; in TEST_F()
[all …]
DTextureSubresourceTests.cpp40 uint32_t baseMipLevel, in CreateTextureView() argument
46 viewDesc.baseMipLevel = baseMipLevel; in CreateTextureView()
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_image.c223 uint32_t width = u_minify(layout->width0, range->baseMipLevel); in tu_image_view_init()
224 uint32_t height = u_minify(layout->height0, range->baseMipLevel); in tu_image_view_init()
227 storage_depth = u_minify(image->layout[0].depth0, range->baseMipLevel); in tu_image_view_init()
240 fdl_surface_offset(layout, range->baseMipLevel, range->baseArrayLayer); in tu_image_view_init()
242 fdl_ubwc_offset(layout, range->baseMipLevel, range->baseArrayLayer); in tu_image_view_init()
244 uint32_t pitch = fdl_pitch(layout, range->baseMipLevel); in tu_image_view_init()
245 uint32_t ubwc_pitch = fdl_ubwc_pitch(layout, range->baseMipLevel); in tu_image_view_init()
246 uint32_t layer_size = fdl_layer_stride(layout, range->baseMipLevel); in tu_image_view_init()
256 fmt.tile_mode = fdl_tile_mode(layout, range->baseMipLevel); in tu_image_view_init()
258 bool ubwc_enabled = fdl_ubwc_enabled(layout, range->baseMipLevel); in tu_image_view_init()
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/
DTexture.cpp147 descriptor.baseMipLevel = 0; in MakeDefaultTextureViewDescriptor()
268 if (uint64_t(descriptor->baseMipLevel) + uint64_t(descriptor->mipLevelCount) > in ValidateTextureViewDescriptor()
365 bool TextureBase::IsSubresourceContentInitialized(uint32_t baseMipLevel, in IsSubresourceContentInitialized() argument
370 for (uint32_t mipLevel = baseMipLevel; mipLevel < baseMipLevel + levelCount; ++mipLevel) { in IsSubresourceContentInitialized()
383 void TextureBase::SetIsSubresourceContentInitialized(uint32_t baseMipLevel, in SetIsSubresourceContentInitialized() argument
388 for (uint32_t mipLevel = baseMipLevel; mipLevel < baseMipLevel + levelCount; ++mipLevel) { in SetIsSubresourceContentInitialized()
478 mBaseMipLevel(descriptor->baseMipLevel), in TextureViewBase()
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DTextureVk.cpp435 range.baseMipLevel = 0; in Texture()
522 barrier.subresourceRange.baseMipLevel = 0; in TransitionUsageNow()
535 uint32_t baseMipLevel, in ClearTexture() argument
541 range.baseMipLevel = baseMipLevel; in ClearTexture()
565 SetIsSubresourceContentInitialized(baseMipLevel, levelCount, baseArrayLayer, layerCount); in ClearTexture()
569 uint32_t baseMipLevel, in EnsureSubresourceContentInitialized() argument
576 if (!IsSubresourceContentInitialized(baseMipLevel, levelCount, baseArrayLayer, in EnsureSubresourceContentInitialized()
586 ClearTexture(commands, baseMipLevel, levelCount, baseArrayLayer, layerCount); in EnsureSubresourceContentInitialized()
605 createInfo.subresourceRange.baseMipLevel = descriptor->baseMipLevel; in TextureView()
DTextureVk.h43 uint32_t baseMipLevel,
51 uint32_t baseMipLevel,
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DTextureGL.cpp264 for (uint32_t level = range.baseMipLevel; in ClearTexture()
265 level < range.baseMipLevel + range.levelCount; ++level) { in ClearTexture()
352 for (uint32_t level = range.baseMipLevel; in ClearTexture()
353 level < range.baseMipLevel + range.levelCount; ++level) { in ClearTexture()
454 Extent3D largestMipSize = GetMipLevelPhysicalSize(range.baseMipLevel); in ClearTexture()
485 for (uint32_t level = range.baseMipLevel; level < range.baseMipLevel + range.levelCount; in ClearTexture()
555 descriptor->baseMipLevel, descriptor->mipLevelCount, in TextureView()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_image.c118 image->pimage.layout.nr_slices - pCreateInfo->subresourceRange.baseMipLevel : in panvk_per_arch()
126 view->pview.first_level = pCreateInfo->subresourceRange.baseMipLevel; in panvk_per_arch()
127 view->pview.last_level = pCreateInfo->subresourceRange.baseMipLevel + level_count - 1; in panvk_per_arch()
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/
DGPUTexture.cpp40 if (!conv(desc.baseMipLevel, descriptor.baseMipLevel) || // in createView()
/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/validation/
DRenderPassDescriptorValidationTests.cpp216 baseDescriptor.baseMipLevel = 0; in TEST_F()
309 baseDescriptor.baseMipLevel = 0; in TEST_F()
338 descriptor.baseMipLevel = 0; in TEST_F()
350 descriptor.baseMipLevel = 0; in TEST_F()
362 descriptor.baseMipLevel = kLevelCount - 1; in TEST_F()
374 descriptor.baseMipLevel = kLevelCount - 1; in TEST_F()
563 firstMipLevelDescriptor.baseMipLevel = 0; in TEST_F()
575 secondMipLevelDescriptor.baseMipLevel = 1; in TEST_F()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DSubresourceStorageTests.cpp43 for (uint32_t level = range.baseMipLevel; in Update()
44 level < range.baseMipLevel + range.levelCount; level++) { in Update()
138 EXPECT_LT(range.baseMipLevel, mMipLevelCount); in CheckSameAs()
139 EXPECT_LE(range.baseMipLevel + range.levelCount, mMipLevelCount); in CheckSameAs()
144 for (uint32_t level = range.baseMipLevel; in CheckSameAs()
145 level < range.baseMipLevel + range.levelCount; level++) { in CheckSameAs()
170 range.baseMipLevel == 0) { in CheckAspectCompressed()
199 range.baseArrayLayer == layer && range.baseMipLevel == 0) { in CheckLayerCompressed()
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DTextureD3D12.cpp826 bool isFullRange = range.baseArrayLayer == 0 && range.baseMipLevel == 0 && in TransitionSubresourceRange()
840 GetSubresourceIndex(range.baseMipLevel + mipLevel, in TransitionSubresourceRange()
1003 for (uint32_t level = range.baseMipLevel; level < range.baseMipLevel + range.levelCount; in ClearTexture()
1054 for (uint32_t level = range.baseMipLevel; level < range.baseMipLevel + range.levelCount; in ClearTexture()
1091 Extent3D largestMipSize = GetMipLevelPhysicalSize(range.baseMipLevel); in ClearTexture()
1105 for (uint32_t level = range.baseMipLevel; in ClearTexture()
1106 level < range.baseMipLevel + range.levelCount; ++level) { in ClearTexture()
1264 mSrvDesc.Texture2DArray.MostDetailedMip = descriptor->baseMipLevel; in TextureView()
1275 mSrvDesc.TextureCubeArray.MostDetailedMip = descriptor->baseMipLevel; in TextureView()
1282 mSrvDesc.Texture3D.MostDetailedMip = descriptor->baseMipLevel; in TextureView()
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DTextureVk.cpp180 barrier.subresourceRange.baseMipLevel = range.baseMipLevel; in BuildMemoryBarrier()
779 barrier.subresourceRange.baseMipLevel = 0; in ExportExternalTexture()
1151 Extent3D largestMipSize = GetMipLevelPhysicalSize(range.baseMipLevel); in ClearTexture()
1166 for (uint32_t level = range.baseMipLevel; level < range.baseMipLevel + range.levelCount; in ClearTexture()
1169 imageRange.baseMipLevel = level; in ClearTexture()
1198 for (uint32_t level = range.baseMipLevel; level < range.baseMipLevel + range.levelCount; in ClearTexture()
1200 imageRange.baseMipLevel = level; in ClearTexture()
1322 createInfo.subresourceRange.baseMipLevel = subresources.baseMipLevel; in Initialize()

123456