summaryrefslogtreecommitdiff
path: root/uxa
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-08-05 22:50:01 -0700
committerKeith Packard <keithp@keithp.com>2008-08-05 22:50:01 -0700
commitfc3e287e6b6db21b113aa40ec4d397802c067f8b (patch)
treed25403437529922c77ac5e789d01f2c1ed393346 /uxa
parent68f0872db6ec4d5dc3b524ee08ecad0aa125acd9 (diff)
[uxa] Remove unused pixmap size limits.
All size-related rendering limits should be managed by the driver in the pixmap_is_offscreen call. There's no need for uxa to even know these values.
Diffstat (limited to 'uxa')
-rw-r--r--uxa/uxa.c14
-rw-r--r--uxa/uxa.h50
2 files changed, 0 insertions, 64 deletions
diff --git a/uxa/uxa.c b/uxa/uxa.c
index c76cb1d2..aac3d686 100644
--- a/uxa/uxa.c
+++ b/uxa/uxa.c
@@ -408,20 +408,6 @@ uxa_driver_init(ScreenPtr screen, uxa_driver_t *uxa_driver)
return FALSE;
}
- /* If the driver doesn't set any max pitch values, we'll just assume
- * that there's a limitation by pixels, and that it's the same as
- * maxX.
- *
- * We want max_pitch_pixels or max_pitch_bytes to be set so we can check
- * pixmaps against the max pitch in uxaCreatePixmap() -- it matters
- * whether a pixmap is rejected because of its pitch or
- * because of its width.
- */
- if (!uxa_driver->max_pitch_pixels && !uxa_driver->max_pitch_bytes)
- {
- uxa_driver->max_pitch_pixels = uxa_driver->max_x;
- }
-
#ifdef RENDER
ps = GetPictureScreenIfSet(screen);
#endif
diff --git a/uxa/uxa.h b/uxa/uxa.h
index 22889b7c..f1c1cfa9 100644
--- a/uxa/uxa.h
+++ b/uxa/uxa.h
@@ -68,26 +68,6 @@ typedef struct _UxaDriver {
*/
int flags;
- /** @{ */
- /**
- * max_x controls the X coordinate limitation for rendering from the card.
- * The driver should never receive a request for rendering beyond max_x
- * in the X direction from the origin of a pixmap.
- */
- int max_x;
-
- /**
- * max_y controls the Y coordinate limitation for rendering from the card.
- * The driver should never receive a request for rendering beyond max_y
- * in the Y direction from the origin of a pixmap.
- */
- int max_y;
- /** @} */
-
- /* private */
- Bool needsSync;
- int lastMarker;
-
/** @name solid
* @{
*/
@@ -510,36 +490,6 @@ typedef struct _UxaDriver {
*/
Bool (*pixmap_is_offscreen)(PixmapPtr pPix);
- /**
- * max_pitch_pixels 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 max_pitch_pixels.
- *
- * 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 max_pitch_bytes is set, then max_pitch_pixels is set to max_x.
- * If set, it must not be smaller than max_x.
- *
- * @sa max_pitch_bytes
- */
- int max_pitch_pixels;
-
- /**
- * max_pitch_bytes 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 max_pitch_bytes.
- *
- * 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 max_x * 4.
- * There's no default value for max_pitch_bytes.
- *
- * @sa max_pitch_pixels
- */
- int max_pitch_bytes;
-
/** @} */
} uxa_driver_t;