Home
last modified time | relevance | path

Searched refs:formatProperties (Results 1 - 25 of 184) sorted by relevance

12345678

/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
H A DvktApiFormatPropertiesExtendedKHRtests.cpp61 const VkFormatProperties3 formatProperties (context.getFormatProperties(format)); in test()
64 checkFlags(formatProperties.bufferFeatures, requiredProperties.bufferFeatures, "Buffer features"); in test()
65 checkFlags(formatProperties.linearTilingFeatures, requiredProperties.linearTilingFeatures, "Linear tiling features"); in test()
66 checkFlags(formatProperties.optimalTilingFeatures, requiredProperties.optimalTilingFeatures, "Optimal tiling features"); in test()
H A DvktApiPipelineTests.cpp59 VkFormatProperties formatProperties; in getRenderTargetFormat() local
61 vk.getPhysicalDeviceFormatProperties(device, VK_FORMAT_B8G8R8A8_UNORM, &formatProperties); in getRenderTargetFormat()
63 if ((formatProperties.linearTilingFeatures & featureFlags) || (formatProperties.optimalTilingFeatures & featureFlags)) in getRenderTargetFormat()
66 vk.getPhysicalDeviceFormatProperties(device, VK_FORMAT_R8G8B8A8_UNORM, &formatProperties); in getRenderTargetFormat()
68 if ((formatProperties.linearTilingFeatures & featureFlags) || formatProperties.optimalTilingFeatures & VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT) in getRenderTargetFormat()
104 const VkFormatProperties formatProperties (getPhysicalDeviceFormatProperties(vki, physicalDevice, format)); in drawTriangleTest()
105 const VkImageTiling imageTiling = (formatProperties.linearTilingFeatures & VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT) ? VK_IMAGE_TILING_LINEAR in drawTriangleTest()
106 : (formatProperties in drawTriangleTest()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/
H A DvktApiFormatPropertiesExtendedKHRtests.cpp61 const VkFormatProperties3 formatProperties (context.getFormatProperties(format)); in test()
64 checkFlags(formatProperties.bufferFeatures, requiredProperties.bufferFeatures, "Buffer features"); in test()
65 checkFlags(formatProperties.linearTilingFeatures, requiredProperties.linearTilingFeatures, "Linear tiling features"); in test()
66 checkFlags(formatProperties.optimalTilingFeatures, requiredProperties.optimalTilingFeatures, "Optimal tiling features"); in test()
H A DvktApiPipelineTests.cpp59 VkFormatProperties formatProperties; in getRenderTargetFormat() local
61 vk.getPhysicalDeviceFormatProperties(device, VK_FORMAT_B8G8R8A8_UNORM, &formatProperties); in getRenderTargetFormat()
63 if ((formatProperties.linearTilingFeatures & featureFlags) || (formatProperties.optimalTilingFeatures & featureFlags)) in getRenderTargetFormat()
66 vk.getPhysicalDeviceFormatProperties(device, VK_FORMAT_R8G8B8A8_UNORM, &formatProperties); in getRenderTargetFormat()
68 if ((formatProperties.linearTilingFeatures & featureFlags) || formatProperties.optimalTilingFeatures & VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT) in getRenderTargetFormat()
104 const VkFormatProperties formatProperties (getPhysicalDeviceFormatProperties(vki, physicalDevice, format)); in drawTriangleTest()
105 const VkImageTiling imageTiling = (formatProperties.linearTilingFeatures & VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT) ? VK_IMAGE_TILING_LINEAR in drawTriangleTest()
106 : (formatProperties in drawTriangleTest()
[all...]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DVulkanFormatTablesTest.cpp77 VkFormatProperties formatProperties; in TEST_P() local
79 &formatProperties); in TEST_P()
94 bool isFilterable = (formatProperties.optimalTilingFeatures & in TEST_P()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
H A DvktImageExtendedUsageBitTests.cpp143 VkImageFormatProperties formatProperties; in getPhysicalDeviceImageFormatProperties() local
144 return vki.getPhysicalDeviceImageFormatProperties(device, viewFormat, VK_IMAGE_TYPE_2D, tiling, usage, flags, &formatProperties); in getPhysicalDeviceImageFormatProperties()
212 VkFormatProperties formatProperties; in checkSupport() local
213 context.getInstanceInterface().getPhysicalDeviceFormatProperties(context.getPhysicalDevice(), params.imageFormat, &formatProperties); in checkSupport()
215 if (params.tiling == vk::VK_IMAGE_TILING_OPTIMAL && formatProperties.optimalTilingFeatures == 0) in checkSupport()
218 if (params.tiling == vk::VK_IMAGE_TILING_LINEAR && formatProperties.linearTilingFeatures == 0) in checkSupport()
H A DvktImageLoadStoreTests.cpp527 const VkFormatProperties3 formatProperties (context.getFormatProperties(m_format)); in checkSupport()
529 const auto& tilingFeatures = (m_tiling == vk::VK_IMAGE_TILING_OPTIMAL) ? formatProperties.optimalTilingFeatures : formatProperties.linearTilingFeatures; in checkSupport()
531 if ((m_texture.type() == IMAGE_TYPE_BUFFER) && !m_declareImageFormatInShader && !(formatProperties.bufferFeatures & VK_FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT_KHR)) in checkSupport()
543 if (m_texture.type() == IMAGE_TYPE_BUFFER && !(formatProperties.bufferFeatures & VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT)) in checkSupport()
546 const VkFormatProperties formatProperties(getPhysicalDeviceFormatProperties(context.getInstanceInterface(), context.getPhysicalDevice(), m_format)); in checkSupport()
547 const auto tilingFeatures = (m_tiling == vk::VK_IMAGE_TILING_OPTIMAL) ? formatProperties.optimalTilingFeatures : formatProperties.linearTilingFeatures; in checkSupport()
558 if (m_texture.type() == IMAGE_TYPE_BUFFER && !(formatProperties.bufferFeatures & VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT)) in checkSupport()
1214 const VkFormatProperties3 formatProperties (contex in checkSupport()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/
H A DvktImageExtendedUsageBitTests.cpp143 VkImageFormatProperties formatProperties; in getPhysicalDeviceImageFormatProperties() local
144 return vki.getPhysicalDeviceImageFormatProperties(device, viewFormat, VK_IMAGE_TYPE_2D, tiling, usage, flags, &formatProperties); in getPhysicalDeviceImageFormatProperties()
212 VkFormatProperties formatProperties; in checkSupport() local
213 context.getInstanceInterface().getPhysicalDeviceFormatProperties(context.getPhysicalDevice(), params.imageFormat, &formatProperties); in checkSupport()
215 if (params.tiling == vk::VK_IMAGE_TILING_OPTIMAL && formatProperties.optimalTilingFeatures == 0) in checkSupport()
218 if (params.tiling == vk::VK_IMAGE_TILING_LINEAR && formatProperties.linearTilingFeatures == 0) in checkSupport()
H A DvktImageLoadStoreTests.cpp525 const VkFormatProperties3 formatProperties (context.getFormatProperties(m_format)); in checkSupport()
527 const auto tilingFeatures = (m_tiling == vk::VK_IMAGE_TILING_OPTIMAL) ? formatProperties.optimalTilingFeatures : formatProperties.linearTilingFeatures; in checkSupport()
529 if (!m_declareImageFormatInShader && !(formatProperties.bufferFeatures & VK_FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT_KHR)) in checkSupport()
541 if (m_texture.type() == IMAGE_TYPE_BUFFER && !(formatProperties.bufferFeatures & VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT)) in checkSupport()
544 const VkFormatProperties formatProperties(getPhysicalDeviceFormatProperties(context.getInstanceInterface(), context.getPhysicalDevice(), m_format)); in checkSupport()
545 const auto tilingFeatures = (m_tiling == vk::VK_IMAGE_TILING_OPTIMAL) ? formatProperties.optimalTilingFeatures : formatProperties.linearTilingFeatures; in checkSupport()
556 if (m_texture.type() == IMAGE_TYPE_BUFFER && !(formatProperties.bufferFeatures & VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT)) in checkSupport()
1203 const VkFormatProperties3 formatProperties (contex in checkSupport()
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/external_memory/
H A DMemoryServiceZirconHandle.cpp64 VkImageFormatProperties2 formatProperties; in SupportsImportMemory() local
65 formatProperties.sType = VK_STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2_KHR; in SupportsImportMemory()
66 formatProperties.pNext = &externalFormatProperties; in SupportsImportMemory()
69 ToBackend(mDevice->GetAdapter())->GetPhysicalDevice(), &formatInfo, &formatProperties); in SupportsImportMemory()
H A DMemoryServiceOpaqueFD.cpp64 VkImageFormatProperties2 formatProperties; in SupportsImportMemory() local
65 formatProperties.sType = VK_STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2_KHR; in SupportsImportMemory()
66 formatProperties.pNext = &externalFormatProperties; in SupportsImportMemory()
69 ToBackend(mDevice->GetAdapter())->GetPhysicalDevice(), &formatInfo, &formatProperties)); in SupportsImportMemory()
/third_party/skia/tools/gpu/vk/
H A DVkYcbcrSamplerHelper.cpp57 VkFormatProperties formatProperties; in createBackendTexture() local
61 &formatProperties)); in createBackendTexture()
62 if (!(formatProperties.linearTilingFeatures & VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT)) { in createBackendTexture()
187 formatProperties.linearTilingFeatures}; in createBackendTexture()
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
H A DVkDeviceMemoryExternalAndroid.cpp150 VkFormatProperties formatProperties; in GetVkFormatFeaturesFromAHBFormat() local
151 vk::PhysicalDevice::GetFormatProperties(vk::Format(format), &formatProperties); in GetVkFormatFeaturesFromAHBFormat() local
153 formatProperties.optimalTilingFeatures |= VK_FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT; in GetVkFormatFeaturesFromAHBFormat()
158 features |= formatProperties.linearTilingFeatures | in GetVkFormatFeaturesFromAHBFormat()
159 formatProperties.optimalTilingFeatures | in GetVkFormatFeaturesFromAHBFormat()
160 formatProperties.bufferFeatures; in GetVkFormatFeaturesFromAHBFormat()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory/
H A DvktMemoryRequirementsTests.cpp1185 const VkFormatProperties formatProperties = getPhysicalDeviceFormatProperties(vki, physDevice, info.format); in isImageSupported() local
1186 const VkFormatFeatureFlags formatFeatures = (info.tiling == VK_IMAGE_TILING_LINEAR ? formatProperties.linearTilingFeatures in isImageSupported()
1187 : formatProperties.optimalTilingFeatures); in isImageSupported()
1818 result.check(sparseRequirementsFromCreateInfo.formatProperties.aspectMask == sparseRequirementsFromObject.formatProperties.aspectMask, in verifyMemoryRequirements()
1821 result.check(sparseRequirementsFromCreateInfo.formatProperties.flags == sparseRequirementsFromObject.formatProperties.flags, in verifyMemoryRequirements()
1824 result.check(sparseRequirementsFromCreateInfo.formatProperties.imageGranularity.width == sparseRequirementsFromObject.formatProperties.imageGranularity.width, in verifyMemoryRequirements()
1826 result.check(sparseRequirementsFromCreateInfo.formatProperties in verifyMemoryRequirements()
1896 const VkFormatProperties formatProperties = getPhysicalDeviceFormatProperties(vki, physicalDevice, info.format); isMultiplaneImageSupported() local
[all...]
/third_party/mesa3d/src/freedreno/vulkan/
H A Dtu_formats.c307 pFormatProperties->formatProperties = (VkFormatProperties) { in tu_GetPhysicalDeviceFormatProperties2()
320 if (pFormatProperties->formatProperties.linearTilingFeatures) { in tu_GetPhysicalDeviceFormatProperties2()
325 pFormatProperties->formatProperties.linearTilingFeatures; in tu_GetPhysicalDeviceFormatProperties2()
330 if (pFormatProperties->formatProperties.optimalTilingFeatures && in tu_GetPhysicalDeviceFormatProperties2()
337 pFormatProperties->formatProperties.optimalTilingFeatures; in tu_GetPhysicalDeviceFormatProperties2()
/third_party/mesa3d/src/broadcom/vulkan/
H A Dv3dv_formats.c292 pFormatProperties->formatProperties = (VkFormatProperties) { in v3dv_GetPhysicalDeviceFormatProperties2()
305 if (pFormatProperties->formatProperties.linearTilingFeatures) { in v3dv_GetPhysicalDeviceFormatProperties2()
311 pFormatProperties->formatProperties.linearTilingFeatures; in v3dv_GetPhysicalDeviceFormatProperties2()
314 if (pFormatProperties->formatProperties.optimalTilingFeatures) { in v3dv_GetPhysicalDeviceFormatProperties2()
320 pFormatProperties->formatProperties.optimalTilingFeatures; in v3dv_GetPhysicalDeviceFormatProperties2()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/linux/
H A DDmaBufImageSiblingVkLinux.cpp116 VkFormatProperties2 formatProperties = {}; in GetFormatModifierProperties() local
117 formatProperties.sType = VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_2; in GetFormatModifierProperties()
118 formatProperties.pNext = &formatModifierPropertiesList; in GetFormatModifierProperties()
121 &formatProperties); in GetFormatModifierProperties()
128 &formatProperties); in GetFormatModifierProperties()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/memory/
H A DvktMemoryRequirementsTests.cpp1171 const VkFormatProperties formatProperties = getPhysicalDeviceFormatProperties(vki, physDevice, info.format); in isImageSupported() local
1172 const VkFormatFeatureFlags formatFeatures = (info.tiling == VK_IMAGE_TILING_LINEAR ? formatProperties.linearTilingFeatures in isImageSupported()
1173 : formatProperties.optimalTilingFeatures); in isImageSupported()
1804 result.check(sparseRequirementsFromCreateInfo.formatProperties.aspectMask == sparseRequirementsFromObject.formatProperties.aspectMask, in verifyMemoryRequirements()
1807 result.check(sparseRequirementsFromCreateInfo.formatProperties.flags == sparseRequirementsFromObject.formatProperties.flags, in verifyMemoryRequirements()
1810 result.check(sparseRequirementsFromCreateInfo.formatProperties.imageGranularity.width == sparseRequirementsFromObject.formatProperties.imageGranularity.width, in verifyMemoryRequirements()
1812 result.check(sparseRequirementsFromCreateInfo.formatProperties in verifyMemoryRequirements()
1882 const VkFormatProperties formatProperties = getPhysicalDeviceFormatProperties(vki, physicalDevice, info.format); isMultiplaneImageSupported() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineMultisampleBase.cpp100 const VkFormatProperties formatProperties = getPhysicalDeviceFormatProperties(instance, physicalDevice, format); in validateImageFeatureFlags() local
102 if ((formatProperties.optimalTilingFeatures & featureFlags) != featureFlags) in validateImageFeatureFlags()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/
H A DvktPipelineMultisampleBase.cpp98 const VkFormatProperties formatProperties = getPhysicalDeviceFormatProperties(instance, physicalDevice, format); in validateImageFeatureFlags() local
100 if ((formatProperties.optimalTilingFeatures & featureFlags) != featureFlags) in validateImageFeatureFlags()
/third_party/mesa3d/src/amd/vulkan/
H A Dradv_android.c498 p->formatFeatures = format_properties.formatProperties.linearTilingFeatures; in get_ahb_buffer_format_properties()
500 p->formatFeatures = format_properties.formatProperties.optimalTilingFeatures; in get_ahb_buffer_format_properties()
574 p->formatFeatures = format_properties.formatProperties.linearTilingFeatures; in get_ahb_buffer_format_properties2()
576 p->formatFeatures = format_properties.formatProperties.optimalTilingFeatures; in get_ahb_buffer_format_properties2()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/modifiers/
H A DvktModifiersTests.cpp110 VkFormatProperties2 formatProperties; in getDrmFormatModifiers() local
111 deMemset(&formatProperties, 0, sizeof(formatProperties)); in getDrmFormatModifiers()
114 formatProperties.sType = VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_2; in getDrmFormatModifiers()
115 formatProperties.pNext = &modifierProperties; in getDrmFormatModifiers()
117 vki.getPhysicalDeviceFormatProperties2(physicalDevice, format, &formatProperties); in getDrmFormatModifiers()
122 vki.getPhysicalDeviceFormatProperties2(physicalDevice, format, &formatProperties); in getDrmFormatModifiers()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/modifiers/
H A DvktModifiersTests.cpp105 VkFormatProperties2 formatProperties; in getDrmFormatModifiers() local
106 deMemset(&formatProperties, 0, sizeof(formatProperties)); in getDrmFormatModifiers()
109 formatProperties.sType = VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_2; in getDrmFormatModifiers()
110 formatProperties.pNext = &modifierProperties; in getDrmFormatModifiers()
112 vki.getPhysicalDeviceFormatProperties2(physicalDevice, format, &formatProperties); in getDrmFormatModifiers()
117 vki.getPhysicalDeviceFormatProperties2(physicalDevice, format, &formatProperties); in getDrmFormatModifiers()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/
H A DvktSparseResourcesMipmapSparseResidency.cpp273 VkExtent3D imageGranularity = aspectRequirements.formatProperties.imageGranularity; in iterate()
293 if (!(aspectRequirements.formatProperties.flags & VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT) && aspectRequirements.imageMipTailFirstLod < imageSparseInfo.mipLevels) in iterate()
308 if (!(metadataAspectRequirements.formatProperties.flags & VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT)) in iterate()
322 if ((aspectRequirements.formatProperties.flags & VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT) && aspectRequirements.imageMipTailFirstLod < imageSparseInfo.mipLevels) in iterate()
338 if (metadataAspectRequirements.formatProperties.flags & VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT) in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/sparse_resources/
H A DvktSparseResourcesMipmapSparseResidency.cpp275 VkExtent3D imageGranularity = aspectRequirements.formatProperties.imageGranularity; in iterate()
295 if (!(aspectRequirements.formatProperties.flags & VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT) && aspectRequirements.imageMipTailFirstLod < imageSparseInfo.mipLevels) in iterate()
310 if (!(metadataAspectRequirements.formatProperties.flags & VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT)) in iterate()
324 if ((aspectRequirements.formatProperties.flags & VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT) && aspectRequirements.imageMipTailFirstLod < imageSparseInfo.mipLevels) in iterate()
340 if (metadataAspectRequirements.formatProperties.flags & VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT) in iterate()

Completed in 29 milliseconds

12345678