Home
last modified time | relevance | path

Searched refs:usageFlags (Results 1 – 25 of 97) sorted by relevance

1234

/third_party/skia/third_party/externals/angle2/src/tests/test_utils/
DVulkanHelper.h35 VkImageUsageFlags usageFlags,
39 VkImageUsageFlags usageFlags,
52 VkImageUsageFlags usageFlags) const;
55 VkImageUsageFlags usageFlags,
68 VkImageUsageFlags usageFlags) const;
71 VkImageUsageFlags usageFlags,
DVulkanHelper.cpp468 VkImageUsageFlags usageFlags, in canCreateImageExternal() argument
483 /* .usage = */ usageFlags, in canCreateImageExternal()
518 VkImageUsageFlags usageFlags, in createImage2DExternal() argument
543 /* .usage = */ usageFlags, in createImage2DExternal()
610 VkImageUsageFlags usageFlags) const in canCreateImageOpaqueFd()
617 return canCreateImageExternal(format, type, tiling, createFlags, usageFlags, in canCreateImageOpaqueFd()
623 VkImageUsageFlags usageFlags, in createImage2DOpaqueFd() argument
630 return createImage2DExternal(format, createFlags, usageFlags, imageCreateInfoPNext, extent, in createImage2DOpaqueFd()
651 VkImageUsageFlags usageFlags) const in canCreateImageZirconVmo()
658 return canCreateImageExternal(format, type, tiling, createFlags, usageFlags, in canCreateImageZirconVmo()
[all …]
/third_party/skia/third_party/externals/angle2/extensions/
DANGLE_external_objects_flags.txt61 bitfield usageFlags,
73 bitfield usageFlags,
85 bitfield usageFlags,
98 bitfield usageFlags,
111 bitfield usageFlags,
123 bitfield usageFlags,
135 bitfield usageFlags,
148 bitfield usageFlags,
160 bitfield usageFlags,
173 bitfield usageFlags,
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
DvktApiBufferMemoryRequirementsTests.cpp103 SharedPtr<std::vector<BufferUsageBitsPtr>> usageFlags; member
112 , usageFlags (new std::vector<SharedPtr<BufferUsageBits>>) in InstanceConfig()
383 std::vector<BufferUsageBits> usageFlags; in checkSupport() local
390 u::mergeFlags(usageFlags, usageFlagsTmp); in checkSupport()
399 for (auto i = usageFlags.begin(); i != usageFlags.end();) in checkSupport()
434 i = notSupported ? usageFlags.erase(i) : std::next(i); in checkSupport()
438 for (auto i = usageFlags.begin(); i != usageFlags.end(); ++i) in checkSupport()
440 for (auto j = std::next(i); j != usageFlags.end();) in checkSupport()
441 j = (*i == *j) ? usageFlags.erase(j) : std::next(j); in checkSupport()
444 if (usageFlags.empty()) in checkSupport()
[all …]
DvktApiBufferComputeInstance.cpp50 const VkBufferUsageFlags usageFlags = (VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT); in createDataBuffer() local
57 usageFlags, // usage in createDataBuffer()
97 const VkBufferUsageFlags usageFlags = (VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT); in createColorDataBuffer() local
104 usageFlags, // usage in createColorDataBuffer()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DVulkanExternalImageTest.cpp90 VkImageUsageFlags usageFlags) in CanCreateImage()
92 return helper.canCreateImageOpaqueFd(format, type, tiling, createFlags, usageFlags); in CanCreateImage()
98 VkImageUsageFlags usageFlags, in CreateImage2D()
105 return helper->createImage2DOpaqueFd(format, createFlags, usageFlags, imageCreateInfoPNext, in CreateImage2D()
155 VkImageUsageFlags usageFlags) in CanCreateImage()
157 return helper.canCreateImageZirconVmo(format, type, tiling, createFlags, usageFlags); in CanCreateImage()
163 VkImageUsageFlags usageFlags, in CreateImage2D()
170 return helper->createImage2DZirconVmo(format, createFlags, usageFlags, imageCreateInfoPNext, in CreateImage2D()
211 VkImageUsageFlags usageFlags, in RunShouldImportMemoryTest() argument
222 VK_IMAGE_TILING_OPTIMAL, createFlags, usageFlags)); in RunShouldImportMemoryTest()
[all …]
/third_party/skia/tools/sk_app/
DVulkanWindowContext.cpp218 VkImageUsageFlags usageFlags = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | in createSwapchain() local
221 SkASSERT((caps.supportedUsageFlags & usageFlags) == usageFlags); in createSwapchain()
223 usageFlags |= VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT; in createSwapchain()
226 usageFlags |= VK_IMAGE_USAGE_SAMPLED_BIT; in createSwapchain()
294 swapchainCreateInfo.imageUsage = usageFlags; in createSwapchain()
327 if (!this->createBuffers(swapchainCreateInfo.imageFormat, usageFlags, colorType, in createSwapchain()
339 bool VulkanWindowContext::createBuffers(VkFormat format, VkImageUsageFlags usageFlags, in createBuffers() argument
359 info.fImageUsageFlags = usageFlags; in createBuffers()
364 if (usageFlags & VK_IMAGE_USAGE_SAMPLED_BIT) { in createBuffers()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/linux/
DDmaBufImageSiblingVkLinux.cpp189 VkImageUsageFlags usageFlags, in IsFormatSupported() argument
203 imageFormatInfo.usage = usageFlags; in IsFormatSupported()
371 VkImageUsageFlags usageFlags = in initImpl() local
390 if (!IsFormatSupported(renderer, vulkanFormat, plane0Modifier, usageFlags, createFlags, in initImpl()
394 usageFlags &= ~kRenderUsage; in initImpl()
395 if (!IsFormatSupported(renderer, vulkanFormat, plane0Modifier, usageFlags, createFlags, in initImpl()
399 usageFlags &= ~kTextureUsage; in initImpl()
401 if (!IsFormatSupported(renderer, vulkanFormat, plane0Modifier, usageFlags, createFlags, in initImpl()
459 usageFlags, createFlags, vk::ImageLayout::ExternalPreInitialized, imageCreateInfoPNext, in initImpl()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
DIndexBuffer9.cpp55 DWORD usageFlags = D3DUSAGE_WRITEONLY; in initialize() local
58 usageFlags |= D3DUSAGE_DYNAMIC; in initialize()
62 mRenderer->createIndexBuffer(bufferSize, usageFlags, format, &mIndexBuffer); in initialize()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
DIndexBuffer9.cpp55 DWORD usageFlags = D3DUSAGE_WRITEONLY; in initialize() local
58 usageFlags |= D3DUSAGE_DYNAMIC; in initialize()
62 mRenderer->createIndexBuffer(bufferSize, usageFlags, format, &mIndexBuffer); in initialize()
/third_party/skia/src/gpu/
DGrAHardwareBufferUtils.cpp374 VkImageUsageFlags usageFlags = VK_IMAGE_USAGE_SAMPLED_BIT; in make_vk_backend_texture() local
376 usageFlags = usageFlags | in make_vk_backend_texture()
380 usageFlags = usageFlags | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; in make_vk_backend_texture()
401 usageFlags, // VkImageUsageFlags in make_vk_backend_texture()
/third_party/flutter/skia/src/gpu/
DGrAHardwareBufferUtils.cpp372 VkImageUsageFlags usageFlags = VK_IMAGE_USAGE_SAMPLED_BIT; in make_vk_backend_texture() local
374 usageFlags = usageFlags | in make_vk_backend_texture()
378 usageFlags = usageFlags | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; in make_vk_backend_texture()
397 usageFlags, // VkImageUsageFlags in make_vk_backend_texture()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ssbo/
DvktSSBOCornerCase.cpp127 …er> createBuffer (Context &context, vk::VkDeviceSize bufferSize, vk::VkBufferUsageFlags usageFlags) in createBuffer() argument
139 usageFlags, // VkBufferUsageFlags usage; in createBuffer()
211 …vk::VkFlags usageFlags = vk::VK_BUFFER_USAGE_STORAGE_BUFFER_BIT | vk::VK_BUFFER_USAGE_SHADER_DEVI… in iterate() local
225 buffer = createBuffer(m_context, bufferSize, usageFlags); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
DvktImageSampleCompressedTextureTests.cpp83 …VkImageUsageFlags usageFlags = VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_COLOR_ATTACHMENT_B… in makeImageCreateInfo() local
90 usageFlags = VK_IMAGE_USAGE_STORAGE_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT in makeImageCreateInfo()
108 usageFlags, // VkImageUsageFlags usage; in makeImageCreateInfo()
359 VkImageUsageFlags usageFlags = VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_SAMPLED_BIT; in iterate() local
364 usageFlags, //VkImageUsageFlags usage; in iterate()
670 const auto usageFlags = VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT in checkSupport() local
684 VK_IMAGE_TILING_OPTIMAL, usageFlags, (VkImageCreateFlags)0, in checkSupport()
689 VK_IMAGE_TILING_OPTIMAL, usageFlags, (VkImageCreateFlags)0, in checkSupport()
695 usageFlags, VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT, in checkSupport()
DvktImageDepthStencilDescriptorTests.cpp181 VkImageUsageFlags usageFlags = 0u; in getReadOnlyUsageFlags() local
186 usageFlags |= VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT; in getReadOnlyUsageFlags()
188 usageFlags |= VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT; in getReadOnlyUsageFlags()
190 usageFlags |= VK_IMAGE_USAGE_SAMPLED_BIT; in getReadOnlyUsageFlags()
195 return usageFlags; in getReadOnlyUsageFlags()
248 VkImageUsageFlags usageFlags = (VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT); in getUsageFlags() local
251 usageFlags |= VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT; in getUsageFlags()
256 usageFlags |= getReadOnlyUsageFlags(*depthROAccesses); in getUsageFlags()
262 usageFlags |= getReadOnlyUsageFlags(*stencilROAccesses); in getUsageFlags()
265 return usageFlags; in getUsageFlags()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DBufferVk.cpp37 VkBufferUsageFlags usageFlags, in ConversionBuffer() argument
42 data.init(renderer, usageFlags, alignment, initialSize, true); in ConversionBuffer()
104 const VkImageUsageFlags usageFlags = in setData() local
114 createInfo.usage = usageFlags; in setData()
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
DVkDeviceMemoryExternalAndroid.cpp99 uint64_t GetAHBUsageFromVkImageFlags(VkImageCreateFlags createFlags, VkImageUsageFlags usageFlags) in GetAHBUsageFromVkImageFlags() argument
103 if(usageFlags & VK_IMAGE_USAGE_SAMPLED_BIT) in GetAHBUsageFromVkImageFlags()
107 if(usageFlags & VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT) in GetAHBUsageFromVkImageFlags()
111 if(usageFlags & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT) in GetAHBUsageFromVkImageFlags()
/third_party/skia/src/gpu/mtl/
DGrMtlAttachment.mm84 UsageFlags usageFlags = UsageFlags::kTexture;
86 usageFlags |= UsageFlags::kColorAttachment;
92 return GrMtlAttachment::Make(gpu, dimensions, usageFlags, numSamples, format, mipLevels,
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmComputeShaderCase.cpp75 VkBufferUsageFlags usageFlags = (VkBufferUsageFlags)0u; in createBufferAndBindMemory() local
78 usageFlags |= VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT; in createBufferAndBindMemory()
82 case VK_DESCRIPTOR_TYPE_STORAGE_BUFFER: usageFlags |= VK_BUFFER_USAGE_STORAGE_BUFFER_BIT; break; in createBufferAndBindMemory()
83 case VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER: usageFlags |= VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT; break; in createBufferAndBindMemory()
84 case VK_DESCRIPTOR_TYPE_STORAGE_IMAGE: usageFlags |= VK_BUFFER_USAGE_TRANSFER_SRC_BIT; break; in createBufferAndBindMemory()
85 case VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE: usageFlags |= VK_BUFFER_USAGE_TRANSFER_SRC_BIT; break; in createBufferAndBindMemory()
86 …case VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER: usageFlags |= VK_BUFFER_USAGE_TRANSFER_SRC_BIT; br… in createBufferAndBindMemory()
96 usageFlags, // usage in createBufferAndBindMemory()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DBufferVk.cpp176 VkBufferUsageFlags usageFlags, in ConversionBuffer() argument
182 data.init(renderer, usageFlags, alignment, initialSize, hostVisible, in ConversionBuffer()
316 VkImageUsageFlags usageFlags = in setExternalBufferData() local
324 usageFlags |= VK_BUFFER_USAGE_TRANSFORM_FEEDBACK_BUFFER_BIT_EXT; in setExternalBufferData()
333 createInfo.usage = usageFlags; in setExternalBufferData()
440 VkImageUsageFlags usageFlags = in setDataWithMemoryType() local
449 usageFlags |= VK_BUFFER_USAGE_TRANSFORM_FEEDBACK_BUFFER_BIT_EXT; in setDataWithMemoryType()
456 mBufferPool.initWithFlags(renderer, usageFlags, bufferHelperAlignment, in setDataWithMemoryType()
DMemoryObjectVk.cpp176 GLbitfield usageFlags, in createImage() argument
189 vk::GetMaximalImageUsageFlags(renderer, actualFormatID) & usageFlags; in createImage()
/third_party/flutter/skia/src/gpu/vk/
DGrVkGpu.cpp792 VkImageUsageFlags usageFlags = VK_IMAGE_USAGE_SAMPLED_BIT | in uploadTexDataOptimal() local
804 imageDesc.fUsageFlags = usageFlags; in uploadTexDataOptimal()
963 VkImageUsageFlags usageFlags = VK_IMAGE_USAGE_SAMPLED_BIT; in onCreateTexture() local
965 usageFlags |= VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; in onCreateTexture()
974 usageFlags |= VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT; in onCreateTexture()
988 imageDesc.fUsageFlags = usageFlags; in onCreateTexture()
1065 VkImageUsageFlags usageFlags = VK_IMAGE_USAGE_SAMPLED_BIT; in onCreateCompressedTexture() local
1073 usageFlags |= VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT; in onCreateCompressedTexture()
1084 imageDesc.fUsageFlags = usageFlags; in onCreateCompressedTexture()
1581 VkImageUsageFlags usageFlags = 0; in createVkImageForBackendSurface() local
[all …]
/third_party/flutter/skia/tools/sk_app/
DVulkanWindowContext.cpp217 VkImageUsageFlags usageFlags = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | in createSwapchain() local
220 SkASSERT((caps.supportedUsageFlags & usageFlags) == usageFlags); in createSwapchain()
287 swapchainCreateInfo.imageUsage = usageFlags; in createSwapchain()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory/
DvktMemoryExternalMemoryHostTests.cpp332 …const VkImageUsageFlags usageFlags = (VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE… in iterate() local
335 verifyFormatProperties(m_testParams.m_format, tiling, usageFlags); in iterate()
338 m_image = createImage(m_testParams.m_format, tiling, usageFlags); in iterate()
792 …const VkBufferUsageFlags usageFlags = (VK_BUFFER_USAGE_TRANSFER_DST_BIT | VK_BUFFER_USA… in iterate() local
798 m_dataBuffer = createDataBuffer(dataBufferSize, usageFlags); in iterate()
829 verifyBufferProperties(usageFlags); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelinePushDescriptorTests.cpp404 …const VkBufferUsageFlags usageFlags = m_params.descriptorType == VK_DESCRIPTOR_TYPE_UNIFORM_BUFF… in init() local
412 usageFlags, // VkBufferUsageFlags usage; in init()
807 …const VkBufferUsageFlags usageFlags = m_params.descriptorType == VK_DESCRIPTOR_TYPE_UNIFORM_BUFF… in init() local
815 usageFlags, // VkBufferUsageFlags usage; in init()
1149 VkImageUsageFlags usageFlags = VK_IMAGE_USAGE_TRANSFER_DST_BIT; in init() local
1151 usageFlags |= VK_IMAGE_USAGE_SAMPLED_BIT; in init()
1153 usageFlags |= VK_IMAGE_USAGE_STORAGE_BIT; in init()
1167 usageFlags, // VkImageUsageFlags usage; in init()
1951 VkImageUsageFlags usageFlags = VK_IMAGE_USAGE_TRANSFER_DST_BIT; in init() local
1953 usageFlags |= VK_IMAGE_USAGE_SAMPLED_BIT; in init()
[all …]

1234