Re: [Mesa-dev] [PATCH] radv: detect command buffers that do no work and drop them (v2)

2017-02-13 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Sun, Feb 12, 2017, at 20:11, Dave Airlie wrote: > From: Dave Airlie > > If a buffer is just full of flushes we flush things on command > buffer submission, so don't bother submitting these. > > This will reduce some CPU overhead on dota2, which submits a fair

[Mesa-dev] [PATCH] radv: detect command buffers that do no work and drop them (v2)

2017-02-12 Thread Dave Airlie
From: Dave Airlie If a buffer is just full of flushes we flush things on command buffer submission, so don't bother submitting these. This will reduce some CPU overhead on dota2, which submits a fair few command streams that don't end up drawing anything. v2: reorganise loop to count first then

Re: [Mesa-dev] [PATCH] radv: detect command buffers that do no work and drop them

2017-02-10 Thread Bas Nieuwenhuizen
On Fri, Feb 10, 2017, at 05:25, Dave Airlie wrote: > From: Dave Airlie > > If a buffer is just full of flushes we flush things on command > buffer submission, so don't bother submitting these. > > This will reduce some CPU overhead on dota2, which submits a fair > few command streams that don'

Re: [Mesa-dev] [PATCH] radv: detect command buffers that do no work and drop them

2017-02-10 Thread Dave Airlie
On 10 February 2017 at 15:29, Jason Ekstrand wrote: > On Feb 9, 2017 8:25 PM, "Dave Airlie" wrote: > > From: Dave Airlie > > If a buffer is just full of flushes we flush things on command > buffer submission, so don't bother submitting these. > > This will reduce some CPU overhead on dota2, whic

Re: [Mesa-dev] [PATCH] radv: detect command buffers that do no work and drop them

2017-02-09 Thread Jason Ekstrand
On Feb 9, 2017 8:25 PM, "Dave Airlie" wrote: From: Dave Airlie If a buffer is just full of flushes we flush things on command buffer submission, so don't bother submitting these. This will reduce some CPU overhead on dota2, which submits a fair few command streams that don't end up drawing any

[Mesa-dev] [PATCH] radv: detect command buffers that do no work and drop them

2017-02-09 Thread Dave Airlie
From: Dave Airlie If a buffer is just full of flushes we flush things on command buffer submission, so don't bother submitting these. This will reduce some CPU overhead on dota2, which submits a fair few command streams that don't end up drawing anything. Signed-off-by: Dave Airlie --- src/am