projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ac: import linear/perspective PS input parameters from radv/radeonsi
[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 21cfdc9613ef5d2aa551fb343b2639c347ae6dda..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;
@@
-102,7
+108,7
@@
struct i915_winsys {
* @num_of_buffers size of the passed array
*/
boolean (*validate_buffers)(struct i915_winsys_batchbuffer *batch,
* @num_of_buffers size of the passed array
*/
boolean (*validate_buffers)(struct i915_winsys_batchbuffer *batch,
- struct i915_winsys_buffer **buffers,
+ struct i915_winsys_buffer **buffers,
int num_of_buffers);
/**
int num_of_buffers);
/**
@@
-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);
@@
-207,6
+215,12
@@
struct i915_winsys {
void (*buffer_destroy)(struct i915_winsys *iws,
struct i915_winsys_buffer *buffer);
void (*buffer_destroy)(struct i915_winsys *iws,
struct i915_winsys_buffer *buffer);
+
+ /**
+ * Check if a buffer is busy.
+ */
+ boolean (*buffer_is_busy)(struct i915_winsys *iws,
+ struct i915_winsys_buffer *buffer);
/*@}*/
/*@}*/
@@
-234,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.