From ae8b4f7dcf1291a2f5a0d0159f3e6089eea0578a Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Mon, 24 Sep 2007 22:06:52 +0200 Subject: EXA: Added pitch limitations. Drivers can now specify the max pitches that the accelerator supports. --- exa/exa.h | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'exa/exa.h') diff --git a/exa/exa.h b/exa/exa.h index 9ea593381..491e6b16b 100644 --- a/exa/exa.h +++ b/exa/exa.h @@ -39,7 +39,7 @@ #include "fb.h" #define EXA_VERSION_MAJOR 2 -#define EXA_VERSION_MINOR 2 +#define EXA_VERSION_MINOR 3 #define EXA_VERSION_RELEASE 0 typedef struct _ExaOffscreenArea ExaOffscreenArea; @@ -671,6 +671,37 @@ typedef struct _ExaDriver { */ #define EXA_PREPARE_MASK 2 /** @} */ + + /** + * maxPitchPixels controls the pitch limitation for rendering from + * the card. + * The driver should never receive a request for rendering a pixmap + * that has a pitch (in pixels) beyond maxPitchPixels. + * + * Setting this field is optional -- if your hardware doesn't have + * a pitch limitation in pixels, don't set this. If neither this value + * nor maxPitchBytes is set, then maxPitchPixels is set to maxX. + * If set, it must not be smaller than maxX. + * + * @sa maxPitchBytes + */ + int maxPitchPixels; + + /** + * maxPitchBytes controls the pitch limitation for rendering from + * the card. + * The driver should never receive a request for rendering a pixmap + * that has a pitch (in bytes) beyond maxPitchBytes. + * + * Setting this field is optional -- if your hardware doesn't have + * a pitch limitation in bytes, don't set this. + * If set, it must not be smaller than maxX * 4. + * There's no default value for maxPitchBytes. + * + * @sa maxPitchPixels + */ + int maxPitchBytes; + /** @} */ } ExaDriverRec, *ExaDriverPtr; -- cgit v1.2.3