summaryrefslogtreecommitdiff
path: root/exa/exa_priv.h
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2007-09-24 22:06:52 +0200
committerTilman Sauerbeck <tilman@code-monkey.de>2007-09-25 16:43:06 +0200
commitae8b4f7dcf1291a2f5a0d0159f3e6089eea0578a (patch)
treeada82ec180d7f6f5073c5172b8c8eea050e43ee9 /exa/exa_priv.h
parent988f446fe00ac2b92c484a4440613dd82191eadd (diff)
EXA: Added pitch limitations.
Drivers can now specify the max pitches that the accelerator supports.
Diffstat (limited to 'exa/exa_priv.h')
-rw-r--r--exa/exa_priv.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/exa/exa_priv.h b/exa/exa_priv.h
index 9e4f8bc52..a26933d11 100644
--- a/exa/exa_priv.h
+++ b/exa/exa_priv.h
@@ -154,6 +154,10 @@ extern int exaPixmapPrivateIndex;
#define ExaSetPixmapPriv(p,a) ((p)->devPrivates[exaPixmapPrivateIndex].ptr = (pointer) (a))
#define ExaPixmapPriv(p) ExaPixmapPrivPtr pExaPixmap = ExaGetPixmapPriv(p)
+#define EXA_RANGE_PITCH (1 << 0)
+#define EXA_RANGE_WIDTH (1 << 1)
+#define EXA_RANGE_HEIGHT (1 << 2)
+
typedef struct {
ExaOffscreenArea *area;
int score; /**< score for the move-in vs move-out heuristic */
@@ -167,6 +171,17 @@ typedef struct {
unsigned int fb_size; /**< size of pixmap in framebuffer memory */
/**
+ * Holds information about whether this pixmap can be used for
+ * acceleration (== 0) or not (> 0).
+ *
+ * Contains a OR'ed combination of the following values:
+ * EXA_RANGE_PITCH - set if the pixmap's pitch is out of range
+ * EXA_RANGE_WIDTH - set if the pixmap's width is out of range
+ * EXA_RANGE_HEIGHT - set if the pixmap's height is out of range
+ */
+ unsigned int accel_blocked;
+
+ /**
* The damage record contains the areas of the pixmap's current location
* (framebuffer or system) that have been damaged compared to the other
* location.