diff options
author | Eric Anholt <eric@anholt.net> | 2009-08-07 18:05:29 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-08-07 18:20:24 -0700 |
commit | 222b52ef16895823fbf3a0fc0be4eb23b930ed1b (patch) | |
tree | efd76ffbd4c1aa2243f90e7cc2ab42a8c379d5a0 /src/i830.h | |
parent | 62494407e529cfa68529b7267155a12d75418f21 (diff) |
Align tiled pixmap height so we don't address beyond the end of our buffers.
Diffstat (limited to 'src/i830.h')
-rw-r--r-- | src/i830.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -619,6 +619,8 @@ typedef struct _I830Rec { #define I830PTR(p) ((I830Ptr)((p)->driverPrivate)) #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) +#define ALIGN(i,m) (((i) + (m) - 1) & ~((m) - 1)) +#define MIN(a,b) ((a) < (b) ? (a) : (b)) #define I830_SELECT_FRONT 0 #define I830_SELECT_BACK 1 |