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_batch.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_batch.h')
-rw-r--r-- | src/gallium/drivers/i915/i915_batch.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/i915/i915_batch.h b/src/gallium/drivers/i915/i915_batch.h index 0cb5801a14e..5f2b3242f53 100644 --- a/src/gallium/drivers/i915/i915_batch.h +++ b/src/gallium/drivers/i915/i915_batch.h @@ -47,12 +47,14 @@ #define OUT_RELOC_FENCED(buf, usage, offset) \ i915_winsys_batchbuffer_reloc(i915->batch, buf, usage, offset, true) -#define FLUSH_BATCH(fence) \ - i915_flush(i915, fence) +#define FLUSH_BATCH(fence, flags) \ + i915_flush(i915, fence, flags) /************************************************************************ * i915_flush.c */ -void i915_flush(struct i915_context *i915, struct pipe_fence_handle **fence); +extern void i915_flush(struct i915_context *i915, + struct pipe_fence_handle **fence, + enum pipe_flush_flags flags); #endif |