diff options
author | Eric Anholt <anholt@freebsd.org> | 2006-04-01 22:17:44 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2006-04-01 22:17:44 +0000 |
commit | c720ffe875e4b2038746ff9b4767f8b90db0a307 (patch) | |
tree | b10c07e15f4bce369d4bd4fd15d16905ec269a08 | |
parent | 5c0a2088e229d05c38e5df7daea45af0d7db7daf (diff) |
Use fb's depth-to-planemask computation, which doesn't suffer from getting
a 1 planemask at depth 32. Fixes Get/PutImage xtest tests.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | exa/exa_priv.h | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2006-04-01 Eric Anholt <anholt@FreeBSD.org> + + * exa/exa_priv.h: + Use fb's depth-to-planemask computation, which doesn't suffer from + getting a 1 planemask at depth 32. Fixes Get/PutImage xtest tests. + 2006-04-01 Daniel Stone <daniel@freedesktop.org> * configure.ac: diff --git a/exa/exa_priv.h b/exa/exa_priv.h index 5effca506..3c09560c2 100644 --- a/exa/exa_priv.h +++ b/exa/exa_priv.h @@ -137,8 +137,8 @@ extern int exaPixmapPrivateIndex; * pixel values for pDrawable. */ #define EXA_PM_IS_SOLID(_pDrawable, _pm) \ - (((_pm) & ((1 << (_pDrawable)->bitsPerPixel) - 1)) == \ - ((1 << (_pDrawable)->bitsPerPixel) - 1)) + (((_pm) & FbFullMask((_pDrawable)->depth)) == \ + FbFullMask((_pDrawable)->depth)) #define EXA_PIXMAP_SCORE_MOVE_IN 10 #define EXA_PIXMAP_SCORE_MAX 20 |