Re: [Mesa-dev] [PATCH] gallium: reflect likely outcome in execution flow

2014-05-23 Thread Timothy Arceri
On Thu, 2014-05-22 at 09:54 -0400, Ilia Mirkin wrote: > On Thu, May 22, 2014 at 2:56 AM, Timothy Arceri wrote: > > On Wed, 2014-05-21 at 18:05 -0400, Ilia Mirkin wrote: > > > > On Wed, May 21, 2014 at 6:02 PM, Timothy Arceri > > wrote: > >> Unless we run out of memory the old if statement would a

Re: [Mesa-dev] [PATCH] gallium: reflect likely outcome in execution flow

2014-05-22 Thread Ilia Mirkin
On Thu, May 22, 2014 at 2:56 AM, Timothy Arceri wrote: > On Wed, 2014-05-21 at 18:05 -0400, Ilia Mirkin wrote: > > On Wed, May 21, 2014 at 6:02 PM, Timothy Arceri > wrote: >> Unless we run out of memory the old if statement would always fail so >> reflect the more likely outcome. Should be be fas

Re: [Mesa-dev] [PATCH] gallium: reflect likely outcome in execution flow

2014-05-21 Thread Timothy Arceri
On Wed, 2014-05-21 at 18:05 -0400, Ilia Mirkin wrote: > On Wed, May 21, 2014 at 6:02 PM, Timothy Arceri wrote: > > Unless we run out of memory the old if statement would always fail so > > reflect the more likely outcome. Should be be faster most of the time and > > slightly cleaner looking cod

Re: [Mesa-dev] [PATCH] gallium: reflect likely outcome in execution flow

2014-05-21 Thread Ilia Mirkin
On Wed, May 21, 2014 at 6:02 PM, Timothy Arceri wrote: > Unless we run out of memory the old if statement would always fail so reflect > the more likely outcome. Should be be faster most of the time and slightly > cleaner looking code. > > Signed-off-by: Timothy Arceri > --- > src/gallium/auxi

[Mesa-dev] [PATCH] gallium: reflect likely outcome in execution flow

2014-05-21 Thread Timothy Arceri
Unless we run out of memory the old if statement would always fail so reflect the more likely outcome. Should be be faster most of the time and slightly cleaner looking code. Signed-off-by: Timothy Arceri --- src/gallium/auxiliary/util/u_upload_mgr.c | 7 +++ 1 file changed, 3 insertions(+