blob: 451a751ebca859858ed3f59a28a747fcd826130e [file] [log] [blame]
//
// Copyright 2021 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// dma_buf_utils.h: Utilities to interact with Linux dma bufs.
#ifndef COMMON_LINUX_DMA_BUF_UTILS_H_
#define COMMON_LINUX_DMA_BUF_UTILS_H_
#include <angle_gl.h>
#if defined(ANGLE_ENABLE_VULKAN)
# include <vulkan/vulkan_core.h>
# include <vector>
#endif
namespace angle
{
GLenum DrmFourCCFormatToGLInternalFormat(int format, bool *isYUV);
#if defined(ANGLE_ENABLE_VULKAN)
std::vector<int> VkFormatToDrmFourCCFormat(VkFormat format);
std::vector<VkFormat> DrmFourCCFormatToVkFormats(int fourccFormat);
#endif
} // namespace angle
#endif // COMMON_LINUX_DMA_BUF_UTILS_H_