Andreas Wacknitz
2023-02-18 595d33a87d6d0615d1d30c3e62197e665939c28e
commit | author | age
a4af93 1 Sparc DEBUG build only issue:
CG 2
3 [GFX2-]: Failed to lock WindowSurface, falling back to XPutImage backend.
4 Crash Annotation GraphicsCriticalError: |[0][GFX1]: RGBX corner pixel at (0,0) in 921x691 surface, bounded by (0,0,921,691) is not opaque: 255,162,162,162 (t=7.19982) [GFX1]: RGBX corner pixel at (0,0) in 921x691 surface, bounded by (0,0,921,691) is not opaque: 255,162,162,162
5 Assertion failure: [GFX1]: RGBX corner pixel at (0,0) in 921x691 surface, bounded by (0,0,921,691) is not opaque: 255,162,162,162, at /scratch/firefox/gfx/2d/Logging.h:727
6
7 https://bugzilla.mozilla.org/show_bug.cgi?id=1325259
8
9 --- a/gfx/2d/DrawTargetSkia.cpp
10 +++ b/gfx/2d/DrawTargetSkia.cpp
11 @@ -145,8 +145,12 @@
12    return surfaceBounds.Intersect(bounds);
13  }
14  
15 +#if __sparc
16 +static const int kARGBAlphaOffset = 0;
17 +#else
18  static const int kARGBAlphaOffset =
19      SurfaceFormat::A8R8G8B8_UINT32 == SurfaceFormat::B8G8R8A8 ? 3 : 0;
20 +#endif
21  
22  static bool VerifyRGBXFormat(uint8_t* aData, const IntSize& aSize,
23                               const int32_t aStride, SurfaceFormat aFormat) {