Home
last modified time | relevance | path

Searched refs:aspectMask (Results 1 – 25 of 83) sorted by relevance

1234

/external/swiftshader/src/Vulkan/
DVkImage.cpp78 int srcBytesPerTexel = bytesPerTexel(pRegion.srcSubresource.aspectMask); in copyTo()
79 ASSERT(srcBytesPerTexel == dst->bytesPerTexel(pRegion.dstSubresource.aspectMask)); in copyTo()
81 if(!((pRegion.srcSubresource.aspectMask == VK_IMAGE_ASPECT_COLOR_BIT) || in copyTo()
82 (pRegion.srcSubresource.aspectMask == VK_IMAGE_ASPECT_DEPTH_BIT) || in copyTo()
83 (pRegion.srcSubresource.aspectMask == VK_IMAGE_ASPECT_STENCIL_BIT)) || in copyTo()
90 if(!((pRegion.dstSubresource.aspectMask == VK_IMAGE_ASPECT_COLOR_BIT) || in copyTo()
91 (pRegion.dstSubresource.aspectMask == VK_IMAGE_ASPECT_DEPTH_BIT) || in copyTo()
92 (pRegion.dstSubresource.aspectMask == VK_IMAGE_ASPECT_STENCIL_BIT)) || in copyTo()
102 …int srcRowPitchBytes = rowPitchBytes(pRegion.srcSubresource.aspectMask, pRegion.srcSubresource.mip… in copyTo()
103 …int srcSlicePitchBytes = slicePitchBytes(pRegion.srcSubresource.aspectMask, pRegion.srcSubresource… in copyTo()
[all …]
DVkImageView.cpp75 void ImageView::clear(const VkClearValue& clearValue, const VkImageAspectFlags aspectMask, const Vk… in clear() argument
90 sr.aspectMask = aspectMask; in clear()
94 void ImageView::clear(const VkClearValue& clearValue, const VkImageAspectFlags aspectMask, const Vk… in clear() argument
109 sr.aspectMask = aspectMask; in clear()
DVkFramebuffer.cpp74 if(attachment.aspectMask == VK_IMAGE_ASPECT_COLOR_BIT) in clear()
84 attachment.clearValue, attachment.aspectMask, rect); in clear()
87 else if(attachment.aspectMask & (VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT)) in clear()
93 …ss.pDepthStencilAttachment->attachment]->clear(attachment.clearValue, attachment.aspectMask, rect); in clear()
DVkImageView.hpp34 …void clear(const VkClearValue& clearValues, const VkImageAspectFlags aspectMask, const VkRect2D& r…
35 …void clear(const VkClearValue& clearValue, const VkImageAspectFlags aspectMask, const VkClearRect&…
DVkImage.hpp75 …, VkFormat format, const VkImageSubresourceRange& subresourceRange, VkImageAspectFlags aspectMask);
76 …ect2D& renderArea, const VkImageSubresourceRange& subresourceRange, VkImageAspectFlags aspectMask);
/external/vulkan-validation-layers/layers/
Dconvert_to_renderpass2.cpp33 out_struct->aspectMask = in ConvertVkAttachmentReferenceToV2KHR()
171 … VkImageAspectFlags aspectMask = pInputAttachmentAspectInfo->pAspectReferences[i].aspectMask; in ConvertVkRenderPassCreateInfoToV2KHR() local
173 … out_struct->pSubpasses[subpass].pInputAttachments[attachment].aspectMask = aspectMask; in ConvertVkRenderPassCreateInfoToV2KHR()
184 if (attachment_ref.aspectMask == VK_IMAGE_ASPECT_FLAG_BITS_MAX_ENUM && in ConvertVkRenderPassCreateInfoToV2KHR()
186 attachment_ref.aspectMask = 0; in ConvertVkRenderPassCreateInfoToV2KHR()
189 attachment_ref.aspectMask |= VK_IMAGE_ASPECT_COLOR_BIT; in ConvertVkRenderPassCreateInfoToV2KHR()
192 attachment_ref.aspectMask |= VK_IMAGE_ASPECT_DEPTH_BIT; in ConvertVkRenderPassCreateInfoToV2KHR()
195 attachment_ref.aspectMask |= VK_IMAGE_ASPECT_STENCIL_BIT; in ConvertVkRenderPassCreateInfoToV2KHR()
Dhash_vk_types.h88 …return (lhs.aspectMask == rhs.aspectMask) && (lhs.baseMipLevel == rhs.baseMipLevel) && (lhs.levelC…
96 …hc << value.aspectMask << value.baseMipLevel << value.levelCount << value.baseArrayLayer << value.…
Dbuffer_validation.cpp84 VkImageAspectFlags aspectMask) { in SetLayout() argument
85 if (imgpair.subresource.aspectMask & aspectMask) { in SetLayout()
86 imgpair.subresource.aspectMask = aspectMask; in SetLayout()
103 … IMAGE_CMD_BUF_LAYOUT_NODE &node, const VkImageAspectFlags aspectMask) { in FindLayoutVerifyNode() argument
104 if (!(imgpair.subresource.aspectMask & aspectMask)) { in FindLayoutVerifyNode()
107 VkImageAspectFlags oldAspectMask = imgpair.subresource.aspectMask; in FindLayoutVerifyNode()
108 imgpair.subresource.aspectMask = aspectMask; in FindLayoutVerifyNode()
133 const VkImageAspectFlags aspectMask) { in FindLayoutVerifyLayout() argument
134 if (!(imgpair.subresource.aspectMask & aspectMask)) { in FindLayoutVerifyLayout()
137 VkImageAspectFlags oldAspectMask = imgpair.subresource.aspectMask; in FindLayoutVerifyLayout()
[all …]
Dbuffer_validation.h45 VkImageLayout &layout, const VkImageAspectFlags aspectMask);
/external/mesa3d/src/amd/vulkan/
Dradv_meta_copy.c87 if (subres->aspectMask & VK_IMAGE_ASPECT_DEPTH_BIT) in blit_surf_for_image_level_layer()
89 else if (subres->aspectMask & VK_IMAGE_ASPECT_STENCIL_BIT) in blit_surf_for_image_level_layer()
102 .aspect_mask = subres->aspectMask, in blit_surf_for_image_level_layer()
359 assert(pRegions[r].srcSubresource.aspectMask == in meta_copy_image()
360 pRegions[r].dstSubresource.aspectMask); in meta_copy_image()
388 .aspectMask = pRegions[r].dstSubresource.aspectMask, in meta_copy_image()
493 image_copy.srcSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in radv_blit_to_prime_linear()
496 image_copy.dstSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in radv_blit_to_prime_linear()
Dradv_meta_resolve_cs.c397 range.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in radv_meta_resolve_compute_image()
413 assert(region->srcSubresource.aspectMask == VK_IMAGE_ASPECT_COLOR_BIT); in radv_meta_resolve_compute_image()
414 assert(region->dstSubresource.aspectMask == VK_IMAGE_ASPECT_COLOR_BIT); in radv_meta_resolve_compute_image()
443 .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, in radv_meta_resolve_compute_image()
459 .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, in radv_meta_resolve_compute_image()
518 range.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in radv_cmd_buffer_resolve_subpass_cs()
555 range.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in radv_cmd_buffer_resolve_subpass_cs()
Dradv_meta_clear.c359 assert(clear_att->aspectMask == VK_IMAGE_ASPECT_COLOR_BIT); in emit_color_clear()
611 VkImageAspectFlags aspects = clear_att->aspectMask; in emit_depthstencil_clear()
682 VkImageAspectFlags aspects = clear_att->aspectMask; in emit_fast_htile_clear()
1058 if (clear_att->aspectMask & VK_IMAGE_ASPECT_COLOR_BIT) { in emit_clear()
1063 assert(clear_att->aspectMask & (VK_IMAGE_ASPECT_DEPTH_BIT | in emit_clear()
1153 .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, in radv_cmd_buffer_clear_subpass()
1167 .aspectMask = cmd_state->attachments[ds].pending_clear_aspects, in radv_cmd_buffer_clear_subpass()
1201 .aspectMask = range->aspectMask, in radv_clear_image_layer()
1250 if (range->aspectMask & VK_IMAGE_ASPECT_COLOR_BIT) { in radv_clear_image_layer()
1287 .aspectMask = range->aspectMask, in radv_clear_image_layer()
[all …]
Dradv_meta_resolve_fs.c466 range.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in radv_meta_resolve_fragment_image()
484 assert(region->srcSubresource.aspectMask == VK_IMAGE_ASPECT_COLOR_BIT); in radv_meta_resolve_fragment_image()
485 assert(region->dstSubresource.aspectMask == VK_IMAGE_ASPECT_COLOR_BIT); in radv_meta_resolve_fragment_image()
514 .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, in radv_meta_resolve_fragment_image()
530 .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, in radv_meta_resolve_fragment_image()
634 range.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in radv_cmd_buffer_resolve_subpass_fs()
Dradv_meta_resolve.c464 assert(region->srcSubresource.aspectMask == VK_IMAGE_ASPECT_COLOR_BIT); in radv_CmdResolveImage()
465 assert(region->dstSubresource.aspectMask == VK_IMAGE_ASPECT_COLOR_BIT); in radv_CmdResolveImage()
507 .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, in radv_CmdResolveImage()
523 .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, in radv_CmdResolveImage()
/external/deqp/external/vulkancts/framework/vulkan/
DvkTypeUtil.inl64 inline VkImageSubresource makeImageSubresource (VkImageAspectFlags aspectMask, deUint32 mipLevel, d… argument
67 res.aspectMask = aspectMask;
112 inline VkImageSubresourceRange makeImageSubresourceRange (VkImageAspectFlags aspectMask, deUint32 b… argument
115 res.aspectMask = aspectMask;
323 inline VkImageSubresourceLayers makeImageSubresourceLayers (VkImageAspectFlags aspectMask, deUint32… argument
326 res.aspectMask = aspectMask;
371 …entAspectReference (deUint32 subpass, deUint32 inputAttachmentIndex, VkImageAspectFlags aspectMask) argument
376 res.aspectMask = aspectMask;
/external/mesa3d/src/intel/vulkan/
Danv_blorp.c268 VkImageAspectFlags src_mask = pRegions[r].srcSubresource.aspectMask, in anv_CmdCopyImage()
269 dst_mask = pRegions[r].dstSubresource.aspectMask; in anv_CmdCopyImage()
345 const VkImageAspectFlags aspect = pRegions[r].imageSubresource.aspectMask; in copy_buffer_to_image()
494 src_image, src_res->aspectMask, in anv_CmdBlitImage()
497 dst_image, dst_res->aspectMask, in anv_CmdBlitImage()
502 src_res->aspectMask, src_image->tiling); in anv_CmdBlitImage()
505 dst_res->aspectMask, dst_image->tiling); in anv_CmdBlitImage()
795 if (pRanges[r].aspectMask == 0) in anv_CmdClearColorImage()
798 assert(pRanges[r].aspectMask & VK_IMAGE_ASPECT_ANY_COLOR_BIT_ANV); in anv_CmdClearColorImage()
802 image, pRanges[r].aspectMask, in anv_CmdClearColorImage()
[all …]
Danv_dump.c133 .aspectMask = aspect, in dump_image_do_blit()
153 .aspectMask = aspect, in dump_image_do_blit()
163 .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, in dump_image_do_blit()
190 .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, in dump_image_do_blit()
215 .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, in dump_image_write_to_ppm()
/external/deqp/external/vulkancts/modules/vulkan/renderpass/
DvktRenderPassUnusedAttachmentTests.cpp103 …const VkImageAspectFlags aspectMask = testParams.renderPassType == RENDERPASS_TYPE_LEGACY ? 0… in createRenderPass() local
152 aspectMask // VkImageAspectFlags aspectMask in createRenderPass()
159 aspectMask // VkImageAspectFlags aspectMask in createRenderPass()
166 aspectMask // VkImageAspectFlags aspectMask in createRenderPass()
426 const VkImageAspectFlags aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in UnusedAttachmentTestInstance() local
452 aspectMask, // VkImageAspect aspect; in UnusedAttachmentTestInstance()
472 aspectMask, // VkImageAspect aspect; in UnusedAttachmentTestInstance()
482 aspectMask, // VkImageAspectFlags aspectMask; in UnusedAttachmentTestInstance()
DvktRenderPassTestsUtil.hpp83 VkImageAspectFlags aspectMask);
92 VkImageAspectFlags aspectMask);
270 VkImageAspectFlags aspectMask = static_cast<VkImageAspectFlags>(0u));
/external/deqp/external/vulkancts/modules/vulkan/multiview/
DvktMultiViewRenderPassUtil.hpp73 VkImageAspectFlags aspectMask);
82 VkImageAspectFlags aspectMask);
/external/vulkan-validation-layers/tests/
Dvkrenderframework.cpp1136 copy_region.srcSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in CopyImage()
1143 copy_region.dstSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in CopyImage()
1181 copy_region.srcSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in CopyImageOut()
1188 copy_region.dstSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in CopyImageOut()
1257 view.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in VkTextureObj()
1645 subrange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in ClearAllBuffers()
1647 color_obj->SetLayout(this, subrange.aspectMask, clear_layout); in ClearAllBuffers()
1652 subrange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; in ClearAllBuffers()
1653 …if (FormatIsDepthOnly(depth_stencil_obj->format())) subrange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BI… in ClearAllBuffers()
1654 …if (FormatIsStencilOnly(depth_stencil_obj->format())) subrange.aspectMask = VK_IMAGE_ASPECT_STENCI… in ClearAllBuffers()
[all …]
Dlayer_validation_tests.cpp712 color_attachment.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in VKTriangleTest()
3008 dsvci.subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; in TEST_F()
3022 region.imageSubresource.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT; in TEST_F()
3837 blit_region.srcSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in TEST_F()
3841 blit_region.dstSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in TEST_F()
3899 copy_region.imageSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in TEST_F()
4004 blitRegion.srcSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in TEST_F()
4008 blitRegion.dstSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in TEST_F()
4065 blitRegion.srcSubresource.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT; in TEST_F()
4066 blitRegion.dstSubresource.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT; in TEST_F()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiImageClearingTests.cpp484 …e image, VkImageViewType viewType, VkFormat format, VkImageAspectFlags aspectMask, LayerRange laye…
494 …de::MovePtr<TextureLevelPyramid> readImage (VkImageAspectFlags aspectMask, deUint32 baseLayer…
714 …e image, VkImageViewType viewType, VkFormat format, VkImageAspectFlags aspectMask, LayerRange laye… in createImageView() argument
731 aspectMask, // VkImageAspectFlags aspectMask; in createImageView()
885 …LevelPyramid> ImageClearingTestInstance::readImage (VkImageAspectFlags aspectMask, deUint32 arrayL… in readImage() argument
887 …const TextureFormat tcuFormat = aspectMask == VK_IMAGE_ASPECT_COLOR_BIT ? mapVkFormat(m_param… in readImage()
888 aspectMask == VK_IMAGE_ASPECT_DEPTH_BIT ? getDepthCopyFormat(m_params.imageFormat) : in readImage()
889aspectMask == VK_IMAGE_ASPECT_STENCIL_BIT ? getStencilCopyFormat(m_params.imageFormat) : in readImage()
950 { aspectMask, mipLevel, arrayLayer, 1u }, // VkImageSubresourceLayers imageSubresource; in readImage()
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRender.cpp964 …const VkImageAspectFlags aspectMask = isShadowSampler ? VK_IMAGE_ASPECT_DEPTH_BIT : VK_IMAGE_A… in uploadImage() local
1029 aspectMask, // VkImageAspectFlags aspectMask; in uploadImage()
1052 …e, queue, queueFamilyIndex, *buffer, bufferSize, copyRegions, DE_NULL, aspectMask, mipLevels, arra… in uploadImage()
1066 …const VkImageAspectFlags aspectMask = isShadowSampler ? VK_IMAGE_ASPECT_DEPTH_BIT : VK_IMAGE_A… in clearImage() local
1090 aspectMask, // VkImageAspect aspect; in clearImage()
1110 aspectMask, // VkImageAspect aspect; in clearImage()
1120 aspectMask, // VkImageAspectFlags aspectMask; in clearImage()
1130 if (aspectMask == VK_IMAGE_ASPECT_COLOR_BIT) in clearImage()
1231 …const VkImageAspectFlags aspectMask = isShadowSampler ? VK_IMAGE_ASPECT_DEPTH_BIT : VK_IMAGE… in uploadSparseImage() local
1301 aspectMask, // VkImageAspectFlags aspectMask; in uploadSparseImage()
[all …]
/external/skqp/src/gpu/vk/
DGrVkImageView.cpp52 viewInfo.subresourceRange.aspectMask = VK_IMAGE_ASPECT_STENCIL_BIT; in Create()

1234