Re: [Mesa-dev] [PATCH] i965/fs: Replace nested ternary with if ladder.

2015-11-19 Thread Matt Turner
On Wed, Nov 18, 2015 at 8:15 AM, Francisco Jerez wrote: > Matt Turner writes: > >> Since the types of the expression were >> >>bool ? src_reg : (bool ? brw_reg : brw_reg) >> >> the result of the second (nested) ternary would be implicitly >> converted to a src_reg by the src_reg(struct brw_re

Re: [Mesa-dev] [PATCH] i965/fs: Replace nested ternary with if ladder.

2015-11-18 Thread Francisco Jerez
Matt Turner writes: > Since the types of the expression were > >bool ? src_reg : (bool ? brw_reg : brw_reg) > > the result of the second (nested) ternary would be implicitly > converted to a src_reg by the src_reg(struct brw_reg) constructor. I.e., > >bool ? src_reg : src_reg(bool ? brw_r

Re: [Mesa-dev] [PATCH] i965/fs: Replace nested ternary with if ladder.

2015-11-12 Thread Kenneth Graunke
On Thursday, November 12, 2015 05:46:58 PM Matt Turner wrote: > Since the types of the expression were > >bool ? src_reg : (bool ? brw_reg : brw_reg) > > the result of the second (nested) ternary would be implicitly > converted to a src_reg by the src_reg(struct brw_reg) constructor. I.e., >

[Mesa-dev] [PATCH] i965/fs: Replace nested ternary with if ladder.

2015-11-12 Thread Matt Turner
Since the types of the expression were bool ? src_reg : (bool ? brw_reg : brw_reg) the result of the second (nested) ternary would be implicitly converted to a src_reg by the src_reg(struct brw_reg) constructor. I.e., bool ? src_reg : src_reg(bool ? brw_reg : brw_reg) In the next patch, I