Blame SOURCES/mozilla-bmo1716707-swizzle.patch
|
|
481763 |
# HG changeset patch
|
|
|
481763 |
# User M. Sirringhaus <msirringhaus@suse.de>
|
|
|
481763 |
# Date 1645518286 -3600
|
|
|
481763 |
# Tue Feb 22 09:24:46 2022 +0100
|
|
|
481763 |
# Node ID 494640792b4677f6462e95b90a54a4e22aeb738b
|
|
|
481763 |
# Parent 81832d035e101471dcf52dd91de287268add7a91
|
|
|
481763 |
imported patch one_swizzle_to_rule_them_all.patch
|
|
|
481763 |
|
|
|
481763 |
Index: firefox-102.0/gfx/webrender_bindings/RenderCompositorSWGL.cpp
|
|
|
481763 |
===================================================================
|
|
|
481763 |
--- firefox-102.0.orig/gfx/webrender_bindings/RenderCompositorSWGL.cpp
|
|
|
481763 |
+++ firefox-102.0/gfx/webrender_bindings/RenderCompositorSWGL.cpp
|
|
|
481763 |
@@ -7,6 +7,7 @@
|
|
|
481763 |
#include "RenderCompositorSWGL.h"
|
|
|
481763 |
|
|
|
481763 |
#include "mozilla/gfx/Logging.h"
|
|
|
481763 |
+#include "mozilla/gfx/Swizzle.h"
|
|
|
481763 |
#include "mozilla/widget/CompositorWidget.h"
|
|
|
481763 |
|
|
|
481763 |
#ifdef MOZ_WIDGET_GTK
|
|
|
481763 |
@@ -235,6 +237,13 @@ void RenderCompositorSWGL::CommitMappedB
|
|
|
481763 |
}
|
|
|
481763 |
mDT->Flush();
|
|
|
481763 |
|
|
|
481763 |
+#if MOZ_BIG_ENDIAN()
|
|
|
481763 |
+ // One swizzle to rule them all.
|
|
|
481763 |
+ gfx::SwizzleData(mMappedData, mMappedStride, gfx::SurfaceFormat::B8G8R8A8,
|
|
|
481763 |
+ mMappedData, mMappedStride, gfx::SurfaceFormat::A8R8G8B8,
|
|
|
481763 |
+ mDT->GetSize());
|
|
|
481763 |
+#endif
|
|
|
481763 |
+
|
|
|
481763 |
// Done with the DT. Hand it back to the widget and clear out any trace of it.
|
|
|
481763 |
mWidget->EndRemoteDrawingInRegion(mDT, mDirtyRegion);
|
|
|
481763 |
mDirtyRegion.SetEmpty();
|