/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | Subresource.cpp | 36 if (format.aspects == Aspect::Color) { in ConvertViewAspect() 52 return format.aspects; in SelectFormatAspects() 54 return format.aspects & Aspect::Depth; in SelectFormatAspects() 56 return format.aspects & Aspect::Stencil; in SelectFormatAspects() 58 return format.aspects & Aspect::Plane0; in SelectFormatAspects() 60 return format.aspects & Aspect::Plane1; in SelectFormatAspects() 81 uint8_t GetAspectCount(Aspect aspects) { in GetAspectCount() argument 85 if (aspects == Aspect::Color || aspects == Aspect::Depth || in GetAspectCount() 86 aspects == Aspect::CombinedDepthStencil) { in GetAspectCount() 88 } else if (aspects == (Aspect::Plane0 | Aspect::Plane1)) { in GetAspectCount() [all …]
|
D | CommandBufferStateTracker.cpp | 195 void CommandBufferStateTracker::RecomputeLazyAspects(ValidationAspects aspects) { in RecomputeLazyAspects() argument 197 ASSERT((aspects & ~kLazyAspects).none()); in RecomputeLazyAspects() 199 if (aspects[VALIDATION_ASPECT_BIND_GROUPS]) { in RecomputeLazyAspects() 217 if (aspects[VALIDATION_ASPECT_VERTEX_BUFFERS]) { in RecomputeLazyAspects() 227 if (aspects[VALIDATION_ASPECT_INDEX_BUFFER] && mIndexBufferSet) { in RecomputeLazyAspects() 236 MaybeError CommandBufferStateTracker::CheckMissingAspects(ValidationAspects aspects) { in CheckMissingAspects() argument 237 if (!aspects.any()) { in CheckMissingAspects() 241 DAWN_INVALID_IF(aspects[VALIDATION_ASPECT_PIPELINE], "No pipeline set."); in CheckMissingAspects() 243 if (DAWN_UNLIKELY(aspects[VALIDATION_ASPECT_INDEX_BUFFER])) { in CheckMissingAspects() 272 DAWN_INVALID_IF(aspects[VALIDATION_ASPECT_VERTEX_BUFFERS], in CheckMissingAspects() [all …]
|
D | Subresource.h | 72 SubresourceRange(Aspect aspects, 77 Aspect aspects; 85 Aspect aspects); 90 static SubresourceRange MakeFull(Aspect aspects, uint32_t layerCount, uint32_t levelCount); 95 uint8_t GetAspectCount(Aspect aspects);
|
D | Format.cpp | 88 return aspects == Aspect::Color; in IsColor() 92 return (aspects & Aspect::Depth) != 0; in HasDepth() 96 return (aspects & Aspect::Stencil) != 0; in HasStencil() 100 return (aspects & (Aspect::Depth | Aspect::Stencil)) != 0; in HasDepthOrStencil() 104 return (aspects & (Aspect::Plane0 | Aspect::Plane1)) != 0; in IsMultiPlanar() 113 ASSERT(aspects & aspect); in GetAspectInfo() 115 ASSERT(aspectIndex < GetAspectCount(aspects)); in GetAspectInfo() 152 const bool hasMultipleAspects = !HasOneBit(format.aspects); in BuildFormatTable() 169 internalFormat.aspects = Aspect::Color; in BuildFormatTable() 207 internalFormat.aspects = Aspect::Depth; in BuildFormatTable() [all …]
|
D | CommandBuffer.cpp | 152 depthRange.aspects = range.aspects & Aspect::Depth; in LazyClearRenderPassAttachments() 155 stencilRange.aspects = range.aspects & Aspect::Stencil; in LazyClearRenderPassAttachments()
|
D | CommandValidation.cpp | 362 !HasOneBit(format.aspects), in SingleAspectUsedByImageCopyTexture() 367 Aspect single = format.aspects; in SingleAspectUsedByImageCopyTexture() 371 ASSERT(format.aspects & Aspect::Depth); in SingleAspectUsedByImageCopyTexture() 374 ASSERT(format.aspects & Aspect::Stencil); in SingleAspectUsedByImageCopyTexture() 406 SelectFormatAspects(format, src.aspect) != format.aspects, in ValidateTextureToTextureCopyCommonRestrictions() 411 SelectFormatAspects(format, dst.aspect) != format.aspects, in ValidateTextureToTextureCopyCommonRestrictions()
|
D | CommandBufferStateTracker.h | 62 void RecomputeLazyAspects(ValidationAspects aspects); 63 MaybeError CheckMissingAspects(ValidationAspects aspects);
|
/third_party/mesa3d/src/vulkan/util/ |
D | vk_format.h | 51 const VkImageAspectFlags aspects = vk_format_aspects(format); in vk_format_is_depth_or_stencil() local 52 return aspects & (VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT); in vk_format_is_depth_or_stencil() 58 const VkImageAspectFlags aspects = vk_format_aspects(format); in vk_format_has_depth() local 59 return aspects & VK_IMAGE_ASPECT_DEPTH_BIT; in vk_format_has_depth() 65 const VkImageAspectFlags aspects = vk_format_aspects(format); in vk_format_has_stencil() local 66 return aspects & VK_IMAGE_ASPECT_STENCIL_BIT; in vk_format_has_stencil()
|
/third_party/mesa3d/src/vulkan/runtime/ |
D | vk_image.c | 87 if (image->aspects & VK_IMAGE_ASPECT_STENCIL_BIT) { in vk_image_init() 180 image->aspects = vk_format_aspects(format); in vk_image_set_format() 187 assert(!(aspect_mask & ~image->aspects)); in vk_image_usage() 246 assert(image->aspects & VK_IMAGE_ASPECT_ANY_COLOR_MASK_MESA); in vk_image_expand_aspect_mask() 247 return image->aspects; in vk_image_expand_aspect_mask() 249 assert(aspect_mask && !(aspect_mask & ~image->aspects)); in vk_image_expand_aspect_mask() 376 if (image->aspects == VK_IMAGE_ASPECT_COLOR_BIT || in vk_image_view_init() 377 image->aspects == VK_IMAGE_ASPECT_DEPTH_BIT || in vk_image_view_init() 378 image->aspects == VK_IMAGE_ASPECT_STENCIL_BIT) { in vk_image_view_init() 382 image_view->aspects = range->aspectMask; in vk_image_view_init() [all …]
|
D | vk_render_pass.c | 335 .aspects = vk_format_aspects(desc->format), in vk_render_pass_attachment_init() 370 .aspects = vk_format_aspects(pass_att->format), in vk_subpass_attachment_init() 386 assert(!(ref->aspectMask & ~att->aspects)); in vk_subpass_attachment_init() 387 att->aspects = ref->aspectMask; in vk_subpass_attachment_init() 392 assert(att->aspects == VK_IMAGE_ASPECT_COLOR_BIT); in vk_subpass_attachment_init() 396 assert(!(att->aspects & ~(VK_IMAGE_ASPECT_DEPTH_BIT | in vk_subpass_attachment_init() 628 VkImageAspectFlags aspects = in vk_common_CreateRenderPass2() local 629 subpass->input_attachments[a].aspects; in vk_common_CreateRenderPass2() 630 if (aspects & VK_IMAGE_ASPECT_DEPTH_BIT) { in vk_common_CreateRenderPass2() 637 if (aspects & VK_IMAGE_ASPECT_STENCIL_BIT) { in vk_common_CreateRenderPass2() [all …]
|
D | vk_image.h | 48 VkImageAspectFlags aspects; member 268 VkImageAspectFlags aspects; member 306 .aspectMask = view->aspects, in vk_image_view_subresource_range()
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
D | EnumMaskIteratorTests.cpp | 57 TestAspect aspects = TestAspect::Color | TestAspect::Depth | TestAspect::Stencil; in TEST() local 58 for (TestAspect aspect : IterateEnumMask(aspects)) { in TEST() 66 TestAspect aspects = TestAspect::Stencil | TestAspect::Color; in TEST() local 67 for (TestAspect aspect : IterateEnumMask(aspects)) { in TEST()
|
D | SubresourceStorageTests.cpp | 28 FakeStorage(Aspect aspects, in FakeStorage() 32 : mAspects(aspects), 35 mData(GetAspectCount(aspects) * arrayLayerCount * mipLevelCount, initialValue) { 40 for (Aspect aspect : IterateEnumMask(range.aspects)) { in Update() 133 EXPECT_TRUE(IsSubset(range.aspects, mAspects)); in CheckSameAs() 141 for (Aspect aspect : IterateEnumMask(range.aspects)) { in CheckSameAs() 168 if (range.aspects == aspect && range.layerCount == layerCount && in CheckAspectCompressed() 198 if (range.aspects == aspect && range.layerCount == 1 && range.levelCount == levelCount && in CheckLayerCompressed()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | TextureGL.cpp | 227 if ((range.aspects & (Aspect::Depth | Aspect::Stencil)) != 0) { in ClearTexture() 230 if (range.aspects & Aspect::Depth) { in ClearTexture() 233 if (range.aspects & Aspect::Stencil) { in ClearTexture() 237 auto DoClear = [&](Aspect aspects) { in ClearTexture() argument 238 if (aspects == (Aspect::Depth | Aspect::Stencil)) { in ClearTexture() 240 } else if (aspects == Aspect::Depth) { in ClearTexture() 242 } else if (aspects == Aspect::Stencil) { in ClearTexture() 254 if (range.aspects == (Aspect::Depth | Aspect::Stencil)) { in ClearTexture() 256 } else if (range.aspects == Aspect::Depth) { in ClearTexture() 258 } else if (range.aspects == Aspect::Stencil) { in ClearTexture() [all …]
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | TextureVk.cpp | 179 barrier.subresourceRange.aspectMask = VulkanAspectMask(range.aspects); in BuildMemoryBarrier() 778 barrier.subresourceRange.aspectMask = VulkanAspectMask(GetFormat().aspects); in ExportExternalTexture() 874 return VulkanAspectMask(GetFormat().aspects); in GetVkAspectMask() 876 ASSERT(GetFormat().aspects & Aspect::Depth); in GetVkAspectMask() 879 ASSERT(GetFormat().aspects & Aspect::Stencil); in GetVkAspectMask() 902 SubresourceRange::SingleMipAndLayer(0, 0, GetFormat().aspects))); in TweakTransitionForExternalUsage() 976 return GetFormat().aspects == (Aspect::Depth | Aspect::Stencil); in ShouldCombineDepthStencilBarriers() 983 return GetFormat().aspects; in ComputeAspectsForSubresourceStorage() 1000 updateRange.aspects = Aspect::CombinedDepthStencil; in TransitionUsageForPass() 1090 updatedRange.aspects = Aspect::CombinedDepthStencil; in TransitionUsageAndGetResourceBarrier() [all …]
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_meta_clear.c | 438 create_depthstencil_pipeline(struct radv_device *device, VkImageAspectFlags aspects, in create_depthstencil_pipeline() argument 460 .depthTestEnable = !!(aspects & VK_IMAGE_ASPECT_DEPTH_BIT), in create_depthstencil_pipeline() 462 .depthWriteEnable = !!(aspects & VK_IMAGE_ASPECT_DEPTH_BIT), in create_depthstencil_pipeline() 464 .stencilTestEnable = !!(aspects & VK_IMAGE_ASPECT_STENCIL_BIT), in create_depthstencil_pipeline() 488 (aspects & VK_IMAGE_ASPECT_DEPTH_BIT) ? VK_FORMAT_D32_SFLOAT : VK_FORMAT_UNDEFINED, in create_depthstencil_pipeline() 490 (aspects & VK_IMAGE_ASPECT_STENCIL_BIT) ? VK_FORMAT_S8_UINT : VK_FORMAT_UNDEFINED, in create_depthstencil_pipeline() 497 if (aspects & VK_IMAGE_ASPECT_DEPTH_BIT) { in create_depthstencil_pipeline() 500 if (aspects & VK_IMAGE_ASPECT_STENCIL_BIT) { in create_depthstencil_pipeline() 514 VkImageAspectFlags aspects, VkImageLayout layout, bool in_render_loop, in depth_view_can_fast_clear() argument 527 (((aspects & VK_IMAGE_ASPECT_DEPTH_BIT) && clear_value.depth != 0.0 && in depth_view_can_fast_clear() [all …]
|
D | radv_meta_resolve_cs.c | 571 VkImageAspectFlags aspects, VkResolveModeFlagBits resolve_mode) in emit_depth_stencil_resolve() argument 608 if (aspects == VK_IMAGE_ASPECT_DEPTH_BIT) in emit_depth_stencil_resolve() 614 assert(aspects == VK_IMAGE_ASPECT_DEPTH_BIT); in emit_depth_stencil_resolve() 618 if (aspects == VK_IMAGE_ASPECT_DEPTH_BIT) in emit_depth_stencil_resolve() 624 if (aspects == VK_IMAGE_ASPECT_DEPTH_BIT) in emit_depth_stencil_resolve() 634 int index = aspects == VK_IMAGE_ASPECT_DEPTH_BIT ? DEPTH_RESOLVE : STENCIL_RESOLVE; in emit_depth_stencil_resolve() 833 VkImageAspectFlags aspects, in radv_depth_stencil_resolve_subpass_cs() argument 858 region.srcSubresource.aspectMask = aspects; in radv_depth_stencil_resolve_subpass_cs() 881 .aspectMask = aspects, in radv_depth_stencil_resolve_subpass_cs() 899 .aspectMask = aspects, in radv_depth_stencil_resolve_subpass_cs() [all …]
|
/third_party/mesa3d/src/intel/vulkan/ |
D | anv_image.c | 650 image->vk.aspects & (VK_IMAGE_ASPECT_ANY_COLOR_BIT_ANV | in add_aux_state_tracking_buffer() 1159 assert(!(image->vk.aspects & VK_IMAGE_ASPECT_DEPTH_BIT)); in check_drm_format_mod() 1160 assert(!(image->vk.aspects & VK_IMAGE_ASPECT_STENCIL_BIT)); in check_drm_format_mod() 1211 u_foreach_bit(b, image->vk.aspects) { in add_all_surfaces_implicit_layout() 1302 assert(image->vk.aspects == VK_IMAGE_ASPECT_COLOR_BIT); in add_all_surfaces_explicit_layout() 1304 assert(!(image->vk.aspects & ~VK_IMAGE_ASPECT_PLANES_BITS_ANV)); in add_all_surfaces_explicit_layout() 1329 u_foreach_bit(b, image->vk.aspects) { in add_all_surfaces_explicit_layout() 1707 VkImageAspectFlags aspects, in anv_image_get_memory_requirements() argument 1758 assert(util_bitcount(aspects) == 1); in anv_image_get_memory_requirements() 1759 assert(aspects & image->vk.aspects); in anv_image_get_memory_requirements() [all …]
|
D | anv_blorp.c | 1073 if (image->vk.aspects & VK_IMAGE_ASPECT_DEPTH_BIT) { in anv_CmdClearDepthStencilImage() 1083 if (image->vk.aspects & VK_IMAGE_ASPECT_STENCIL_BIT) { in anv_CmdClearDepthStencilImage() 1559 assert(image->vk.aspects == VK_IMAGE_ASPECT_COLOR_BIT); in anv_image_clear_color() 1588 VkImageAspectFlags aspects, in anv_image_clear_depth_stencil() argument 1595 assert(image->vk.aspects & (VK_IMAGE_ASPECT_DEPTH_BIT | in anv_image_clear_depth_stencil() 1603 if (aspects & VK_IMAGE_ASPECT_DEPTH_BIT) { in anv_image_clear_depth_stencil() 1611 if (aspects & VK_IMAGE_ASPECT_STENCIL_BIT) { in anv_image_clear_depth_stencil() 1634 aspects & VK_IMAGE_ASPECT_DEPTH_BIT, in anv_image_clear_depth_stencil() 1636 (aspects & VK_IMAGE_ASPECT_STENCIL_BIT) ? 0xff : 0, in anv_image_clear_depth_stencil() 1649 if ((aspects & VK_IMAGE_ASPECT_STENCIL_BIT) && in anv_image_clear_depth_stencil() [all …]
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
D | DepthStencilSamplingTests.cpp | 67 void GenerateSamplingShader(const std::vector<TestAspect>& aspects, in GenerateSamplingShader() argument 82 for (TestAspect aspect : aspects) { in GenerateSamplingShader() 118 wgpu::RenderPipeline CreateSamplingRenderPipeline(std::vector<TestAspect> aspects, in CreateSamplingRenderPipeline() argument 131 GenerateSamplingShader(aspects, components, shaderSource, shaderBody); in CreateSamplingRenderPipeline() 145 wgpu::ComputePipeline CreateSamplingComputePipeline(std::vector<TestAspect> aspects, in CreateSamplingComputePipeline() argument 149 GenerateSamplingShader(aspects, components, shaderSource, shaderBody); in CreateSamplingComputePipeline() 163 wgpu::RenderPipeline CreateSamplingRenderPipeline(std::vector<TestAspect> aspects, in CreateSamplingRenderPipeline() argument 165 return CreateSamplingRenderPipeline(std::move(aspects), in CreateSamplingRenderPipeline() 169 wgpu::ComputePipeline CreateSamplingComputePipeline(std::vector<TestAspect> aspects, in CreateSamplingComputePipeline() argument 171 return CreateSamplingComputePipeline(std::move(aspects), in CreateSamplingComputePipeline()
|
/third_party/mesa3d/src/broadcom/vulkan/ |
D | v3dv_formats.c | 135 const VkImageAspectFlags aspects = vk_format_aspects(vk_format); in image_format_features() local 141 if ((aspects & supported_aspects) != aspects) in image_format_features() 145 if ((aspects & zs_aspects) == VK_IMAGE_ASPECT_STENCIL_BIT) in image_format_features() 170 if (aspects & VK_IMAGE_ASPECT_COLOR_BIT) { in image_format_features() 175 } else if (aspects & zs_aspects) { in image_format_features()
|
D | v3dv_meta_clear.c | 136 assert(range->aspectMask & image->vk.aspects); in clear_image_tlb() 625 VkImageAspectFlags aspects, in create_depth_clear_pipeline() argument 633 const bool has_depth = aspects & VK_IMAGE_ASPECT_DEPTH_BIT; in create_depth_clear_pipeline() 634 const bool has_stencil = aspects & VK_IMAGE_ASPECT_STENCIL_BIT; in create_depth_clear_pipeline() 763 get_depth_clear_pipeline_cache_key(VkImageAspectFlags aspects, in get_depth_clear_pipeline_cache_key() argument 777 const bool has_depth = (aspects & VK_IMAGE_ASPECT_DEPTH_BIT) ? 1 : 0; in get_depth_clear_pipeline_cache_key() 781 const bool has_stencil = (aspects & VK_IMAGE_ASPECT_STENCIL_BIT) ? 1 : 0; in get_depth_clear_pipeline_cache_key() 902 VkImageAspectFlags aspects, in get_depth_clear_pipeline() argument 920 get_depth_clear_pipeline_cache_key(aspects, format, samples, is_layered); in get_depth_clear_pipeline() 939 aspects, in get_depth_clear_pipeline() [all …]
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | TextureD3D12.cpp | 651 GetFormat().aspects, in Texture() 699 ASSERT(GetFormat().aspects & aspect); in GetD3D12CopyableSubresourceFormat() 712 ASSERT(HasOneBit(GetFormat().aspects)); in GetD3D12CopyableSubresourceFormat() 747 for (Aspect aspect : IterateEnumMask(range.aspects)) { in TrackUsageAndTransitionNow() 829 range.aspects == GetFormat().aspects; in TransitionSubresourceRange() 836 for (Aspect aspect : IterateEnumMask(range.aspects)) { in TransitionSubresourceRange() 961 Aspect aspects, in GetDSVDescriptor() argument 967 if (depthReadOnly && aspects & Aspect::Depth) { in GetDSVDescriptor() 970 if (stencilReadOnly && aspects & Aspect::Stencil) { in GetDSVDescriptor() 1009 for (Aspect aspect : IterateEnumMask(range.aspects)) { in ClearTexture() [all …]
|
/third_party/vk-gl-cts/external/amber/src/src/vulkan/ |
D | transfer_image.cc | 253 const VkImageAspectFlagBits aspects[] = {VK_IMAGE_ASPECT_COLOR_BIT, in CopyToHost() local 265 for (auto aspect : aspects) { in CopyToHost() 285 const VkImageAspectFlagBits aspects[] = {VK_IMAGE_ASPECT_COLOR_BIT, in CopyToDevice() local 293 for (auto aspect : aspects) { in CopyToDevice()
|
/third_party/mesa3d/src/imagination/vulkan/ |
D | pvr_formats.c | 104 VkImageAspectFlags aspects; in pvr_get_image_format_features() local 109 aspects = vk_format_aspects(pvr_format->vk_format); in pvr_get_image_format_features() 110 if (aspects & (VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT)) { in pvr_get_image_format_features()
|