commit 914a857b232ed6772a67c6d8c0b53b15d31e1661
parent 7baf2739c4d8e79863e2b104de4128cd17db893f
Author: stransky <stransky@redhat.com>
Date: Tue, 9 Dec 2025 10:55:07 +0000
Bug 1998803 [Linux] Log missing/wrong gfx formats instead of assert r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D275585
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/widget/gtk/DMABufSurface.cpp b/widget/gtk/DMABufSurface.cpp
@@ -1533,8 +1533,9 @@ size_t DMABufSurfaceYUV::GetUsedMemoryYUV(int32_t aFOURCCFormat, int aWidth,
// one plane 8b + two planes 8b (half sized).
return aWidth * aHeight + (aWidth >> 1) * (aHeight >> 1) * 2;
default:
- MOZ_DIAGNOSTIC_CRASH(
- "DMABufSurfaceYUV::GetUsedMemoryYUV(): unknown format!");
+ gfxCriticalError()
+ << "DMABufSurfaceYUV::GetUsedMemoryYUV(): unknown format: "
+ << gfx::hexa(aFOURCCFormat);
return 0;
}
}
@@ -1745,7 +1746,8 @@ bool DMABufSurfaceYUV::CreateYUVPlaneExport(GLContext* aGLContext, int aPlane) {
break;
default:
gfxCriticalError()
- << "DMABufSurfaceYUV::CreateYUVPlaneExport(): Unsupported format";
+ << "DMABufSurfaceYUV::CreateYUVPlaneExport(): Unsupported format:"
+ << gfx::hexa(mDrmFormats[aPlane]);
return false;
}