~ubuntu-branches/ubuntu/precise/mesa/precise-updates

« back to all changes in this revision

Viewing changes to src/gallium/drivers/i915/i915_batch.h

  • Committer: Package Import Robot
  • Author(s): Robert Hooker
  • Date: 2012-02-02 12:05:48 UTC
  • mfrom: (1.7.1) (3.3.27 sid)
  • Revision ID: package-import@ubuntu.com-20120202120548-nvkma85jq0h4coix
Tags: 8.0~rc2-0ubuntu4
Drop drisearchdir handling, it is no longer needed with multiarch
and dri-alternates being removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
 */
56
56
void i915_flush(struct i915_context *i915, struct pipe_fence_handle **fence);
57
57
 
58
 
/*
59
 
 * Flush if the current color buf is idle and we have more than 256 vertices
60
 
 * queued, or if the current color buf is busy and we have more than 4096
61
 
 * vertices queued.
62
 
 */
63
 
static INLINE void i915_flush_heuristically(struct i915_context* i915,
64
 
                                            int num_vertex)
65
 
{
66
 
   struct i915_winsys *iws = i915->iws;
67
 
   i915->vertices_since_last_flush += num_vertex;
68
 
   if ( i915->vertices_since_last_flush > 4096
69
 
      || ( i915->vertices_since_last_flush > 256 &&
70
 
           !iws->buffer_is_busy(iws, i915->current.cbuf_bo)) )
71
 
      FLUSH_BATCH(NULL);
72
 
}
73
 
 
74
 
 
75
58
#endif