Home
last modified time | relevance | path

Searched refs:vkFormat (Results 1 – 25 of 73) sorted by relevance

123

/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DVulkanFormatTablesTest.cpp57 const rx::vk::Format &vkFormat = renderer->getFormat(internalFormat); in TEST_P() local
62 if (!vkFormat.valid()) in TEST_P()
76 vkFormat.vkImageFormat, &formatProperties); in TEST_P()
83 renderer->getPhysicalDevice(), vkFormat.vkImageFormat, params.imageType, in TEST_P()
86 EXPECT_EQ(isTexturable, textureCaps.texturable) << vkFormat.vkImageFormat; in TEST_P()
94 EXPECT_EQ(isFilterable, textureCaps.filterable) << vkFormat.vkImageFormat; in TEST_P()
99 renderer->getPhysicalDevice(), vkFormat.vkImageFormat, params.imageType, in TEST_P()
104 renderer->getPhysicalDevice(), vkFormat.vkImageFormat, params.imageType, in TEST_P()
109 EXPECT_EQ(isRenderable, textureCaps.textureAttachment) << vkFormat.vkImageFormat; in TEST_P()
110 EXPECT_EQ(isRenderable, textureCaps.renderbuffer) << vkFormat.vkImageFormat; in TEST_P()
/third_party/flutter/skia/src/gpu/vk/
DGrVkCaps.cpp1209 VkFormat vkFormat; in isFormatSRGB() local
1210 if (!format.asVkFormat(&vkFormat)) { in isFormatSRGB()
1214 return format_is_srgb(vkFormat); in isFormatSRGB()
1218 VkFormat vkFormat; in isFormatCompressed() local
1219 if (!format.asVkFormat(&vkFormat)) { in isFormatCompressed()
1223 SkASSERT(GrVkFormatIsSupported(vkFormat)); in isFormatCompressed()
1225 return vkFormat == VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK; in isFormatCompressed()
1230 VkFormat vkFormat; in isFormatTexturableAndUploadable() local
1231 if (!format.asVkFormat(&vkFormat)) { in isFormatTexturableAndUploadable()
1235 uint32_t ctFlags = this->getFormatInfo(vkFormat).colorTypeFlags(ct); in isFormatTexturableAndUploadable()
[all …]
DGrVkUtil.cpp183 size_t GrVkBytesPerFormat(VkFormat vkFormat) { in GrVkBytesPerFormat() argument
184 switch (vkFormat) { in GrVkBytesPerFormat()
228 bool GrVkFormatIsCompressed(VkFormat vkFormat) { in GrVkFormatIsCompressed() argument
229 switch (vkFormat) { in GrVkFormatIsCompressed()
237 bool GrVkFormatToCompressionType(VkFormat vkFormat, SkImage::CompressionType* compressionType) { in GrVkFormatToCompressionType() argument
238 switch (vkFormat) { in GrVkFormatToCompressionType()
DGrVkUtil.h70 bool GrVkFormatToCompressionType(VkFormat vkFormat, SkImage::CompressionType* compressionType);
73 static constexpr const char* GrVkFormatToStr(VkFormat vkFormat) { in GrVkFormatToStr() argument
74 switch (vkFormat) { in GrVkFormatToStr()
DGrVkSamplerYcbcrConversion.h26 Key(VkFormat vkFormat, uint64_t externalFormat, uint8_t conversionKey) { in Key()
28 fVkFormat = vkFormat; in Key()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
Dvk_format_utils.cpp56 bool HasFullBufferFormatSupport(RendererVk *renderer, VkFormat vkFormat) in HasFullBufferFormatSupport() argument
58 return renderer->hasBufferFormatFeatureBits(vkFormat, VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT); in HasFullBufferFormatSupport()
61 using SupportTest = bool (*)(RendererVk *renderer, VkFormat vkFormat);
75 if (hasSupport(renderer, info[i].vkFormat)) in FindSupportedFormat()
81 ASSERT(hasSupport(renderer, info[last].vkFormat)); in FindSupportedFormat()
131 vkImageFormat = info[i].vkFormat; in initImageFallback()
143 vkBufferFormat = info[i].vkFormat; in initBufferFallback()
269 bool HasFullTextureFormatSupport(RendererVk *renderer, VkFormat vkFormat) in HasFullTextureFormatSupport() argument
276 return renderer->hasImageFormatFeatureBits(vkFormat, kBitsColor) || in HasFullTextureFormatSupport()
277 renderer->hasImageFormatFeatureBits(vkFormat, kBitsDepth); in HasFullTextureFormatSupport()
[all …]
Dvk_format_utils.h41 VkFormat vkFormat; member
48 VkFormat vkFormat; member
139 const VkFormatProperties &GetMandatoryFormatSupport(VkFormat vkFormat);
146 bool HasFullTextureFormatSupport(RendererVk *renderer, VkFormat vkFormat);
148 bool HasNonFilterableTextureFormatSupport(RendererVk *renderer, VkFormat vkFormat);
150 bool HasNonRenderableTextureFormatSupport(RendererVk *renderer, VkFormat vkFormat);
DRenderbufferVk.cpp40 const vk::Format &vkFormat = renderer->getFormat(internalformat); in setStorageImpl() local
66 const angle::Format &textureFormat = vkFormat.imageFormat(); in setStorageImpl()
75 ANGLE_TRY(mImage->init(contextVk, gl::TextureType::_2D, extents, vkFormat, in setStorageImpl()
89 mImage->stageClearIfEmulatedFormat(gl::ImageIndex::Make2D(0), vkFormat); in setStorageImpl()
156 const vk::Format &vkFormat = renderer->getFormat(image->getFormat().info->sizedInternalFormat); in setStorageEGLImageTarget() local
157 const angle::Format &textureFormat = vkFormat.imageFormat(); in setStorageEGLImageTarget()
DMemoryObjectVk.cpp88 const vk::Format &vkFormat = renderer->getFormat(internalFormat); in createImage() local
93 vk::GetMaximalImageUsageFlags(renderer, vkFormat.vkImageFormat); in createImage()
103 ANGLE_TRY(image->initExternal(contextVk, type, vkExtents, vkFormat, 1, imageUsageFlags, in createImage()
Dvk_mandatory_format_support_table_autogen.cpp601 const VkFormatProperties &GetMandatoryFormatSupport(VkFormat vkFormat) in GetMandatoryFormatSupport() argument
603 ASSERT(static_cast<uint64_t>(vkFormat) < sizeof(kFormatProperties)); in GetMandatoryFormatSupport()
604 return kFormatProperties[vkFormat]; in GetMandatoryFormatSupport()
/third_party/skia/src/gpu/
DGrBackendUtils.cpp55 VkFormat vkFormat; in GrBackendFormatToCompressionType() local
56 SkAssertResult(format.asVkFormat(&vkFormat)); in GrBackendFormatToCompressionType()
57 switch (vkFormat) { in GrBackendFormatToCompressionType()
110 VkFormat vkFormat; in GrBackendFormatBytesPerBlock() local
111 SkAssertResult(format.asVkFormat(&vkFormat)); in GrBackendFormatBytesPerBlock()
112 return GrVkFormatBytesPerBlock(vkFormat); in GrBackendFormatBytesPerBlock()
170 VkFormat vkFormat; in GrBackendFormatStencilBits() local
171 SkAssertResult(format.asVkFormat(&vkFormat)); in GrBackendFormatStencilBits()
172 return GrVkFormatStencilBits(vkFormat); in GrBackendFormatStencilBits()
/third_party/skia/src/gpu/vk/
DGrVkCaps.cpp1390 VkFormat vkFormat; in backend_format_is_external() local
1391 SkAssertResult(format.asVkFormat(&vkFormat)); in backend_format_is_external()
1392 SkASSERT(vkFormat == VK_FORMAT_UNDEFINED); in backend_format_is_external()
1400 VkFormat vkFormat; in isFormatSRGB() local
1401 if (!format.asVkFormat(&vkFormat)) { in isFormatSRGB()
1408 return format_is_srgb(vkFormat); in isFormatSRGB()
1412 VkFormat vkFormat; in isFormatTexturable() local
1413 if (!format.asVkFormat(&vkFormat)) { in isFormatTexturable()
1421 return this->isVkFormatTexturable(vkFormat); in isFormatTexturable()
1434 VkFormat vkFormat; in isFormatAsColorTypeRenderable() local
[all …]
DGrVkUtil.h48 static constexpr uint32_t GrVkFormatChannels(VkFormat vkFormat) { in GrVkFormatChannels() argument
49 switch (vkFormat) { in GrVkFormatChannels()
77 static constexpr GrColorFormatDesc GrVkFormatDesc(VkFormat vkFormat) { in GrVkFormatDesc() argument
78 switch (vkFormat) { in GrVkFormatDesc()
128 static constexpr size_t GrVkFormatBytesPerBlock(VkFormat vkFormat) { in GrVkFormatBytesPerBlock() argument
129 switch (vkFormat) { in GrVkFormatBytesPerBlock()
201 static constexpr const char* GrVkFormatToStr(VkFormat vkFormat) { in GrVkFormatToStr() argument
202 switch (vkFormat) { in GrVkFormatToStr()
DGrVkSamplerYcbcrConversion.h28 Key(VkFormat vkFormat, uint64_t externalFormat, uint8_t conversionKey) { in Key()
30 fVkFormat = vkFormat; in Key()
DGrVkGpu.cpp804 VkFormat vkFormat, in fill_in_compressed_regions() argument
816 size_t bytesPerBlock = GrVkFormatBytesPerBlock(vkFormat); in fill_in_compressed_regions()
971 SkImage::CompressionType compression, VkFormat vkFormat, in uploadTexDataCompressed() argument
988 SkASSERT(uploadTexture->imageFormat() == vkFormat); in uploadTexDataCompressed()
989 SkASSERT(this->vkCaps().isVkFormatTexturable(vkFormat)); in uploadTexDataCompressed()
1000 vkFormat, in uploadTexDataCompressed()
1517 VkFormat vkFormat, in copy_src_data() argument
1522 SkASSERT(!GrVkFormatIsCompressed(vkFormat)); in copy_src_data()
1526 size_t bytesPerPixel = GrVkFormatBytesPerBlock(vkFormat); in copy_src_data()
1538 bool GrVkGpu::createVkImageForBackendSurface(VkFormat vkFormat, in createVkImageForBackendSurface() argument
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/android/
DHardwareBufferImageSiblingVkAndroid.cpp101 const vk::Format &vkFormat = renderer->getFormat(internalFormat); in initImpl() local
102 const angle::Format &imageFormat = vkFormat.imageFormat(); in initImpl()
129 ANGLE_TRY(mImage->initExternal(displayVk, gl::TextureType::_2D, vkExtents, vkFormat, 1, usage, in initImpl()
156 renderer->hasImageFormatFeatureBits(vkFormat.vkImageFormat, kColorRenderableRequiredBits) || in initImpl()
157 renderer->hasImageFormatFeatureBits(vkFormat.vkImageFormat, in initImpl()
163 renderer->hasImageFormatFeatureBits(vkFormat.vkImageFormat, kTextureableRequiredBits); in initImpl()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DVulkanFormatTablesTest.cpp57 const rx::vk::Format &vkFormat = renderer->getFormat(internalFormat); in TEST_P() local
62 if (!vkFormat.valid()) in TEST_P()
74 vkFormat.getActualImageFormatID(rx::vk::ImageAccess::SampleOnly)); in TEST_P()
101 rx::vk::GetVkFormatFromFormatID(vkFormat.getActualRenderableImageFormatID()); in TEST_P()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/linux/
DDmaBufImageSiblingVkLinux.cpp105 VkFormat vkFormat, in GetFormatModifierProperties() argument
120 vkGetPhysicalDeviceFormatProperties2(renderer->getPhysicalDevice(), vkFormat, in GetFormatModifierProperties()
127 vkGetPhysicalDeviceFormatProperties2(renderer->getPhysicalDevice(), vkFormat, in GetFormatModifierProperties()
187 VkFormat vkFormat, in IsFormatSupported() argument
200 imageFormatInfo.format = vkFormat; in IsFormatSupported()
344 const vk::Format &vkFormat = renderer->getFormat(mFormat.info->sizedInternalFormat); in initImpl() local
345 const angle::Format &format = vkFormat.getActualImageFormat(rx::vk::ImageAccess::SampleOnly); in initImpl()
346 const VkFormat vulkanFormat = vkFormat.getActualImageVkFormat(rx::vk::ImageAccess::SampleOnly); in initImpl()
347 const angle::FormatID intendedFormatID = vkFormat.getIntendedFormatID(); in initImpl()
349 vkFormat.getActualImageFormatID(rx::vk::ImageAccess::SampleOnly); in initImpl()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/
DvktImageMismatchedWriteOpTests.cpp63 VkFormat vkFormat; member
101 DE_ASSERT(getNumUsedChannels(params->vkFormat) <= sourceWidth); in MismatchedVectorSizesTest()
217 VkFormat vkFormat,
249 StorageImage2D::StorageImage2D (Context& context, VkFormat vkFormat, const int width, const int hei… in StorageImage2D() argument
254 , m_vkFormat (vkFormat) in StorageImage2D()
552 if (is64BitIntegerFormat(m_params->vkFormat)) in checkSupport()
566 …eFormatProperties(context.getInstanceInterface(), context.getPhysicalDevice(), m_params->vkFormat); in checkSupport()
576 const TextureFormat texFormat = mapVkFormat(m_params->vkFormat); in getBufferFormat()
577 …makeBufferFormat(getTextureChannelClass(texFormat.type), is64BitIntegerFormat(m_params->vkFormat)); in getBufferFormat()
712 variables["SPIRV_IMAGE_FORMAT"] = getSpirvFormat(m_params->vkFormat); in getProgramCodeAndVariables()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
DvktImageMismatchedWriteOpTests.cpp63 VkFormat vkFormat; member
101 DE_ASSERT(getNumUsedChannels(params->vkFormat) <= sourceWidth); in MismatchedVectorSizesTest()
217 VkFormat vkFormat,
249 StorageImage2D::StorageImage2D (Context& context, VkFormat vkFormat, const int width, const int hei… in StorageImage2D() argument
254 , m_vkFormat (vkFormat) in StorageImage2D()
552 if (is64BitIntegerFormat(m_params->vkFormat)) in checkSupport()
566 …eFormatProperties(context.getInstanceInterface(), context.getPhysicalDevice(), m_params->vkFormat); in checkSupport()
576 const TextureFormat texFormat = mapVkFormat(m_params->vkFormat); in getBufferFormat()
577 …makeBufferFormat(getTextureChannelClass(texFormat.type), is64BitIntegerFormat(m_params->vkFormat)); in getBufferFormat()
712 variables["SPIRV_IMAGE_FORMAT"] = getSpirvFormat(m_params->vkFormat); in getProgramCodeAndVariables()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/android/
DHardwareBufferImageSiblingVkAndroid.cpp234 const vk::Format &vkFormat = renderer->getFormat(internalFormat); in initImpl() local
236 const angle::Format &imageFormat = vkFormat.getActualRenderableImageFormat(); in initImpl()
287 bufferFormatProperties.format == VK_FORMAT_UNDEFINED ? externalVkFormat : vkFormat; in initImpl()
355 mRenderable = renderer->hasImageFormatFeatureBits(vkFormat.getActualRenderableImageFormatID(), in initImpl()
357 renderer->hasImageFormatFeatureBits(vkFormat.getActualRenderableImageFormatID(), in initImpl()
362 mTextureable = renderer->hasImageFormatFeatureBits(vkFormat.getActualRenderableImageFormatID(), in initImpl()
/third_party/skia/third_party/externals/angle2/scripts/
Dvk_mandatory_format_support_capture_to_json.js48 var vkFormat = $(this).text();
66 Object.defineProperty(outputJson, vkFormat, {
/third_party/flutter/skia/third_party/externals/angle2/scripts/
Dvk_mandatory_format_support_capture_to_json.js48 var vkFormat = $(this).text();
66 Object.defineProperty(outputJson, vkFormat, {
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/
DvktRenderPassMultisampleTests.cpp113 VkImageAspectFlags getImageAspectFlags (VkFormat vkFormat) in getImageAspectFlags() argument
115 const tcu::TextureFormat format (mapVkFormat(vkFormat)); in getImageAspectFlags()
234 VkFormat vkFormat, in createImage() argument
243 const tcu::TextureFormat format (mapVkFormat(vkFormat)); in createImage()
246 …atProperties formatProperties (getPhysicalDeviceFormatProperties(vki, physicalDevice, vkFormat)); in createImage()
247 …Properties (getPhysicalDeviceImageFormatProperties(vki, physicalDevice, vkFormat, imageType, image… in createImage()
285 vkFormat, // VkFormat format in createImage()
319 …return createImage(vkd, device, 0u, imageType, vkFormat, imageExtent, 1u, 1u, sampleCountBit, imag… in createImage()
395 VkDeviceSize getPixelSize (VkFormat vkFormat) in getPixelSize() argument
397 const tcu::TextureFormat format (mapVkFormat(vkFormat)); in getPixelSize()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/renderpass/
DvktRenderPassMultisampleTests.cpp113 VkImageAspectFlags getImageAspectFlags (VkFormat vkFormat) in getImageAspectFlags() argument
115 const tcu::TextureFormat format (mapVkFormat(vkFormat)); in getImageAspectFlags()
234 VkFormat vkFormat, in createImage() argument
243 const tcu::TextureFormat format (mapVkFormat(vkFormat)); in createImage()
246 …atProperties formatProperties (getPhysicalDeviceFormatProperties(vki, physicalDevice, vkFormat)); in createImage()
247 …Properties (getPhysicalDeviceImageFormatProperties(vki, physicalDevice, vkFormat, imageType, image… in createImage()
285 vkFormat, // VkFormat format in createImage()
319 …return createImage(vkd, device, 0u, imageType, vkFormat, imageExtent, 1u, 1u, sampleCountBit, imag… in createImage()
395 VkDeviceSize getPixelSize (VkFormat vkFormat) in getPixelSize() argument
397 const tcu::TextureFormat format (mapVkFormat(vkFormat)); in getPixelSize()
[all …]

123