Home
last modified time | relevance | path

Searched refs:subresourceRange (Results 1 – 25 of 115) sorted by relevance

12345

/external/swiftshader/src/Vulkan/
DVkImage.cpp502 uint32_t Image::getLastLayerIndex(const VkImageSubresourceRange& subresourceRange) const in getLastLayerIndex()
504 return ((subresourceRange.layerCount == VK_REMAINING_ARRAY_LAYERS) ? in getLastLayerIndex()
505 arrayLayers : (subresourceRange.baseArrayLayer + subresourceRange.layerCount)) - 1; in getLastLayerIndex()
508 uint32_t Image::getLastMipLevel(const VkImageSubresourceRange& subresourceRange) const in getLastMipLevel()
510 return ((subresourceRange.levelCount == VK_REMAINING_MIP_LEVELS) ? in getLastMipLevel()
511 mipLevels : (subresourceRange.baseMipLevel + subresourceRange.levelCount)) - 1; in getLastMipLevel()
514 void Image::clear(void* pixelData, VkFormat format, const VkImageSubresourceRange& subresourceRange in clear() argument
516 uint32_t firstLayer = subresourceRange.baseArrayLayer; in clear()
517 uint32_t lastLayer = getLastLayerIndex(subresourceRange); in clear()
520 uint32_t lastLevel = getLastMipLevel(subresourceRange); in clear()
[all …]
DVkImageView.cpp23 components(pCreateInfo->components), subresourceRange(pCreateInfo->subresourceRange) in ImageView()
89 VkImageSubresourceRange sr = subresourceRange; in clear()
91 image->clear(clearValue, renderArea, subresourceRange); in clear()
110 sr.baseMipLevel = subresourceRange.baseMipLevel; in clear()
111 sr.levelCount = subresourceRange.levelCount; in clear()
112 sr.baseArrayLayer = renderArea.baseArrayLayer + subresourceRange.baseArrayLayer; in clear()
DVkImage.hpp48 …earValue& clearValue, const VkRect2D& renderArea, const VkImageSubresourceRange& subresourceRange);
49 void clear(const VkClearColorValue& color, const VkImageSubresourceRange& subresourceRange);
50 void clear(const VkClearDepthStencilValue& color, const VkImageSubresourceRange& subresourceRange);
72 uint32_t getLastLayerIndex(const VkImageSubresourceRange& subresourceRange) const;
73 uint32_t getLastMipLevel(const VkImageSubresourceRange& subresourceRange) const;
75 …void clear(void* pixelData, VkFormat format, const VkImageSubresourceRange& subresourceRange, VkIm…
76 … format, const VkRect2D& renderArea, const VkImageSubresourceRange& subresourceRange, VkImageAspec…
/external/mesa3d/src/amd/vulkan/
Dradv_meta_decompress.c328 VkImageSubresourceRange *subresourceRange, in radv_process_depth_image_inplace() argument
335 subresourceRange->baseMipLevel); in radv_process_depth_image_inplace()
337 subresourceRange->baseMipLevel); in radv_process_depth_image_inplace()
361 for (uint32_t layer = 0; layer < radv_get_layerCount(image, subresourceRange); layer++) { in radv_process_depth_image_inplace()
370 .subresourceRange = { in radv_process_depth_image_inplace()
372 .baseMipLevel = subresourceRange->baseMipLevel, in radv_process_depth_image_inplace()
374 .baseArrayLayer = subresourceRange->baseArrayLayer + layer, in radv_process_depth_image_inplace()
426 VkImageSubresourceRange *subresourceRange) in radv_decompress_depth_image_inplace() argument
429 radv_process_depth_image_inplace(cmd_buffer, image, subresourceRange, DEPTH_DECOMPRESS); in radv_decompress_depth_image_inplace()
434 VkImageSubresourceRange *subresourceRange) in radv_resummarize_depth_image_inplace() argument
[all …]
Dradv_meta_fast_clear.c581 const VkImageSubresourceRange *subresourceRange, in radv_emit_color_decompress() argument
587 uint32_t layer_count = radv_get_layerCount(image, subresourceRange); in radv_emit_color_decompress()
617 .subresourceRange = { in radv_emit_color_decompress()
621 .baseArrayLayer = subresourceRange->baseArrayLayer + layer, in radv_emit_color_decompress()
680 const VkImageSubresourceRange *subresourceRange) in radv_fast_clear_flush_image_inplace() argument
682 radv_emit_color_decompress(cmd_buffer, image, subresourceRange, false); in radv_fast_clear_flush_image_inplace()
688 const VkImageSubresourceRange *subresourceRange) in radv_decompress_dcc_gfx() argument
690 radv_emit_color_decompress(cmd_buffer, image, subresourceRange, true); in radv_decompress_dcc_gfx()
696 const VkImageSubresourceRange *subresourceRange) in radv_decompress_dcc_compute() argument
721 .subresourceRange = { in radv_decompress_dcc_compute()
[all …]
Dradv_meta.h167 VkImageSubresourceRange *subresourceRange);
170 VkImageSubresourceRange *subresourceRange);
173 const VkImageSubresourceRange *subresourceRange);
176 const VkImageSubresourceRange *subresourceRange);
/external/deqp/external/vulkancts/modules/vulkan/draw/
DvktDrawImageObjectUtil.cpp330 barrier.subresourceRange.aspectMask = aspect; in readUsingBuffer()
331 barrier.subresourceRange.baseMipLevel = 0; in readUsingBuffer()
332 barrier.subresourceRange.levelCount = m_levelCount; in readUsingBuffer()
333 barrier.subresourceRange.baseArrayLayer = 0; in readUsingBuffer()
334 barrier.subresourceRange.layerCount = m_layerCount; in readUsingBuffer()
578 barrier.subresourceRange.aspectMask = aspect; in upload()
579 barrier.subresourceRange.baseMipLevel = 0; in upload()
580 barrier.subresourceRange.levelCount = m_levelCount; in upload()
581 barrier.subresourceRange.baseArrayLayer = 0; in upload()
582 barrier.subresourceRange.layerCount = m_layerCount; in upload()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineImageViewTests.cpp62 const VkImageSubresourceRange& subresourceRange);
90 const VkImageSubresourceRange& subresourceRange) in ImageViewTest() argument
97 , m_subresourceRange (subresourceRange) in ImageViewTest()
338 VkImageSubresourceRange subresourceRange; in createSubresourceRangeTests() member
354 desc << "Samples level " << config.samplerLod << " with :\n" << config.subresourceRange; \ in createSubresourceRangeTests()
357 config.subresourceRange)); \ in createSubresourceRangeTests()
626 const VkImageSubresourceRange subresourceRange = in createComponentSwizzleTests() local
648 subresourceRange)); in createComponentSwizzleTests()
/external/deqp/external/vulkancts/framework/vulkan/
DvkBarrierUtil.cpp56 const VkImageSubresourceRange subresourceRange, in makeImageMemoryBarrier() argument
71 subresourceRange, // VkImageSubresourceRange subresourceRange; in makeImageMemoryBarrier()
DvkBarrierUtil.hpp44 const VkImageSubresourceRange subresourceRange,
/external/deqp/external/vulkancts/modules/vulkan/protected_memory/
DvktProtectedMemUtils.cpp665 const vk::VkImageSubresourceRange subresourceRange = in clearImage() local
685 subresourceRange // VkImageSubresourceRange subresourceRange; in clearImage()
699 subresourceRange // VkImageSubresourceRange subresourceRange; in clearImage()
710 …ge(*cmdBuffer, image, vk::VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, &clearColor, 1, &subresourceRange); in clearImage()
756 const vk::VkImageSubresourceRange subresourceRange = in uploadImage() local
776 subresourceRange // VkImageSubresourceRange subresourceRange; in uploadImage()
790 subresourceRange // VkImageSubresourceRange subresourceRange; in uploadImage()
845 const vk::VkImageSubresourceRange subresourceRange = in copyToProtectedImage() local
867 subresourceRange // VkImageSubresourceRange subresourceRange; in copyToProtectedImage()
880 subresourceRange // VkImageSubresourceRange subresourceRange; in copyToProtectedImage()
[all …]
DvktProtectedMemClearColorImageTests.cpp139 const vk::VkImageSubresourceRange subresourceRange = in iterate() local
180 subresourceRange, // subresourceRange in iterate()
193 …getCmdBuffer, **colorImage, vk::VK_IMAGE_LAYOUT_GENERAL, &m_clearColorValue, 1, &subresourceRange); in iterate()
208 subresourceRange // subresourceRange in iterate()
/external/deqp/external/vulkancts/modules/vulkan/image/
DvktImageTranscodingSupportTests.cpp308 …const VkImageSubresourceRange subresourceRange = makeImageSubresourceRange(VK_IMAGE_ASPECT_COLO… in transcode() local
352 …ImageViewType(m_parameters.imageType), m_parameters.featuredFormat, subresourceRange, srcImageView… in transcode()
356 …ImageViewType(m_parameters.imageType), m_parameters.featuredFormat, subresourceRange, dstImageView… in transcode()
383 …K_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, srcImage->get(), subresourceRange); in transcode()
384 … VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, VK_IMAGE_LAYOUT_GENERAL, srcImage->get(), subresourceRange); in transcode()
424 dstImage->get(), subresourceRange); in transcode()
558 …const VkImageSubresourceRange subresourceRange = makeImageSubresourceRange(VK_IMAGE_ASPECT_COLO… in transcode() local
602 …ImageViewType(m_parameters.imageType), m_parameters.featuredFormat, subresourceRange, srcImageView… in transcode()
606 …ImageViewType(m_parameters.imageType), m_parameters.featuredFormat, subresourceRange, dstImageView… in transcode()
607 …R_READ_BIT, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_GENERAL, dstImage->get(), subresourceRange); in transcode()
[all …]
DvktImageAtomicOperationTests.cpp501 …const VkImageSubresourceRange subresourceRange = makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_B… in iterate() local
503 …m_resultImage->get(), mapImageViewType(m_imageType), mapTextureFormat(m_format), subresourceRange); in iterate()
633 …const VkImageSubresourceRange subresourceRange = makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_B… in commandsAfterCompute() local
641 subresourceRange); in commandsAfterCompute()
789 …const VkImageSubresourceRange subresourceRange = makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_B… in prepareResources() local
791 …mResultsImage->get(), mapImageViewType(m_imageType), mapTextureFormat(m_format), subresourceRange); in prepareResources()
824 …const VkImageSubresourceRange subresourceRange = makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_B… in commandsBeforeCompute() local
832 subresourceRange); in commandsBeforeCompute()
840 …const VkImageSubresourceRange subresourceRange = makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_B… in commandsAfterCompute() local
848 subresourceRange); in commandsAfterCompute()
DvktImageQualifiersTests.cpp533 …const VkImageSubresourceRange subresourceRange = makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_B… in prepareResources() local
534 …vice, m_image->get(), mapImageViewType(m_imageType), mapTextureFormat(m_format), subresourceRange); in prepareResources()
574 …const VkImageSubresourceRange subresourceRange = makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_B… in commandsBeforeCompute() local
582 subresourceRange); in commandsBeforeCompute()
590 …const VkImageSubresourceRange subresourceRange = makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_B… in commandsAfterCompute() local
598 subresourceRange); in commandsAfterCompute()
DvktImageSizeTests.cpp380 …const VkImageSubresourceRange subresourceRange = makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_B… in ImageSizeTestInstance() local
381 …geView(vk, device, m_image->get(), mapImageViewType(m_texture.type()), m_format, subresourceRange); in ImageSizeTestInstance()
416 …const VkImageSubresourceRange subresourceRange = makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_B… in commandBeforeCompute() local
420 m_image->get(), subresourceRange); in commandBeforeCompute()
/external/deqp/external/vulkancts/modules/vulkan/synchronization/
DvktSynchronizationSmokeTests.cpp229 VkImageSubresourceRange subresourceRange; in createVulkanImage() local
261 subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in createVulkanImage()
262 subresourceRange.baseMipLevel = 0; in createVulkanImage()
263 subresourceRange.levelCount = imageParameters.mipLevels; in createVulkanImage()
264 subresourceRange.baseArrayLayer = 0; in createVulkanImage()
265 subresourceRange.layerCount = 1; in createVulkanImage()
275 imageViewCreateInfo.subresourceRange = subresourceRange; in createVulkanImage()
289 imageBarrier.subresourceRange = subresourceRange; in createVulkanImage()
479 renderBarrier.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in recordRenderPass()
480 renderBarrier.subresourceRange.baseMipLevel = 0; in recordRenderPass()
[all …]
DvktSynchronizationOperationSingleQueueTests.cpp105 …out, readSync.imageLayout, m_resource->getImage().handle, m_resource->getImage().subresourceRange); in iterate()
158 …out, readSync.imageLayout, m_resource->getImage().handle, m_resource->getImage().subresourceRange); in iterate()
235 …out, readSync.imageLayout, m_resource->getImage().handle, m_resource->getImage().subresourceRange); in iterate()
296 …out, readSync.imageLayout, m_resource->getImage().handle, m_resource->getImage().subresourceRange); in iterate()
/external/deqp/external/vulkancts/modules/vulkan/fragment_ops/
DvktFragmentOperationsMakeUtil.cpp138 const VkImageSubresourceRange subresourceRange) in makeImageView() argument
149 subresourceRange, // VkImageSubresourceRange subresourceRange; in makeImageView()
/external/deqp/external/vulkancts/modules/vulkan/multiview/
DvktMultiViewRenderUtil.hpp40 …eViewType viewType, const vk::VkFormat format, const vk::VkImageSubresourceRange subresourceRange);
55 …dBuffer, const vk::VkImage image, const vk::VkImageSubresourceRange subresourceRange, const vk::Vk…
DvktMultiViewRenderUtil.cpp156 const VkImageSubresourceRange subresourceRange) in makeImageView() argument
167 subresourceRange, // VkImageSubresourceRange subresourceRange; in makeImageView()
633 const VkImageSubresourceRange subresourceRange, in imageBarrier() argument
652 subresourceRange, // VkImageSubresourceRange subresourceRange; in imageBarrier()
/external/vulkan-validation-layers/layers/
Dbuffer_validation.cpp336 VkImageSubresourceRange sub_range = view_state->create_info.subresourceRange; in SetImageViewLayout()
484 const VkImageSubresourceRange &subRange = view_state->create_info.subresourceRange; in VerifyFramebufferAndRenderPassLayouts()
603 if (!(mem_barrier->subresourceRange.aspectMask & aspect)) { in ValidateImageAspectLayout()
769 auto subres_it = subres_map.find(img_barrier->subresourceRange); in ValidateBarriersToImages()
774 const VkImageSubresourceRange &range = img_barrier->subresourceRange; in ValidateBarriersToImages()
787 subres_map[img_barrier->subresourceRange] = new_entry; in ValidateBarriersToImages()
790 layout_transitions[img_barrier->image][img_barrier->subresourceRange] = new_entry; in ValidateBarriersToImages()
816 auto const aspect_mask = img_barrier->subresourceRange.aspectMask; in ValidateBarriersToImages()
828 …uint32_t level_count = ResolveRemainingLevels(&img_barrier->subresourceRange, image_create_info->m… in ValidateBarriersToImages()
829 …uint32_t layer_count = ResolveRemainingLayers(&img_barrier->subresourceRange, image_create_info->a… in ValidateBarriersToImages()
[all …]
/external/vulkan-validation-layers/tests/
Dlayer_validation_tests.cpp3005 dsvci.subresourceRange.layerCount = 1; in TEST_F()
3006 dsvci.subresourceRange.baseMipLevel = 0; in TEST_F()
3007 dsvci.subresourceRange.levelCount = 1; in TEST_F()
3008 dsvci.subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; in TEST_F()
4281 img_barrier.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in TEST_F()
4282 img_barrier.subresourceRange.baseArrayLayer = 0; in TEST_F()
4283 img_barrier.subresourceRange.baseMipLevel = 0; in TEST_F()
4284 img_barrier.subresourceRange.layerCount = 1; in TEST_F()
4285 img_barrier.subresourceRange.levelCount = 1; in TEST_F()
5040 img_barrier.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in TEST_F()
[all …]
Dvkrenderframework.cpp860 const VkImageSubresourceRange subresourceRange = in ImageMemoryBarrier() local
863 … barrier = image_memory_barrier(output_mask, input_mask, Layout(), image_layout, subresourceRange); in ImageMemoryBarrier()
1257 view.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in VkTextureObj()
1258 view.subresourceRange.baseMipLevel = 0; in VkTextureObj()
1259 view.subresourceRange.levelCount = 1; in VkTextureObj()
1260 view.subresourceRange.baseArrayLayer = 0; in VkTextureObj()
1261 view.subresourceRange.layerCount = 1; in VkTextureObj()
1803 view_info.subresourceRange.aspectMask = aspect; in Init()
1804 view_info.subresourceRange.baseMipLevel = 0; in Init()
1805 view_info.subresourceRange.levelCount = 1; in Init()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/compute/
DvktComputeTestsUtil.cpp197 const VkImageSubresourceRange subresourceRange) in makeImageView() argument
208 subresourceRange, // VkImageSubresourceRange subresourceRange; in makeImageView()

12345