summaryrefslogtreecommitdiff
path: root/src/helpers/Format.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers/Format.cpp')
-rw-r--r--src/helpers/Format.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/helpers/Format.cpp b/src/helpers/Format.cpp
index 5c35b8ea..7660934e 100644
--- a/src/helpers/Format.cpp
+++ b/src/helpers/Format.cpp
@@ -297,22 +297,6 @@ int NFormatUtils::minStride(const SPixelFormat* const fmt, int32_t width) {
return std::ceil((width * fmt->bytesPerBlock) / pixelsPerBlock(fmt));
}
-uint32_t NFormatUtils::drmFormatToGL(DRMFormat drm) {
- switch (drm) {
- case DRM_FORMAT_XRGB8888:
- case DRM_FORMAT_XBGR8888: return GL_RGBA; // doesn't matter, opengl is gucci in this case.
- case DRM_FORMAT_XRGB2101010:
- case DRM_FORMAT_XBGR2101010: return GL_RGB10_A2;
- default: return GL_RGBA;
- }
- UNREACHABLE();
- return GL_RGBA;
-}
-
-uint32_t NFormatUtils::glFormatToType(uint32_t gl) {
- return gl != GL_RGBA ? GL_UNSIGNED_INT_2_10_10_10_REV : GL_UNSIGNED_BYTE;
-}
-
std::string NFormatUtils::drmFormatName(DRMFormat drm) {
auto n = drmGetFormatName(drm);