projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gallium: make constant_buffer const
[mesa.git]
/
src
/
gallium
/
drivers
/
i915
/
i915_winsys.h
diff --git
a/src/gallium/drivers/i915/i915_winsys.h
b/src/gallium/drivers/i915/i915_winsys.h
index 4c42c94fc00b480806e97eddf99c98636d704ef3..509e6cca13bbb0eabc1b02a897894e3aaf2821fd 100644
(file)
--- a/
src/gallium/drivers/i915/i915_winsys.h
+++ b/
src/gallium/drivers/i915/i915_winsys.h
@@
-61,6
+61,12
@@
enum i915_winsys_buffer_tile
I915_TILE_Y
};
I915_TILE_Y
};
+enum i915_winsys_flush_flags
+{
+ I915_FLUSH_ASYNC = 0,
+ I915_FLUSH_END_OF_FRAME = 1
+};
+
struct i915_winsys_batchbuffer {
struct i915_winsys *iws;
struct i915_winsys_batchbuffer {
struct i915_winsys *iws;
@@
-125,7
+131,8
@@
struct i915_winsys {
* Flush a bufferbatch.
*/
void (*batchbuffer_flush)(struct i915_winsys_batchbuffer *batch,
* Flush a bufferbatch.
*/
void (*batchbuffer_flush)(struct i915_winsys_batchbuffer *batch,
- struct pipe_fence_handle **fence);
+ struct pipe_fence_handle **fence,
+ enum i915_winsys_flush_flags flags);
/**
* Destroy a batchbuffer.
/**
* Destroy a batchbuffer.
@@
-169,6
+176,7
@@
struct i915_winsys {
struct i915_winsys_buffer *
(*buffer_from_handle)(struct i915_winsys *iws,
struct winsys_handle *whandle,
struct i915_winsys_buffer *
(*buffer_from_handle)(struct i915_winsys *iws,
struct winsys_handle *whandle,
+ unsigned height,
enum i915_winsys_buffer_tile *tiling,
unsigned *stride);
enum i915_winsys_buffer_tile *tiling,
unsigned *stride);
@@
-240,6
+248,11
@@
struct i915_winsys {
struct pipe_fence_handle *fence);
/*@}*/
struct pipe_fence_handle *fence);
/*@}*/
+ /**
+ * Retrieve the aperture size (in MiB) of the device.
+ */
+ int (*aperture_size)(struct i915_winsys *iws);
+
/**
* Destroy the winsys.
/**
* Destroy the winsys.