diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-08 10:24:51 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-08 19:52:46 +0100 |
commit | f429fb9d872950705e11171d0e7407fb7673c786 (patch) | |
tree | 708d09e096cad518806ab59ed09755e1f72722f7 /src/i830.h | |
parent | 0776a42b70f2de7b7d7d8804046c79442da1cb8a (diff) |
xp:trapezoids
Diffstat (limited to 'src/i830.h')
-rw-r--r-- | src/i830.h | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -366,7 +366,6 @@ typedef struct intel_screen_private { uint32_t dst_format; } i915_render_state; - uint32_t prim_offset; void (*prim_emit)(PixmapPtr dest, int srcX, int srcY, int maskX, int maskY, @@ -428,15 +427,18 @@ intel_get_screen_private(ScrnInfoPtr scrn) #define ALIGN(i,m) (((i) + (m) - 1) & ~((m) - 1)) #define MIN(a,b) ((a) < (b) ? (a) : (b)) -unsigned long intel_get_pixmap_pitch(PixmapPtr pixmap); +static inline unsigned long intel_get_pixmap_pitch(PixmapPtr pixmap) +{ + return (unsigned long)pixmap->devKind; +} + /* Batchbuffer support macros and functions */ #include "i830_batchbuffer.h" /* I830 specific functions */ -extern void IntelEmitInvarientState(ScrnInfoPtr scrn); -extern void I830EmitInvarientState(ScrnInfoPtr scrn); -extern void I915EmitInvarientState(ScrnInfoPtr scrn); +extern void I830EmitInvarientState(intel_screen_private *intel); +extern void I915EmitInvarientState(intel_screen_private *intel); extern void I830EmitFlush(ScrnInfoPtr scrn); @@ -501,6 +503,8 @@ Bool i915_prepare_composite(int op, PicturePtr sourcec, PicturePtr mask, PixmapPtr maskPixmap, PixmapPtr destPixmap); void i915_composite(PixmapPtr dest, int srcX, int srcY, int maskX, int maskY, int dstX, int dstY, int w, int h); +Bool i915_check_trapezoids(int width, int height, int depth); +Bool i915_rasterize_trapezoids(PixmapPtr pixmap, Bool clear, int ntrap, xTrapezoid *trap, int dst_x, int dst_y); void i915_vertex_flush(intel_screen_private *intel); void i915_batch_flush_notify(ScrnInfoPtr scrn); void i830_batch_flush_notify(ScrnInfoPtr scrn); |