diff options
author | Michel Dänzer <[email protected]> | 2009-02-18 13:14:02 +0100 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2009-02-18 13:14:02 +0100 |
commit | b89aa1d87ad6cebdbb3f2067863c600f50bf0ff1 (patch) | |
tree | d131e28eaad0eb633eff0e1cd861595f8bc5f3c3 /src/gallium/drivers/i915simple/i915_screen.h | |
parent | 3da38db5949f4c73ec01282ebf9138a0510abbee (diff) |
i915simple: Minimal fixup for introduction of struct pipe_transfer.
Diffstat (limited to 'src/gallium/drivers/i915simple/i915_screen.h')
-rw-r--r-- | src/gallium/drivers/i915simple/i915_screen.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915simple/i915_screen.h b/src/gallium/drivers/i915simple/i915_screen.h index 73b0ff05ce7..a371663453c 100644 --- a/src/gallium/drivers/i915simple/i915_screen.h +++ b/src/gallium/drivers/i915simple/i915_screen.h @@ -50,13 +50,30 @@ struct i915_screen }; -/** cast wrapper */ +/** + * Subclass of pipe_transfer + */ +struct i915_transfer +{ + struct pipe_transfer base; + + unsigned offset; +}; + + +/** cast wrappers */ static INLINE struct i915_screen * i915_screen(struct pipe_screen *pscreen) { return (struct i915_screen *) pscreen; } +static INLINE struct i915_transfer * +i915_transfer( struct pipe_transfer *transfer ) +{ + return (struct i915_transfer *)transfer; +} + extern struct pipe_screen * i915_create_screen(struct pipe_winsys *winsys, uint pci_id); |