1
0
mirror of synced 2026-01-11 23:42:59 +00:00

byte-swap the FB

This commit is contained in:
Romain Dolbeau 2022-08-27 10:21:27 +02:00
parent 013f4ae853
commit 500c0113f4
2 changed files with 5 additions and 4 deletions

View File

@ -45,7 +45,7 @@
#else
#define ENTER
#define DPRINTF while (0) xf86Msg
#define RPRINTF while (0) xf86Msg
#define RPRINTF xf86Msg
#endif
#define arraysize(ary) (sizeof(ary) / sizeof(ary[0]))
@ -838,7 +838,7 @@ static void GoblinComposite(PixmapPtr pDst, int srcX, int srcY, int maskX, int m
pGoblin->jreg->reg_msk_ptr = 0;
if (pGoblin->source_is_solid) {
pGoblin->jreg->reg_fgcolor = flip ? __builtin_bswap32(pGoblin->fillcolour) : pGoblin->fillcolour; // CHECKME
pGoblin->jreg->reg_fgcolor = __builtin_bswap32(pGoblin->fillcolour);
switch (pGoblin->mskformat) {
case PICT_a8:
RPRINTF(X_INFO, "%s: %d: Starting PictOpOver: %d x %d, flip %d, %d x %d (+0x%08x)-> %d x %d (+0x%08x), fg 0x%08x\n", __func__, __LINE__,

View File

@ -423,8 +423,9 @@ GOBLINPreInit(ScrnInfoPtr pScrn, int flags)
*/
if (pScrn->depth > 8) {
rgb weight = {0, 0, 0};
rgb mask = {0xff, 0xff00, 0xff0000};
//rgb mask = {0xff, 0xff00, 0xff0000};
rgb mask = {0xff0000, 0xff00, 0xff};
if (!xf86SetWeight(pScrn, weight, mask)) {
return FALSE;
}