Re: [Intel-gfx] [PATCH 1/3] uxa: Don't emit PIPE_CONTROLs in an empty batch.

2014-03-06 Thread Chris Wilson
On Thu, Mar 06, 2014 at 01:12:30PM -0800, Kenneth Graunke wrote: > The first call to BEGIN_BATCH or BEGIN_BATCH_BLT will set current_batch > to RENDER_BATCH or BLT_BATCH. If it's zero, that means the batch is > empty, so there's no point in flushing. > > Previously, we would just go ahead and do

[Intel-gfx] [PATCH 1/3] uxa: Don't emit PIPE_CONTROLs in an empty batch.

2014-03-06 Thread Kenneth Graunke
The first call to BEGIN_BATCH or BEGIN_BATCH_BLT will set current_batch to RENDER_BATCH or BLT_BATCH. If it's zero, that means the batch is empty, so there's no point in flushing. Previously, we would just go ahead and do a RENDER_RING flush, though more by accident than intentional design. Sign