diff options
author | Dave Airlie <airlied@redhat.com> | 2009-08-11 15:00:36 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-08-14 09:33:48 +1000 |
commit | 1545a120df6dffb5b84fe96c5a992357520b7c8d (patch) | |
tree | 2dacc81459efd5b9eb1f0f663b7458aeb0e47814 /exa/exa.h | |
parent | db568f9eabf3450d8a023597ff007df355b13ea8 (diff) |
exa: fix CreatePixmap2 to be useful for tiling.
This adds a pitch return so that the driver can align the pitch to any
value it wishes and not just the one it gave to EXA at startup.
Diffstat (limited to 'exa/exa.h')
-rw-r--r-- | exa/exa.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -708,8 +708,10 @@ typedef struct _ExaDriver { int depth, int bitsPerPixel, int devKind, pointer pPixData); + /* if the driver is going to tile the buffer it may need to adjust the pitch alignment */ void *(*CreatePixmap2)(ScreenPtr pScreen, int width, int height, - int depth, int usage_hint, int bitsPerPixel); + int depth, int usage_hint, int bitsPerPixel, + int *new_fb_pitch); /** @} */ } ExaDriverRec, *ExaDriverPtr; |