diff options
author | Stéphane Marchesin <[email protected]> | 2013-03-08 13:32:55 -0800 |
---|---|---|
committer | Stéphane Marchesin <[email protected]> | 2013-03-08 19:34:50 -0800 |
commit | 1662178863d7b715530274148aa57e6494f935a8 (patch) | |
tree | 810394ad935a02c5605ec549da922cdd45f5097b /src/gallium/drivers/i915/i915_winsys.h | |
parent | d815e8af3944bca5eac7a0638da5529596735aef (diff) |
i915g: Use PIPE_FLUSH_END_OF_FRAME to trigger throttling
This helps with jittering, instead of throttling at every command
buffer we only throttle once a frame.
Diffstat (limited to 'src/gallium/drivers/i915/i915_winsys.h')
-rw-r--r-- | src/gallium/drivers/i915/i915_winsys.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_winsys.h b/src/gallium/drivers/i915/i915_winsys.h index 4c42c94fc00..8823c549a33 100644 --- 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 }; +enum i915_winsys_flush_flags +{ + I915_FLUSH_ASYNC = 0, + I915_FLUSH_END_OF_FRAME = 1 +}; + 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, - struct pipe_fence_handle **fence); + struct pipe_fence_handle **fence, + enum i915_winsys_flush_flags flags); /** * Destroy a batchbuffer. |