diff options
author | Jakob Bornecrantz <[email protected]> | 2010-04-17 15:17:33 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2010-04-17 21:13:23 +0100 |
commit | 44bafca1a0b1e9bf06e05a3ec982e0feab5ada47 (patch) | |
tree | 2b1c11f7acb9a39c3e17ffe14784a8d968db530a /src/gallium/winsys/i915/sw/i915_sw_winsys.h | |
parent | 3e3d6864da093a99bad282e78945a1b1c4503ca4 (diff) |
i915g: Add a software only debuging winsys
Diffstat (limited to 'src/gallium/winsys/i915/sw/i915_sw_winsys.h')
-rw-r--r-- | src/gallium/winsys/i915/sw/i915_sw_winsys.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/gallium/winsys/i915/sw/i915_sw_winsys.h b/src/gallium/winsys/i915/sw/i915_sw_winsys.h new file mode 100644 index 00000000000..92e7c36fd8c --- /dev/null +++ b/src/gallium/winsys/i915/sw/i915_sw_winsys.h @@ -0,0 +1,59 @@ + +#ifndef I915_SW_WINSYS_H +#define I915_SW_WINSYS_H + +#include "i915/i915_winsys.h" + + +/* + * Winsys + */ + + +struct i915_sw_winsys +{ + struct i915_winsys base; + + boolean dump_cmd; + + unsigned id; + + size_t max_batch_size; +}; + +static INLINE struct i915_sw_winsys * +i915_sw_winsys(struct i915_winsys *iws) +{ + return (struct i915_sw_winsys *)iws; +} + +struct pipe_screen* i915_sw_create_screen(void); +struct pipe_fence_handle * i915_sw_fence_create(void); + +void i915_sw_winsys_init_batchbuffer_functions(struct i915_sw_winsys *idws); +void i915_sw_winsys_init_buffer_functions(struct i915_sw_winsys *idws); +void i915_sw_winsys_init_fence_functions(struct i915_sw_winsys *idws); + + +/* + * Buffer + */ + + +struct i915_sw_buffer { + unsigned magic; + + void *ptr; + unsigned map_count; + enum i915_winsys_buffer_type type; + enum i915_winsys_buffer_tile tile; + const char *name; +}; + +static INLINE struct i915_sw_buffer * +i915_sw_buffer(struct i915_winsys_buffer *buffer) +{ + return (struct i915_sw_buffer *)buffer; +} + +#endif |